|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--snmpmonitor.Check
| Constructor Summary | |
Check(int interval)
Create a check that does not depend on an SNMP peer. |
|
Check(Peer peer,
int interval)
Create a check for a given SNMP peer agent and with a given interval. |
|
Check(java.lang.String name,
int interval)
Create a check with a given name that does not depend on an SNMP peer. |
|
Check(java.lang.String name,
Peer peer,
int interval)
Create a check of a given name for a given SNMP peer agent and with a given interval. |
|
| Method Summary | |
void |
check()
Run the actual check. |
int |
getInterval()
Return the interval used for this check. |
java.lang.String |
getName()
Return the name of this check. |
java.util.Date |
getNextDate()
Get the date when this check has to be run the next time, based on the time when this check was called last time and the interval. |
Peer |
getPeer()
Return the SNMP peer of this check. |
void |
init()
Initialize this check. |
void |
setName(java.lang.String name)
Set the name of this check. |
void |
update()
Update the time of the last check run. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Check(java.lang.String name,
int interval)
name - The name of this check.interval - The interval in seconds to be used for this check.public Check(int interval)
interval - The interval in seconds to be used for this check.
public Check(java.lang.String name,
Peer peer,
int interval)
peer - The SNMP peer to be checked.interval - The interval in seconds to be used for this check.
public Check(Peer peer,
int interval)
peer - The SNMP peer to be checked.interval - The interval in seconds to be used for this check.| Method Detail |
public void init()
public void check()
public void update()
public int getInterval()
public Peer getPeer()
public java.lang.String getName()
public void setName(java.lang.String name)
The - new name.public java.util.Date getNextDate()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||