org.snmp4j.agent.cfg
Interface EngineBootsProvider

All Known Implementing Classes:
EngineBootsCounterFile

public interface EngineBootsProvider

An EngineBootsProvider holds persistently the number of engine boots.

Version:
1.2
Author:
Frank Fock

Method Summary
 int getEngineBoots()
          Returns current engine boot counter value.
 int updateEngineBoots()
          Returns the current engine boot counter value incremented by one.
 

Method Detail

updateEngineBoots

int updateEngineBoots()
Returns the current engine boot counter value incremented by one. If that number would by greater than 2^31-1 then one is returned. The engine boots provider has to make sure that the returned value is persistently stored before the method returns.

Returns:
the last engine boots counter incremented by one.

getEngineBoots

int getEngineBoots()
Returns current engine boot counter value.

Returns:
the last engine boots counter.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.