Class AbstractRemoteServiceCollector

    • Constructor Detail

      • AbstractRemoteServiceCollector

        public AbstractRemoteServiceCollector()
      • AbstractRemoteServiceCollector

        public AbstractRemoteServiceCollector​(java.util.Map<java.lang.String,​java.lang.Class<?>> parameterTypeMap)
    • Method Detail

      • getEffectiveLocation

        public java.lang.String getEffectiveLocation​(java.lang.String location)
        Description copied from interface: ServiceCollector
        Allows the collector to override the location at which it should be run. This call will always be performed in OpenNMS.
        Specified by:
        getEffectiveLocation in interface ServiceCollector
        Overrides:
        getEffectiveLocation in class AbstractServiceCollector
        Parameters:
        location - location associated with the service to be monitored
        Returns:
        a possibly updated location
      • marshalParameters

        public java.util.Map<java.lang.String,​java.lang.String> marshalParameters​(java.util.Map<java.lang.String,​java.lang.Object> parameters)
        Description copied from interface: ServiceCollector
        Marshal the parameter values to strings, which is necessary for passing the parameters over the wire for the RPC call. We delegate this task to the ServiceCollector instead of handling it elsewhere since the API, and RPC module do not have access to the model objects used by the collector. This will only be called in OpenNMS when the collector is to be executed remotely.
        Specified by:
        marshalParameters in interface ServiceCollector
        Overrides:
        marshalParameters in class AbstractServiceCollector
        Returns: