Class XmpCollector

    • Constructor Detail

      • XmpCollector

        public XmpCollector()

        Constructor for XmpCollector.

    • Method Detail

      • initialize

        public void initialize()
        Initialize the collector. This call will be invoked in OpenNMS before any other calls to the collector are made. This function may be invoked several times during the lifetime or the collector. initialize our XmpCollector with global parameters *
        Specified by:
        initialize in interface ServiceCollector
        Overrides:
        initialize in class AbstractServiceCollector
      • serviceName

        public java.lang.String serviceName()
        who am I and what am I ? *
        Returns:
        a String object.
      • collect

        public CollectionSet collect​(CollectionAgent agent,
                                     java.util.Map<java.lang.String,​java.lang.Object> parameters)
                              throws CollectionException
        Invokes a collection on the object. This call will be performed in both OpenNMS and Minion. Collect data, via XMP, from a particular agent EventProxy is used to send opennms events into the system in case a collection fails or if a system is back working again after a failure (suceed event). But otherwise, no events sent if collection succeeds. Collect is called once per agent per collection cycle. Parameters are a map of String Key/String Value passed in. Keys come from collectd config
        Parameters:
        agent - a org.opennms.netmgt.collectd.CollectionAgent object.
        parameters - a Map object.
        Returns:
        a org.opennms.netmgt.config.collector.CollectionSet object.
        Throws:
        CollectionException
      • getRrdRepository

        public RrdRepository getRrdRepository​(java.lang.String collectionName)
        Retrieve the RrdRepository configuration for the given collection. This call will always be performed in OpenNMS.
        Parameters:
        collectionName - a String object.
        Returns:
        a RrdRepository object.
      • sanitizeInstance

        protected static java.lang.String sanitizeInstance​(java.lang.String instance)
      • setResourceTypesDao

        public void setResourceTypesDao​(ResourceTypesDao resourceTypesDao)