org.opennms.protocols.wmi.wbem.jinterop
Class OnmsWbemObjectImpl

java.lang.Object
  extended by org.opennms.protocols.wmi.wbem.jinterop.OnmsWbemObjectImpl
All Implemented Interfaces:
OnmsWbemObject

public class OnmsWbemObjectImpl
extends Object
implements OnmsWbemObject


Constructor Summary
OnmsWbemObjectImpl(org.jinterop.dcom.impls.automation.IJIDispatch wbemObjectDispatch)
           
 
Method Summary
 OnmsWbemMethodSet getWmiMethods()
          Gets a list of the available methods on this object.
 String getWmiObjectText()
           
 OnmsWbemObjectPath getWmiPath()
           
 OnmsWbemPropertySet getWmiProperties()
           
 OnmsWbemObjectImpl wmiExecMethod(String methodName, List params, List namedValueSet)
          Execute a named method on this WMI object.
 List<String> wmiInstances()
          Returns a list of instances of this object (if it is a WMI class.)
 String wmiPut()
          Create or update a WMI object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnmsWbemObjectImpl

public OnmsWbemObjectImpl(org.jinterop.dcom.impls.automation.IJIDispatch wbemObjectDispatch)
Method Detail

wmiExecMethod

public OnmsWbemObjectImpl wmiExecMethod(String methodName,
                                        List params,
                                        List namedValueSet)
Description copied from interface: OnmsWbemObject
Execute a named method on this WMI object.

Specified by:
wmiExecMethod in interface OnmsWbemObject
Parameters:
methodName - The name of the method to execute on the remote side.
params - The list of parameters for this method.
namedValueSet - A list of parameter values.
Returns:
The result of the method execution.

wmiInstances

public List<String> wmiInstances()
Description copied from interface: OnmsWbemObject
Returns a list of instances of this object (if it is a WMI class.)

Specified by:
wmiInstances in interface OnmsWbemObject
Returns:
a list of instance names.

wmiPut

public String wmiPut()
Description copied from interface: OnmsWbemObject
Create or update a WMI object.

Specified by:
wmiPut in interface OnmsWbemObject
Returns:
the object path to the created/updated WMI object.

getWmiMethods

public OnmsWbemMethodSet getWmiMethods()
                                throws WmiException
Description copied from interface: OnmsWbemObject
Gets a list of the available methods on this object.

Specified by:
getWmiMethods in interface OnmsWbemObject
Returns:
a list of available methods on this object.
Throws:
WmiException

getWmiPath

public OnmsWbemObjectPath getWmiPath()
                              throws WmiException
Specified by:
getWmiPath in interface OnmsWbemObject
Throws:
WmiException

getWmiObjectText

public String getWmiObjectText()
                        throws WmiException
Specified by:
getWmiObjectText in interface OnmsWbemObject
Throws:
WmiException

getWmiProperties

public OnmsWbemPropertySet getWmiProperties()
                                     throws WmiException
Specified by:
getWmiProperties in interface OnmsWbemObject
Throws:
WmiException


Copyright © 2009. All Rights Reserved.