-
- All Known Subinterfaces:
SnmpEngineIdProvider
- All Known Implementing Classes:
EngineBootsCounterFile
public interface EngineBootsProvider
AnEngineBootsProvider
holds persistently the number of engine boots.- Since:
- 3.5.0
- Version:
- 3.5.0
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-