[an error occurred while processing this directive]
[an error occurred while processing this directive] [an error occurred while processing this directive]

Pegasus CIM Object Broker Documentation

[an error occurred while processing this directive]


[an error occurred while processing this directive]

 

Contents

o Introduction
o Objectives
o Overview
o Credits
o Pegasus Architecture
   o Design Goals
   o The Broker
   o Pegasus Providers.
   o Extension Services
   o Pegasus Clients.
   o Functional Flow
o Pegasus Components
   o Component Descriptions
   o Pegasus Directory Structure
o Pegasus Utilization
   o Pegasus Availability
   o Pegasus Installation
   o Pegasus Operation
   o Pegasus CIM Clients
   o Pegasus Providers
   o Pegasus MOF Compiler
o Programming Pegasus
   o CIM Objects in Pegasus
   o CIM Object Table
   o Class Definitions
o Pegasus Interfaces
   o CIM Operations over HTTP
   o Pegasus Client Interfaces
   o Pegasus Provider Interfaces
   o Pegasus Service Extension Interfaces
   o Repository Interfaces
o Writing Providers.
o Glossary
o Pegasus Code Examples
   o Client Examples
   o Client Coding Examples
   o Provider Coding Examples
o Document References
o Pegausus FAQ
o
In file ../../src/Pegasus/Common/OperationContext.h:

class PEGASUS_COMMON_LINKAGE OperationContext

An OperationContext object holds information about the context of an operation, using various Container classes.

Documentation

An OperationContext object holds information about the context of an operation, using various Container classes. The Container subclasses define the set of information that may be available in the OperationContext.

Inheritance:


Public Methods

[more] OperationContext ()
Constructs an empty OperationContext object
[more] OperationContext (const OperationContext& context)
Constructs a copy of an OperationContext object.
[more]virtual ~OperationContext ()
Destructs the OperationContext
[more]OperationContext& operator= (const OperationContext& context)
Assigns the value of the specified OperationContext object to this OperationContext.
[more]void clear ()
Removes all the Containers from the OperationContext
[more]const Container& get (const String& containerName) const
Retrieves the specified Container object from the OperationContext.
[more]Boolean contains (const String& containerName) const
Tests if the specified Container object is in the OperationContext.
[more]void set (const Container& container)
Replaces an OperationContext Container with the specified Container object of the same type.
[more]void insert (const Container& container)
Inserts a Container into the OperationContext.
[more]void remove (const String& containerName)
Removes a Container from the OperationContext.

Public Members

class PEGASUS_COMMON_LINKAGE Container
A Container subclass object holds a piece of context information for an operation

Protected Fields

[more]OperationContextRep* _rep
An internal representation of the OperationContext attributes

o OperationContext()
Constructs an empty OperationContext object

o OperationContext(const OperationContext& context)
Constructs a copy of an OperationContext object. The newly constructed OperationContext object is independent from the source object.
Parameters:
context - The OperationContext object to copy.

ovirtual ~OperationContext()
Destructs the OperationContext

oOperationContext& operator=(const OperationContext& context)
Assigns the value of the specified OperationContext object to this OperationContext. As a result, this OperationContext object will contain the same set of Containers as in the specified object.
Parameters:
context - The OperationContext object to copy.

ovoid clear()
Removes all the Containers from the OperationContext

oconst Container& get(const String& containerName) const
Retrieves the specified Container object from the OperationContext.
Throws:
Exception if the OperationContext does not contain the specified Container type.
Parameters:
containerName - The name of the Container type to retrieve.
Returns:
A reference to the specified Container object.

oBoolean contains(const String& containerName) const
Tests if the specified Container object is in the OperationContext.
Parameters:
containerName - The name of the Container type to retrieve.
Returns:
"true" if the container is present in the OperationContext, "false" if it is not present.

ovoid set(const Container& container)
Replaces an OperationContext Container with the specified Container object of the same type.
Throws:
Exception if the OperationContext does not contain the specified Container type.
Parameters:
container - The Container to set in the OperationContext.

ovoid insert(const Container& container)
Inserts a Container into the OperationContext.
Throws:
Exception if the OperationContext already contains a Container of this type.
Parameters:
container - The Container to insert into the OperationContext.

ovoid remove(const String& containerName)
Removes a Container from the OperationContext.
Throws:
Exception if the OperationContext does not contain the specified Container type.
Parameters:
containerName - The name of the Container type to remove from the OperationContext.

oOperationContextRep* _rep
An internal representation of the OperationContext attributes


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java


[an error occurred while processing this directive]