Package org.metricshub.wbem.client
Class WbemExecutor
java.lang.Object
org.metricshub.wbem.client.WbemExecutor
Functions to execute WBEM query.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WbemQueryResult
executeWql
(URL url, String namespace, String username, char[] password, String query, int timeout, String arraySeparator) Execute a WBEM query on remote.static WbemQueryResult
getAssociators
(URL url, String username, char[] password, String query, String objectPathAssociators, int timeout, String arraySeparator) Execute WBEM get associators on remote.
-
Method Details
-
executeWql
public static WbemQueryResult executeWql(URL url, String namespace, String username, char[] password, String query, int timeout, String arraySeparator) throws WqlQuerySyntaxException, org.metricshub.wbem.javax.wbem.WBEMException, TimeoutException, InterruptedException Execute a WBEM query on remote.- Parameters:
url
- The remote URL.namespace
- The WBEM namespace.username
- The user name.password
- The Password.query
- The WQL Query to execute.timeout
- Timeout in milliseconds.arraySeparator
- The array separator value. default value '|'- Returns:
- Throws:
WqlQuerySyntaxException
- On WQL syntax errors.org.metricshub.wbem.javax.wbem.WBEMException
- On WBEM errors.TimeoutException
- To notify userName of timeout.InterruptedException
-
getAssociators
public static WbemQueryResult getAssociators(URL url, String username, char[] password, String query, String objectPathAssociators, int timeout, String arraySeparator) throws WqlQuerySyntaxException, org.metricshub.wbem.javax.wbem.WBEMException, TimeoutException, InterruptedException Execute WBEM get associators on remote.- Parameters:
url
- The remote URL.username
- The user name.password
- The Password.query
- The WQL Query to execute.objectPathAssociators
- The object path for ASSOCIATORS.timeout
- Timeout in milliseconds.arraySeparator
- The array separator value. default value '|'- Returns:
- Throws:
WqlQuerySyntaxException
- On WQL syntax errors.org.metricshub.wbem.javax.wbem.WBEMException
- On WBEM errors.TimeoutException
- To notify userName of timeout.InterruptedException
-