Class WmiAgentState


  • public class WmiAgentState
    extends java.lang.Object

    Contains a WmiManager and WmiClient instance referring to the agent loaded via the InetAddress parameter provided in the constructor. Uses the InetAddress to look up the agent configuration to properly connect the client and manager to the remote agent. Provides the collector with access to the client and manager as well as information regarding the availability of WPM (Windows Performance Metric) groups.

    Author:
    Matt Raykowski, OpenNMS
    • Constructor Detail

      • WmiAgentState

        public WmiAgentState​(java.net.InetAddress address,
                             WmiAgentConfig agentConfig,
                             java.util.Map<?,​?> parameters)
    • Method Detail

      • connect

        public void connect​(java.lang.String namespace)

        connect

        Parameters:
        namespace - the WMI namespace to request
      • getAddress

        public java.lang.String getAddress()

        getAddress

        Returns:
        a String object.
      • groupIsAvailable

        public boolean groupIsAvailable​(java.lang.String groupName)

        groupIsAvailable

        Parameters:
        groupName - a String object.
        Returns:
        a boolean.
      • setGroupIsAvailable

        public void setGroupIsAvailable​(java.lang.String groupName,
                                        boolean available)

        setGroupIsAvailable

        Parameters:
        groupName - a String object.
        available - a boolean.
      • shouldCheckAvailability

        public boolean shouldCheckAvailability​(java.lang.String groupName,
                                               int recheckInterval)

        shouldCheckAvailability

        Parameters:
        groupName - a String object.
        recheckInterval - a int.
        Returns:
        a boolean.
      • didCheckGroupAvailability

        public void didCheckGroupAvailability​(java.lang.String groupName)

        didCheckGroupAvailability

        Parameters:
        groupName - a String object.
      • setWmiClient

        public void setWmiClient​(IWmiClient wmiClient)

        setWmiClient

        Parameters:
        wmiClient - a IWmiClient object.