public class WsManMonitor extends AbstractServiceMonitor
WSManConfigDao.| Modifier and Type | Field and Description | 
|---|---|
static String | 
RESOURCE_URI_PARAM  | 
static String | 
RULE_PARAM  | 
static String | 
SELECTOR_PARAM_PREFIX  | 
| Constructor and Description | 
|---|
WsManMonitor()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
initialize(Map<String,Object> parameters)
 This method is called after the framework creates an instance of the
 plug-in. 
 | 
PollStatus | 
poll(MonitoredService svc,
    Map<String,Object> parameters)
 This method is the heart of the plug-in monitor. 
 | 
void | 
setWSManClientFactory(org.opennms.core.wsman.WSManClientFactory factory)  | 
void | 
setWSManConfigDao(WSManConfigDao wsManConfigDao)  | 
getKeyedBoolean, getKeyedInteger, getKeyedLong, getKeyedObject, getKeyedString, initialize, release, releasepublic static final String RESOURCE_URI_PARAM
public static final String RULE_PARAM
public static final String SELECTOR_PARAM_PREFIX
public void initialize(Map<String,Object> parameters)
AbstractServiceMonitorThis method is called after the framework creates an instance of the plug-in. The framework passes the object a proxy object that can be used to retrieve configuration information specific to the plug-in. Additionally, any parameters for the plug-in from the package definition are passed using the parameters element.
If there is a critical error, like missing service libraries, the the Monitor may throw a ServiceMonitorException. If the plug-in throws an exception then the plug-in will be disabled in the framework.
This method is called after the framework creates an instance of the plug-in. The framework passes the object a proxy object that can be used to retrieve configuration information specific to the plug-in. Additionally, any parameters for the plug-in from the package definition are passed using the parameters element.
If there is a critical error, like missing service libraries, the monitor may throw a ServiceMonitorException. If the plug-in throws an exception then the plug-in will be disabled in the framework.
initialize in interface ServiceMonitorinitialize in class AbstractServiceMonitorparameters - Not currently usedpublic PollStatus poll(MonitoredService svc, Map<String,Object> parameters)
AbstractServiceMonitorThis method is the heart of the plug-in monitor. Each time an interface requires a check to be performed as defined by the scheduler the poll method is invoked. The poll is passed the interface to check
By default when the status transition from up to down or vice versa the framework will generate an event. Additionally, if the polling interval changes due to an extended unavailability, the framework will generate an additional down event. The plug-in can suppress the generation of the default events by setting the suppress event bit in the returned integer.
poll in interface ServiceMonitorpoll in class AbstractServiceMonitorsvc - TODOparameters - The package parameters (timeout, retry, etc...) to be used for
            this poll.PollStatus.SERVICE_AVAILABLE, 
PollStatus.SERVICE_UNAVAILABLE, 
PollStatus.SERVICE_AVAILABLE, 
PollStatus.SERVICE_UNAVAILABLEpublic void setWSManConfigDao(WSManConfigDao wsManConfigDao)
public void setWSManClientFactory(org.opennms.core.wsman.WSManClientFactory factory)
Copyright © 2017. All rights reserved.