public class ServiceDetectorImpl extends Object implements AsyncServiceDetector
ServiceDetector with AsyncServiceDetector
ServiceDetector from integration api is Async in nature.| Constructor and Description |
|---|
ServiceDetectorImpl(org.opennms.integration.api.v1.detectors.ServiceDetector detector) |
| Modifier and Type | Method and Description |
|---|---|
DetectFuture |
detect(DetectRequest request)
detect
|
void |
dispose()
The detector should clean up after itself in this method if necessary.
|
String |
getIpMatch()
Not supported on
ServiceDetector
throws UnsupportedOperationException |
int |
getPort()
Not supported on
ServiceDetector
throws UnsupportedOperationException |
String |
getServiceName()
Requires that all implementations of this API return a service name.
|
int |
getTimeout()
Not supported on
ServiceDetector
throws UnsupportedOperationException |
void |
init()
Perform any necessary initialization after construction and before detecting.
|
void |
setIpMatch(String ipMatch)
Not supported on
ServiceDetector
throws UnsupportedOperationException |
void |
setPort(int port)
Not supported on
ServiceDetector
throws UnsupportedOperationException |
void |
setServiceName(String serviceName)
Not supported on
ServiceDetector
throws UnsupportedOperationException |
void |
setTimeout(int timeout)
Not supported on
ServiceDetector
throws UnsupportedOperationException |
public ServiceDetectorImpl(org.opennms.integration.api.v1.detectors.ServiceDetector detector)
public DetectFuture detect(DetectRequest request)
AsyncServiceDetectordetect
detect in interface AsyncServiceDetectorrequest - a DetectRequest object.DetectFuture object.public void init()
ServiceDetectorinit in interface ServiceDetectorpublic String getServiceName()
ServiceDetectorgetServiceName in interface ServiceDetectorString object.public void setServiceName(String serviceName)
ServiceDetector
throws UnsupportedOperationExceptionsetServiceName in interface ServiceDetectorserviceName - a String object.public int getPort()
ServiceDetector
throws UnsupportedOperationExceptiongetPort in interface ServiceDetectorpublic void setPort(int port)
ServiceDetector
throws UnsupportedOperationExceptionsetPort in interface ServiceDetectorpublic int getTimeout()
ServiceDetector
throws UnsupportedOperationExceptiongetTimeout in interface ServiceDetectorpublic void setTimeout(int timeout)
ServiceDetector
throws UnsupportedOperationExceptionsetTimeout in interface ServiceDetectorpublic String getIpMatch()
ServiceDetector
throws UnsupportedOperationExceptiongetIpMatch in interface ServiceDetectorpublic void setIpMatch(String ipMatch)
ServiceDetector
throws UnsupportedOperationExceptionsetIpMatch in interface ServiceDetectorpublic void dispose()
ServiceDetectordispose in interface ServiceDetectorCopyright © 2022. All rights reserved.