public class WsManCollector extends AbstractRemoteServiceCollector
| Constructor and Description | 
|---|
WsManCollector()  | 
| Modifier and Type | Method and Description | 
|---|---|
CollectionSet | 
collect(CollectionAgent agent,
       Map<String,Object> parameters)
Invokes a collection on the object. 
 | 
RrdRepository | 
getRrdRepository(String collectionName)
Retrieve the  
RrdRepository configuration for the given collection. | 
Map<String,Object> | 
getRuntimeAttributes(CollectionAgent agent,
                    Map<String,Object> parameters)
Invoked before every call to  
#collect(CollectionAgent, EventProxy, Map) in order
 to retrieve state/runtime information required for perform the collection. | 
void | 
initialize()
Initialize the collector. 
 | 
static void | 
processEnumerationResults(Group group,
                         CollectionSetBuilder builder,
                         java.util.function.Supplier<Resource> resourceSupplier,
                         List<Node> nodes)
Used to build a  
CollectionSet from the enumeration results. | 
void | 
setNodeDao(NodeDao nodeDao)  | 
void | 
setWSManClientFactory(org.opennms.core.wsman.WSManClientFactory factory)  | 
void | 
setWSManConfigDao(WSManConfigDao wsManConfigDao)  | 
void | 
setWSManDataCollectionConfigDao(WSManDataCollectionConfigDao wsManDataCollectionConfigDao)  | 
getEffectiveLocation, marshalParameters, unmarshalParametersvalidateAgentpublic void initialize()
                throws CollectionInitializationException
ServiceCollectorinitialize in interface ServiceCollectorinitialize in class AbstractServiceCollectorCollectionInitializationExceptionpublic Map<String,Object> getRuntimeAttributes(CollectionAgent agent, Map<String,Object> parameters)
ServiceCollector#collect(CollectionAgent, EventProxy, Map) in order
 to retrieve state/runtime information required for perform the collection.
 This call will always be performed in OpenNMS.getRuntimeAttributes in interface ServiceCollectorgetRuntimeAttributes in class AbstractServiceCollectoragent - Includes details about to the agent from which we wish to collect.parameters - Includes the service parameters defined in collectd-configuration.xml.#collect(CollectionAgent, EventProxy, Map).public CollectionSet collect(CollectionAgent agent, Map<String,Object> parameters) throws CollectionException
ServiceCollectoragent - a org.opennms.netmgt.collectd.CollectionAgent object.parameters - a Map object.org.opennms.netmgt.config.collector.CollectionSet object.CollectionExceptionpublic static void processEnumerationResults(Group group, CollectionSetBuilder builder, java.util.function.Supplier<Resource> resourceSupplier, List<Node> nodes)
CollectionSet from the enumeration results.public RrdRepository getRrdRepository(String collectionName)
ServiceCollectorRrdRepository configuration for the given collection.
 This call will always be performed in OpenNMS.collectionName - a String object.RrdRepository object.public void setWSManConfigDao(WSManConfigDao wsManConfigDao)
public void setWSManDataCollectionConfigDao(WSManDataCollectionConfigDao wsManDataCollectionConfigDao)
public void setWSManClientFactory(org.opennms.core.wsman.WSManClientFactory factory)
public void setNodeDao(NodeDao nodeDao)
Copyright © 2021. All rights reserved.