Class ServiceDetectorImpl
- java.lang.Object
-
- org.opennms.features.apilayer.detectors.ServiceDetectorImpl
-
- All Implemented Interfaces:
AsyncServiceDetector
,ServiceDetector
public class ServiceDetectorImpl extends java.lang.Object implements AsyncServiceDetector
This is a proxy object created to mapServiceDetector
withAsyncServiceDetector
ServiceDetector
from 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 DetectFuture
detect(DetectRequest request)
detectvoid
dispose()
The detector should clean up after itself in this method if necessary.java.lang.String
getIpMatch()
Not supported onServiceDetector
throwsUnsupportedOperationException
int
getPort()
Not supported onServiceDetector
throwsUnsupportedOperationException
java.lang.String
getServiceName()
Requires that all implementations of this API return a service name.int
getTimeout()
Not supported onServiceDetector
throwsUnsupportedOperationException
void
init()
Perform any necessary initialization after construction and before detecting.void
setIpMatch(java.lang.String ipMatch)
Not supported onServiceDetector
throwsUnsupportedOperationException
void
setPort(int port)
Not supported onServiceDetector
throwsUnsupportedOperationException
void
setServiceName(java.lang.String serviceName)
Not supported onServiceDetector
throwsUnsupportedOperationException
void
setTimeout(int timeout)
Not supported onServiceDetector
throwsUnsupportedOperationException
-
-
-
Method Detail
-
detect
public DetectFuture detect(DetectRequest request)
Description copied from interface:AsyncServiceDetector
detect
- Specified by:
detect
in interfaceAsyncServiceDetector
- Parameters:
request
- aDetectRequest
object.- Returns:
- a
DetectFuture
object.
-
init
public void init()
Description copied from interface:ServiceDetector
Perform any necessary initialization after construction and before detecting.- Specified by:
init
in interfaceServiceDetector
-
getServiceName
public java.lang.String getServiceName()
Description copied from interface:ServiceDetector
Requires that all implementations of this API return a service name.- Specified by:
getServiceName
in interfaceServiceDetector
- Returns:
- a
String
object.
-
setServiceName
public void setServiceName(java.lang.String serviceName)
Not supported onServiceDetector
throwsUnsupportedOperationException
- Specified by:
setServiceName
in interfaceServiceDetector
- Parameters:
serviceName
- aString
object.
-
getPort
public int getPort()
Not supported onServiceDetector
throwsUnsupportedOperationException
- Specified by:
getPort
in interfaceServiceDetector
-
setPort
public void setPort(int port)
Not supported onServiceDetector
throwsUnsupportedOperationException
- Specified by:
setPort
in interfaceServiceDetector
-
getTimeout
public int getTimeout()
Not supported onServiceDetector
throwsUnsupportedOperationException
- Specified by:
getTimeout
in interfaceServiceDetector
-
setTimeout
public void setTimeout(int timeout)
Not supported onServiceDetector
throwsUnsupportedOperationException
- Specified by:
setTimeout
in interfaceServiceDetector
-
getIpMatch
public java.lang.String getIpMatch()
Not supported onServiceDetector
throwsUnsupportedOperationException
- Specified by:
getIpMatch
in interfaceServiceDetector
-
setIpMatch
public void setIpMatch(java.lang.String ipMatch)
Not supported onServiceDetector
throwsUnsupportedOperationException
- Specified by:
setIpMatch
in interfaceServiceDetector
-
dispose
public void dispose()
Description copied from interface:ServiceDetector
The detector should clean up after itself in this method if necessary.- Specified by:
dispose
in interfaceServiceDetector
-
-