Class WMISession


  • public class WMISession
    extends WinResource
    A WMI session indicates a connection to the remote host.
    This object support to get pdh data from hosts which were not monitored by current collector.
    See Also:
    WMI
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.util.Map<java.lang.String,​java.lang.String>> queryAll​(java.lang.String namespace, java.lang.String wql, long timeoutSeconds)
      query all records
      java.util.Map<java.lang.String,​java.lang.String> queryFirst​(java.lang.String namespace, java.lang.String wql, long timeoutSeconds)
      query the first record
      • Methods inherited from class com.logicmonitor.common.sse.utils.SSEResource

        register, unregister
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • queryFirst

        public java.util.Map<java.lang.String,​java.lang.String> queryFirst​(java.lang.String namespace,
                                                                                 java.lang.String wql,
                                                                                 long timeoutSeconds)
                                                                          throws java.io.IOException,
                                                                                 java.lang.InterruptedException,
                                                                                 java.util.concurrent.ExecutionException
        query the first record
        Parameters:
        namespace - the namespace , eg CIMv2
        wql - the wql
        timeoutSeconds - timeout in seconds
        Returns:
        the first record
        Throws:
        java.io.IOException - If some other I/O error occurs
        java.lang.InterruptedException - If wait request interrupt
        java.util.concurrent.ExecutionException - If wait request execution failed
      • queryAll

        public java.util.List<java.util.Map<java.lang.String,​java.lang.String>> queryAll​(java.lang.String namespace,
                                                                                               java.lang.String wql,
                                                                                               long timeoutSeconds)
                                                                                        throws java.io.IOException,
                                                                                               java.lang.InterruptedException,
                                                                                               java.util.concurrent.ExecutionException
        query all records
        Parameters:
        namespace - the namespace , eg CIMv2
        wql - the wql
        timeoutSeconds - timeout in seconds
        Returns:
        All record
        Throws:
        java.io.IOException - If some other I/O error occurs
        java.lang.InterruptedException - If wait request interrupt
        java.util.concurrent.ExecutionException - If wait request execution failed