|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.provision.support.AbstractDetector
public abstract class AbstractDetector
Abstract AbstractDetector class.
| Constructor Summary | |
|---|---|
protected |
AbstractDetector()
Deprecated. |
|
AbstractDetector(String serviceName,
int port)
Constructor for AbstractDetector. |
protected |
AbstractDetector(String serviceName,
int port,
int timeout,
int retries)
Constructor for AbstractDetector. |
| Method Summary | |
|---|---|
abstract void |
dispose()
dispose |
int |
getPort()
getPort |
int |
getRetries()
getRetries |
String |
getServiceName()
getServiceName |
int |
getTimeout()
getTimeout |
void |
init()
init |
abstract boolean |
isServiceDetected(InetAddress address,
DetectorMonitor detectMonitor)
isServiceDetected |
protected ThreadCategory |
log()
log |
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 |
|---|
@Deprecated protected AbstractDetector()
Constructor for AbstractDetector.
protected AbstractDetector(String serviceName,
int port,
int timeout,
int retries)
Constructor for AbstractDetector.
serviceName - a String object.port - a int.timeout - a int.retries - a int.
public AbstractDetector(String serviceName,
int port)
Constructor for AbstractDetector.
serviceName - a String object.port - a int.| Method Detail |
|---|
public void init()
init
init in interface ServiceDetectorprotected abstract void onInit()
onInit
public abstract boolean isServiceDetected(InetAddress address,
DetectorMonitor detectMonitor)
isServiceDetected
isServiceDetected in interface SyncServiceDetectoraddress - a InetAddress object.detectMonitor - a DetectorMonitor object.
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.protected ThreadCategory log()
log
ThreadCategory object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||