org.opennms.netmgt.provision.support
Class AsyncAbstractDetector
java.lang.Object
org.opennms.netmgt.provision.support.AsyncAbstractDetector
- All Implemented Interfaces:
- AsyncServiceDetector, ServiceDetector
- Direct Known Subclasses:
- AsyncBasicDetector
public abstract class AsyncAbstractDetector
- extends Object
- implements AsyncServiceDetector
- Author:
- thedesloge
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncAbstractDetector
protected AsyncAbstractDetector(String serviceName,
int port)
AsyncAbstractDetector
protected AsyncAbstractDetector(String serviceName,
int port,
int timeout,
int retries)
init
public void init()
- Specified by:
init in interface ServiceDetector
onInit
protected abstract void onInit()
isServiceDetected
public abstract DetectFuture isServiceDetected(InetAddress address,
DetectorMonitor monitor)
throws Exception
- Specified by:
isServiceDetected in interface AsyncServiceDetector
- Parameters:
InetAddress - addressDetectMonitor - monitor
- Returns:
- DetectFuture
- Throws:
Exception
dispose
public abstract void dispose()
- Specified by:
dispose in interface ServiceDetector
setPort
public void setPort(int port)
getPort
public int getPort()
setRetries
public void setRetries(int retries)
getRetries
public int getRetries()
setTimeout
public void setTimeout(int timeout)
getTimeout
public int getTimeout()
setServiceName
public void setServiceName(String serviceName)
- Specified by:
setServiceName in interface ServiceDetector
getServiceName
public String getServiceName()
- Specified by:
getServiceName in interface ServiceDetector
Copyright © 2009. All Rights Reserved.