Contents
|
In file ../../src/Pegasus/Provider/CIMOMHandle.h:
Provides an interface through which a provider may communicate with the CIM Server.
Documentation
Provides an interface through which a provider may communicate with the
CIM Server. Most of the methods of this class mirror the CIMClient
interface and allow a provider to perform CIM operations. The semantics
of these methods are the same as the CIMClient interface, and their
documentation is not repeated here. Please refer to the CIMClient
documentation for further details. The interface differs slightly by
the use of an OperationContext parameter. This parameter is used to
communicate context information such as language data, for which the
CIMClient uses state settings.
The CIMOMHandle may serialize requests from different threads, and
therefore may not be a good choice for multi-threaded access. Use of
the CIMClient interface by a provider is permitted and may be considered
when multiple threads need to perform client operations concurrently.
Inheritance:
Public Methods
| CIMOMHandle ()
Constructs a default CIMOMHandle object
|
| ~CIMOMHandle ()
Destructs a CIMOMHandle object
|
CIMOMHandle& | operator= (const CIMOMHandle& handle)
Assigns the CIMOMHandle from a specified CIMOMHandle object.
|
void | disallowProviderUnload ()
Provides a hint to the CIM Server that the provider calling this method prefers not to be unloaded.
|
void | allowProviderUnload ()
Provides a hint to the CIM Server that the provider calling this method no longer prefers not to be unloaded.
|
OperationContext | getResponseContext ()
Returns the context of the response to the last request.
|
- CIMOMHandle()
-
Constructs a default CIMOMHandle object
- ~CIMOMHandle()
-
Destructs a CIMOMHandle object
- CIMOMHandle& operator=(const CIMOMHandle& handle)
-
Assigns the CIMOMHandle from a specified CIMOMHandle object.
- Parameters:
- handle - The CIMOMHandle object to copy.
- Returns:
- A reference to this CIMOMHandle object with the new assignment.
- void disallowProviderUnload()
-
Provides a hint to the CIM Server that the provider calling this
method prefers not to be unloaded. This hint applies in
situations where a provider unload is not necessary, such as
when the CIM Server unloads idle providers for efficiency reasons.
A provider may rescind this hint by using the allowProviderUnload
method. Note that disallowProviderUnload is cumulative, such that
each call to disallowProviderUnload must be matched with a call to
allowProviderUnload.
- void allowProviderUnload()
-
Provides a hint to the CIM Server that the provider calling this
method no longer prefers not to be unloaded. This hint applies in
situations where a provider unload is not necessary, such as
when the CIM Server unloads idle providers for efficiency reasons.
This method is used to rescind a hint that was given using the
disallowProviderUnload method. Note that each allowProviderUnload
call should be preceded by a disallowProviderUnload call.
- OperationContext getResponseContext()
-
Returns the context of the response to the last request.
Currently, the context only contains the ContentLanguageListContainer
from the response.
Note: this method should be called directly after the call to the
CIM request method (getClass, etc), and can only be called once
per request.
- Returns:
- An OperationContext object containing the context of the most
recent response.
- This class has no child classes.
- Friends:
- class ProviderStatus
class CMPIProvider class CMPI_BrokerHdl
Alphabetic index HTML hierarchy of classes or Java
|