Class WmiAgentState


  • public class WmiAgentState
    extends 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
    • Method Detail

      • connect

        public void connect​(String namespace)

        connect

        Parameters:
        namespace - the WMI namespace to request
      • getAddress

        public String getAddress()

        getAddress

        Returns:
        a String object.
      • groupIsAvailable

        public boolean groupIsAvailable​(String groupName)

        groupIsAvailable

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

        public void setGroupIsAvailable​(String groupName,
                                        boolean available)

        setGroupIsAvailable

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

        public boolean shouldCheckAvailability​(String groupName,
                                               int recheckInterval)

        shouldCheckAvailability

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

        public void didCheckGroupAvailability​(String groupName)

        didCheckGroupAvailability

        Parameters:
        groupName - a String object.
      • setWmiClient

        public void setWmiClient​(IWmiClient wmiClient)

        setWmiClient

        Parameters:
        wmiClient - a IWmiClient object.