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)
AsyncServiceDetector
detect
detect
in interface AsyncServiceDetector
request
- a DetectRequest
object.DetectFuture
object.public void init()
ServiceDetector
init
in interface ServiceDetector
public String getServiceName()
ServiceDetector
getServiceName
in interface ServiceDetector
String
object.public void setServiceName(String serviceName)
ServiceDetector
throws UnsupportedOperationException
setServiceName
in interface ServiceDetector
serviceName
- a String
object.public int getPort()
ServiceDetector
throws UnsupportedOperationException
getPort
in interface ServiceDetector
public void setPort(int port)
ServiceDetector
throws UnsupportedOperationException
setPort
in interface ServiceDetector
public int getTimeout()
ServiceDetector
throws UnsupportedOperationException
getTimeout
in interface ServiceDetector
public void setTimeout(int timeout)
ServiceDetector
throws UnsupportedOperationException
setTimeout
in interface ServiceDetector
public String getIpMatch()
ServiceDetector
throws UnsupportedOperationException
getIpMatch
in interface ServiceDetector
public void setIpMatch(String ipMatch)
ServiceDetector
throws UnsupportedOperationException
setIpMatch
in interface ServiceDetector
public void dispose()
ServiceDetector
dispose
in interface ServiceDetector
Copyright © 2021. All rights reserved.