|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.provision.support.AsyncAbstractDetector
public abstract class AsyncAbstractDetector
Abstract AsyncAbstractDetector class.
| Constructor Summary | |
|---|---|
protected |
AsyncAbstractDetector(String serviceName,
int port)
Constructor for AsyncAbstractDetector. |
protected |
AsyncAbstractDetector(String serviceName,
int port,
int timeout,
int retries)
Constructor for AsyncAbstractDetector. |
| Method Summary | |
|---|---|
abstract void |
dispose()
dispose |
int |
getPort()
getPort |
int |
getRetries()
getRetries |
String |
getServiceName()
getServiceName |
int |
getTimeout()
getTimeout |
void |
init()
init |
abstract DetectFuture |
isServiceDetected(InetAddress address,
DetectorMonitor monitor)
isServiceDetected |
protected abstract void |
onInit()
onInit |
void |
setPort(int port)
setPort |
void |
setRetries(int retries)
setRetries |
void |
setServiceName(String serviceName)
Service name is mutable so that we can create new instances of each implementation and define a new service detector using the underlying protocol. |
void |
setTimeout(int timeout)
setTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AsyncAbstractDetector(String serviceName,
int port)
Constructor for AsyncAbstractDetector.
serviceName - a String object.port - a int.
protected AsyncAbstractDetector(String serviceName,
int port,
int timeout,
int retries)
Constructor for AsyncAbstractDetector.
serviceName - a String object.port - a int.timeout - a int.retries - a int.| Method Detail |
|---|
public void init()
init
init in interface ServiceDetectorprotected abstract void onInit()
onInit
public abstract DetectFuture isServiceDetected(InetAddress address,
DetectorMonitor monitor)
throws Exception
isServiceDetected
isServiceDetected in interface AsyncServiceDetectoraddress - a InetAddress object.monitor - a DetectorMonitor object.
DetectFuture object.
Exception - if any.public abstract void dispose()
dispose
dispose in interface ServiceDetectorpublic void setPort(int port)
setPort
port - a int.public int getPort()
getPort
public void setRetries(int retries)
setRetries
retries - a int.public int getRetries()
getRetries
public void setTimeout(int timeout)
setTimeout
timeout - a int.public int getTimeout()
getTimeout
public void setServiceName(String serviceName)
setServiceName in interface ServiceDetectorserviceName - a String object.public String getServiceName()
getServiceName
getServiceName in interface ServiceDetectorString object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||