org.opennms.protocols.wmi
Class WmiParams

java.lang.Object
  extended by org.opennms.protocols.wmi.WmiParams

public class WmiParams
extends Object

This class contains the parameters used to perform and validate checks against WMI agents.

Author:
Matt Raykowski

Field Summary
static String WMI_OPERATION_INSTANCEOF
           
static String WMI_OPERATION_WQL
           
 
Constructor Summary
WmiParams(String queryType, Object compVal, String compOp, String wmiObj1, String wmiObj2)
          Constructor, sets the critical threshold.
 
Method Summary
 String getCompareOperation()
           
 Object getCompareValue()
           
 String getWmiClass()
           
 String getWmiObject()
           
 String getWmiOperation()
           
 String getWql()
           
 void setCompareOperation(String compareOperation)
           
 void setCompareValue(Object compareValue)
           
 void setWmiClass(String wmiClass)
           
 void setWmiObject(String wmiObject)
           
 void setWmiOperation(String wmiOperation)
           
 void setWql(String wmiWql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WMI_OPERATION_INSTANCEOF

public static final String WMI_OPERATION_INSTANCEOF
See Also:
Constant Field Values

WMI_OPERATION_WQL

public static final String WMI_OPERATION_WQL
See Also:
Constant Field Values
Constructor Detail

WmiParams

public WmiParams(String queryType,
                 Object compVal,
                 String compOp,
                 String wmiObj1,
                 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 Object getCompareValue()
Returns:
the m_CompareValue

setCompareValue

public void setCompareValue(Object compareValue)
Parameters:
compareValue - the m_CompareValue to set

getCompareOperation

public String getCompareOperation()
Returns:
the m_CompareOperation

setCompareOperation

public void setCompareOperation(String compareOperation)
Parameters:
compareOperation - the m_CompareOperation to set

getWmiClass

public String getWmiClass()
Returns:
the m_WmiClass

setWmiClass

public void setWmiClass(String wmiClass)
Parameters:
wmiClass - the m_WmiClass to set

getWmiObject

public String getWmiObject()
Returns:
the m_WmiObject

setWmiObject

public void setWmiObject(String wmiObject)
Parameters:
wmiObject - the m_WmiObject to set

getWql

public String getWql()

setWql

public void setWql(String wmiWql)

getWmiOperation

public String getWmiOperation()

setWmiOperation

public void setWmiOperation(String wmiOperation)


Copyright © 2009. All Rights Reserved.