Class WsManDetector
- java.lang.Object
-
- org.opennms.netmgt.provision.support.AbstractDetector
-
- org.opennms.netmgt.provision.support.SyncAbstractDetector
-
- org.opennms.netmgt.provision.detector.wsman.WsManDetector
-
- All Implemented Interfaces:
ServiceDetector
,SyncServiceDetector
public class WsManDetector extends SyncAbstractDetector
Detects the presence of the WS-Man service by verifying that the endpoint responds to the Identify command.- Author:
- jwhite
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
protected static String
PRODUCT_VENDOR
protected static String
PRODUCT_VERSION
protected static String
UPDATE_ASSETS
-
Constructor Summary
Constructors Constructor Description WsManDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectResults
detect(DetectRequest request)
detectvoid
dispose()
disposeboolean
getUpdateAssets()
boolean
isServiceDetected(InetAddress address)
isServiceDetectedDetectResults
isServiceDetected(InetAddress address, org.opennms.core.wsman.WSManEndpoint endpoint)
protected void
onInit()
onInitvoid
setClientFactory(org.opennms.core.wsman.WSManClientFactory factory)
void
setUpdateAssets(boolean updateAssets)
-
Methods inherited from class org.opennms.netmgt.provision.support.AbstractDetector
getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, setIpMatch, setPort, setRetries, setServiceName, setTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.provision.ServiceDetector
getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
-
-
-
-
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
-
UPDATE_ASSETS
protected static final String UPDATE_ASSETS
- See Also:
- Constant Field Values
-
PRODUCT_VENDOR
protected static final String PRODUCT_VENDOR
- See Also:
- Constant Field Values
-
PRODUCT_VERSION
protected static final String PRODUCT_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
detect
public DetectResults detect(DetectRequest request)
Description copied from interface:SyncServiceDetector
detect
- Specified by:
detect
in interfaceSyncServiceDetector
- Overrides:
detect
in classSyncAbstractDetector
- Parameters:
request
- aDetectRequest
object.- Returns:
-
isServiceDetected
public boolean isServiceDetected(InetAddress address)
Description copied from class:SyncAbstractDetector
isServiceDetected
- Specified by:
isServiceDetected
in classSyncAbstractDetector
- Parameters:
address
- aInetAddress
object.- Returns:
- a boolean.
-
isServiceDetected
public DetectResults isServiceDetected(InetAddress address, org.opennms.core.wsman.WSManEndpoint endpoint)
-
setClientFactory
public void setClientFactory(org.opennms.core.wsman.WSManClientFactory factory)
-
setUpdateAssets
public void setUpdateAssets(boolean updateAssets)
-
getUpdateAssets
public boolean getUpdateAssets()
-
onInit
protected void onInit()
Description copied from class:AbstractDetector
onInit
- Specified by:
onInit
in classAbstractDetector
-
dispose
public void dispose()
Description copied from class:AbstractDetector
dispose
- Specified by:
dispose
in interfaceServiceDetector
- Specified by:
dispose
in classAbstractDetector
-
-