|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.system.sam.agent.polling.SAMICMPPollingMethod
public class SAMICMPPollingMethod
Polls a resource by using ICMP PING commands.
Description:
Will check the availability of a resource by sending a ping (ICMP echo
request).
Concurrency issues:
-
Constructor Summary | |
---|---|
SAMICMPPollingMethod()
|
Method Summary | |
---|---|
void |
init(java.lang.Object oResourceConfigSection,
java.lang.Object oPollingMethodConfigSection,
ConfigManager oConfigManager,
SystemLogger oSystemLogger)
Reads the config parameters 'url' and 'pingcommand' from the supplied polling method config and sets the given system logger as logger for this class. |
boolean |
poll()
Polls the resource by executing the ping command located in _sbPingCommand. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMICMPPollingMethod()
Method Detail |
---|
public void init(java.lang.Object oResourceConfigSection, java.lang.Object oPollingMethodConfigSection, ConfigManager oConfigManager, SystemLogger oSystemLogger) throws ASelectSAMException
init
in interface ISAMPollingMethod
oResourceConfigSection
- the config section of the resource which
has to be polledoPollingMethodConfigSection
- The config section of the polling
method config sectionoConfigManager
- The config manager used to resolve the configurationoSystemLogger
- the logger used for system logging
ASelectSAMException
- if the poller could not be initializedISAMPollingMethod.init(java.lang.Object,
java.lang.Object, org.aselect.system.configmanager.ConfigManager,
org.aselect.system.logging.SystemLogger)
public boolean poll()
poll
in interface ISAMPollingMethod
ISAMPollingMethod.poll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |