org.jvnet.hudson.wmi
Interface SWbemServices

All Superinterfaces:
org.jinterop.dcom.core.IJIComObject, org.jinterop.dcom.impls.automation.IJIDispatch, org.kohsuke.jinterop.JIProxy, Serializable

public interface SWbemServices
extends org.kohsuke.jinterop.JIProxy

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class SWbemServices.Implementation
           
 
Field Summary
 
Fields inherited from interface org.jinterop.dcom.impls.automation.IJIDispatch
DISPATCH_DISPID_PUTPUTREF, DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, IID
 
Method Summary
 SWbemObject Get(String objectPath)
           
 SWbemObject Get(String objectPath, int flags, Object objWbemNamedValueSet)
          Gets a particular object/class.
 SWbemObject GetOrNull(String objectPath)
          A variation of Get(String) that returns null if the object doesn't exist, instead of throwing an exception.
 Win32Service getService(String serviceName)
          Gets the Win32Service of the given name, or null.
 SWbemObjectSet InstancesOf(String clazz)
           
 SWbemObjectSet InstancesOf(String clazz, int flags, Object unused)
           
 
Methods inherited from interface org.kohsuke.jinterop.JIProxy
cast
 
Methods inherited from interface org.jinterop.dcom.impls.automation.IJIDispatch
callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodA, callMethodA, callMethodA, callMethodA, callMethodA, callMethodA, callMethodA, get, get, get, get, getIDsOfNames, getIDsOfNames, getLastExcepInfo, getTypeInfo, getTypeInfoCount, put, put, put, put, putRef, putRef, putRef, putRef
 
Methods inherited from interface org.jinterop.dcom.core.IJIComObject
addRef, call, call, getAssociatedSession, getInstanceLevelSocketTimeout, getInterfaceIdentifier, getIpid, getUnreferencedHandler, internal_getConnectionInfo, internal_getInterfacePointer, internal_removeConnectionInfo, internal_setConnectionInfo, internal_setDeffered, isDispatchSupported, isLocalReference, queryInterface, registerUnreferencedHandler, release, setInstanceLevelSocketTimeout, unregisterUnreferencedHandler
 

Method Detail

InstancesOf

SWbemObjectSet InstancesOf(String clazz,
                           int flags,
                           Object unused)
                           throws org.jinterop.dcom.common.JIException
Throws:
org.jinterop.dcom.common.JIException

InstancesOf

SWbemObjectSet InstancesOf(String clazz)
                           throws org.jinterop.dcom.common.JIException
Throws:
org.jinterop.dcom.common.JIException

Get

SWbemObject Get(String objectPath,
                int flags,
                Object objWbemNamedValueSet)
                throws org.jinterop.dcom.common.JIException
Gets a particular object/class.

Parameters:
objectPath - If a class name like "Win32_Service" is specified, you get the class object (from which you can invoke class methods.) This parameter also supports the path notation (although I haven't found the authoritative documentation of the syntax.) Examples I've seen includes "Win32_Service.Name=\"foo\""
Throws:
org.jinterop.dcom.common.JIException

Get

SWbemObject Get(String objectPath)
                throws org.jinterop.dcom.common.JIException
Throws:
org.jinterop.dcom.common.JIException

GetOrNull

SWbemObject GetOrNull(String objectPath)
                      throws org.jinterop.dcom.common.JIException
A variation of Get(String) that returns null if the object doesn't exist, instead of throwing an exception.

Throws:
org.jinterop.dcom.common.JIException

getService

Win32Service getService(String serviceName)
                        throws org.jinterop.dcom.common.JIException
Gets the Win32Service of the given name, or null.

Throws:
org.jinterop.dcom.common.JIException


Copyright © 2004-2011. All Rights Reserved.