Package org.opennms.protocols.wmi
Class WmiParams
- java.lang.Object
-
- org.opennms.protocols.wmi.WmiParams
-
public class WmiParams extends java.lang.Object
This class contains the parameters used to perform and validate checks against WMI agents.- Version:
- $Id: $
- Author:
- Matt Raykowski
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
WMI_DEFAULT_NAMESPACE
ConstantWMI_DEFAULT_NAMESPACE="root/cimv2"
static java.lang.String
WMI_OPERATION_INSTANCEOF
ConstantWMI_OPERATION_INSTANCEOF="InstanceOf"
static java.lang.String
WMI_OPERATION_WQL
ConstantWMI_OPERATION_WQL="Wql"
-
Constructor Summary
Constructors Constructor Description WmiParams(java.lang.String queryType, java.lang.Object compVal, java.lang.String compOp, java.lang.String wmiObj1, java.lang.String wmiObj2)
Constructor, sets the critical threshold.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCompareOperation()
getCompareOperationjava.lang.Object
getCompareValue()
getCompareValuejava.lang.String
getWmiClass()
getWmiClassjava.lang.String
getWmiObject()
getWmiObjectjava.lang.String
getWmiOperation()
getWmiOperationjava.lang.String
getWql()
getWqlvoid
setCompareOperation(java.lang.String compareOperation)
setCompareOperationvoid
setCompareValue(java.lang.Object compareValue)
setCompareValuevoid
setWmiClass(java.lang.String wmiClass)
setWmiClassvoid
setWmiObject(java.lang.String wmiObject)
setWmiObjectvoid
setWmiOperation(java.lang.String wmiOperation)
setWmiOperationvoid
setWql(java.lang.String wmiWql)
setWql
-
-
-
Field Detail
-
WMI_OPERATION_INSTANCEOF
public static final java.lang.String WMI_OPERATION_INSTANCEOF
ConstantWMI_OPERATION_INSTANCEOF="InstanceOf"
- See Also:
- Constant Field Values
-
WMI_OPERATION_WQL
public static final java.lang.String WMI_OPERATION_WQL
ConstantWMI_OPERATION_WQL="Wql"
- See Also:
- Constant Field Values
-
WMI_DEFAULT_NAMESPACE
public static final java.lang.String WMI_DEFAULT_NAMESPACE
ConstantWMI_DEFAULT_NAMESPACE="root/cimv2"
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WmiParams
public WmiParams(java.lang.String queryType, java.lang.Object compVal, java.lang.String compOp, java.lang.String wmiObj1, java.lang.String wmiObj2)
Constructor, sets the critical threshold.- Parameters:
queryType
- the type of query operation to perform.compVal
- the value to be used for the comparison.compOp
- the operation to be used in the comparison.wmiObj1
- the WMI class to be queried, or WQL to be executed.wmiObj2
- the WMI object within to be queried.
-
-
Method Detail
-
getCompareValue
public java.lang.Object getCompareValue()
getCompareValue
- Returns:
- the m_CompareValue
-
setCompareValue
public void setCompareValue(java.lang.Object compareValue)
setCompareValue
- Parameters:
compareValue
- the m_CompareValue to set
-
getCompareOperation
public java.lang.String getCompareOperation()
getCompareOperation
- Returns:
- the m_CompareOperation
-
setCompareOperation
public void setCompareOperation(java.lang.String compareOperation)
setCompareOperation
- Parameters:
compareOperation
- the m_CompareOperation to set
-
getWmiClass
public java.lang.String getWmiClass()
getWmiClass
- Returns:
- the m_WmiClass
-
setWmiClass
public void setWmiClass(java.lang.String wmiClass)
setWmiClass
- Parameters:
wmiClass
- the m_WmiClass to set
-
getWmiObject
public java.lang.String getWmiObject()
getWmiObject
- Returns:
- the m_WmiObject
-
setWmiObject
public void setWmiObject(java.lang.String wmiObject)
setWmiObject
- Parameters:
wmiObject
- the m_WmiObject to set
-
getWql
public java.lang.String getWql()
getWql
- Returns:
- a
String
object.
-
setWql
public void setWql(java.lang.String wmiWql)
setWql
- Parameters:
wmiWql
- aString
object.
-
getWmiOperation
public java.lang.String getWmiOperation()
getWmiOperation
- Returns:
- a
String
object.
-
setWmiOperation
public void setWmiOperation(java.lang.String wmiOperation)
setWmiOperation
- Parameters:
wmiOperation
- aString
object.
-
-