Class WMISession
- java.lang.Object
-
- com.logicmonitor.common.sse.utils.SSEResource
-
- com.santaba.agent.groovyapi.win32.WinResource
-
- com.santaba.agent.groovyapi.win32.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 recordsjava.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.santaba.agent.groovyapi.win32.WinResource
isReleased, release
-
-
-
-
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 CIMv2wql
- the wqltimeoutSeconds
- timeout in seconds- Returns:
- the first record
- Throws:
java.io.IOException
- If some other I/O error occursjava.lang.InterruptedException
- If wait request interruptjava.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 CIMv2wql
- the wqltimeoutSeconds
- timeout in seconds- Returns:
- All record
- Throws:
java.io.IOException
- If some other I/O error occursjava.lang.InterruptedException
- If wait request interruptjava.util.concurrent.ExecutionException
- If wait request execution failed
-
-