JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris WBEM Developer's Guide     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information


1.  Overview of Solaris Web-Based Enterprise Management

2.  Using the CIM Object Manager

3.  Using the Sample Programs

4.  Writing a Client Program

Client API Overview

Sequence of a Client Application

Opening and Closing a Client Connection

About Namespaces

Opening a Client Connection

Closing a Client Connection

Performing Basic Client Operations

Creating an Instance

Deleting an Instance

Getting and Setting Instances

Getting and Setting Properties

Enumerating Objects

Enumerating Objects

Creating Associations

About the Association Methods

Passing a Class to the Association Methods

Passing Instances to the Association Methods

Using Optional Arguments With the Association Methods

Calling Methods

Retrieving Class Definitions

Handling Exceptions

Creating a Namespace

Deleting a Namespace

Creating a Base Class

Deleting a Class

Setting Access Control

Solaris_UserAcl Class

To Set Access Control for a User

Solaris_NamespaceAcl Class

To Set Access Control for a Namespace

Working With Qualifiers and Qualifier Types

Getting and Setting CIM Qualifiers

Batching Client Requests

Handling CIM Events

About Indications

About Subscriptions

To Create a Subscription

Adding a CIM Listener

Creating an Event Filter

To Create an Event Filter

Creating an Event Handler

Binding an Event Filter to an Event Handler

Reading and Writing Log Messages

About Log Files

5.  Writing WBEM Queries

6.  Writing a Provider Program

7.  Creating JavaBeans Components Using the MOF Compiler

8.  Administering Security

9.  Troubleshooting

A.  Solaris Schema


Client API Overview

WBEM client applications use the javax.wbem.client APIs to manipulate Common Information Model (CIM) objects. A client application uses the CIM API to construct an object and then to create an instance of that object. Examples of such an object include a class, an instance, or a namespace. The application uses the client APIs to pass the object to the CIM Object Manager and request a WBEM operation. Examples of such an operation are creating a CIM class, creating an instance, or creating a namespace.

Sequence of a Client Application

Client applications typically follow this sequence:

  1. Connect to the CIMOM using CIMClient. A client application connects to the CIMOM each time the client needs to perform a WBEM operation. These operations might include creating a CIM class and updating a CIM instance. See Opening and Closing a Client Connection.

  2. Use the client APIs to request operations and to perform programming tasks. The application's feature set determines which operations it needs to request. The tasks that most programs perform include:

    • Creating, deleting and updating instances

    • Enumerating objects

    • Calling methods

    • Retrieving class definitions

    • Handling errors

    Client programs can also create and delete classes, create and delete namespaces, and use qualifiers. See Performing Basic Client Operations.

  3. Close the client connection to the CIM Object Manager using CIMClient, to free the server resources used by the client session. See Opening and Closing a Client Connection.