Class ServiceDetectorImpl
- java.lang.Object
-
- org.opennms.features.apilayer.detectors.ServiceDetectorImpl
-
- All Implemented Interfaces:
AsyncServiceDetector,ServiceDetector
public class ServiceDetectorImpl extends Object implements AsyncServiceDetector
This is a proxy object created to mapServiceDetectorwithAsyncServiceDetectorServiceDetectorfrom integration api is Async in nature.
-
-
Constructor Summary
Constructors Constructor Description ServiceDetectorImpl(org.opennms.integration.api.v1.detectors.ServiceDetector detector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectFuturedetect(DetectRequest request)detectvoiddispose()The detector should clean up after itself in this method if necessary.StringgetIpMatch()Not supported onServiceDetectorthrowsUnsupportedOperationExceptionintgetPort()Not supported onServiceDetectorthrowsUnsupportedOperationExceptionStringgetServiceName()Requires that all implementations of this API return a service name.intgetTimeout()Not supported onServiceDetectorthrowsUnsupportedOperationExceptionvoidinit()Perform any necessary initialization after construction and before detecting.voidsetIpMatch(String ipMatch)Not supported onServiceDetectorthrowsUnsupportedOperationExceptionvoidsetPort(int port)Not supported onServiceDetectorthrowsUnsupportedOperationExceptionvoidsetServiceName(String serviceName)Not supported onServiceDetectorthrowsUnsupportedOperationExceptionvoidsetTimeout(int timeout)Not supported onServiceDetectorthrowsUnsupportedOperationException
-
-
-
Method Detail
-
detect
public DetectFuture detect(DetectRequest request)
Description copied from interface:AsyncServiceDetectordetect
- Specified by:
detectin interfaceAsyncServiceDetector- Parameters:
request- aDetectRequestobject.- Returns:
- a
DetectFutureobject.
-
init
public void init()
Description copied from interface:ServiceDetectorPerform any necessary initialization after construction and before detecting.- Specified by:
initin interfaceServiceDetector
-
getServiceName
public String getServiceName()
Description copied from interface:ServiceDetectorRequires that all implementations of this API return a service name.- Specified by:
getServiceNamein interfaceServiceDetector- Returns:
- a
Stringobject.
-
setServiceName
public void setServiceName(String serviceName)
Not supported onServiceDetectorthrowsUnsupportedOperationException- Specified by:
setServiceNamein interfaceServiceDetector- Parameters:
serviceName- aStringobject.
-
getPort
public int getPort()
Not supported onServiceDetectorthrowsUnsupportedOperationException- Specified by:
getPortin interfaceServiceDetector
-
setPort
public void setPort(int port)
Not supported onServiceDetectorthrowsUnsupportedOperationException- Specified by:
setPortin interfaceServiceDetector
-
getTimeout
public int getTimeout()
Not supported onServiceDetectorthrowsUnsupportedOperationException- Specified by:
getTimeoutin interfaceServiceDetector
-
setTimeout
public void setTimeout(int timeout)
Not supported onServiceDetectorthrowsUnsupportedOperationException- Specified by:
setTimeoutin interfaceServiceDetector
-
getIpMatch
public String getIpMatch()
Not supported onServiceDetectorthrowsUnsupportedOperationException- Specified by:
getIpMatchin interfaceServiceDetector
-
setIpMatch
public void setIpMatch(String ipMatch)
Not supported onServiceDetectorthrowsUnsupportedOperationException- Specified by:
setIpMatchin interfaceServiceDetector
-
dispose
public void dispose()
Description copied from interface:ServiceDetectorThe detector should clean up after itself in this method if necessary.- Specified by:
disposein interfaceServiceDetector
-
-