|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.system.sam.agent.polling.SAMAPIPollingMethod
public class SAMAPIPollingMethod
The interface for polling methods.
Description:
Will check the availability of a resource by making an API call by using the
SAM protocol.
Concurrency issues:
-
Constructor Summary | |
---|---|
SAMAPIPollingMethod()
|
Method Summary | |
---|---|
void |
init(java.lang.Object oResourceConfigSection,
java.lang.Object oPollingMethodConfigSection,
ConfigManager oConfigManager,
SystemLogger oSystemLogger)
Will read the url from the SAMService servlet that must be polled and sets the given ConfigManager and SystemLogger
as class variables. |
boolean |
poll()
The method that used to poll the SAMService. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMAPIPollingMethod()
Method Detail |
---|
public void init(java.lang.Object oResourceConfigSection, java.lang.Object oPollingMethodConfigSection, ConfigManager oConfigManager, SystemLogger oSystemLogger) throws ASelectSAMException
ConfigManager
and SystemLogger
as class variables.
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 |