|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.cfg.EngineBootsCounterFile
public class EngineBootsCounterFile
The EngineBootsCounterFile is a EngineBootsProvider
that stores the boot counter in a file.
| Constructor Summary | |
|---|---|
EngineBootsCounterFile(java.io.File bootCounterFile)
Creates the boot counter by using the specified file. |
|
| Method Summary | |
|---|---|
int |
getEngineBoots()
Returns current engine boot counter value. |
protected int |
getLastEngineBoots()
Reads the engine boots counter from the corresponding input stream (file). |
protected void |
setEngineBoots(int engineBoots)
|
int |
updateEngineBoots()
Returns the current engine boot counter value incremented by one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EngineBootsCounterFile(java.io.File bootCounterFile)
bootCounterFile - a file (does not have to exists yet but must be writable).| Method Detail |
|---|
public int updateEngineBoots()
updateEngineBoots in interface EngineBootsProviderprotected int getLastEngineBoots()
protected void setEngineBoots(int engineBoots)
public int getEngineBoots()
EngineBootsProvider
getEngineBoots in interface EngineBootsProvider
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||