- All Known Subinterfaces:
SnmpEngineIdProvider
- All Known Implementing Classes:
EngineBootsCounterFile
public interface EngineBootsProvider
An
EngineBootsProvider
holds persistently the number of engine
boots.- Since:
- 3.5.0
- Version:
- 3.5.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns current engine boot counter value.int
Returns the current engine boot counter value incremented by one.
-
Method Details
-
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.
-