Documentation Home
> Sun WBEM SDK Developer's Guide
Sun WBEM SDK Developer's Guide
Book Information
Index
A
B
C
D
E
H
I
J
M
N
O
P
Q
S
T
U
W
Preface
Chapter 1 Overview of WBEM
About WBEM
Common Information Model
CIM Terminology
CIM Structure
The Core Model
The Common Model
CIM Extensions
Managed Object Format
The MOF Syntax
Schema MOF Files
CIM and Solaris
Sun WBEM SDK
Solaris WBEM Services
Chapter 2 CIM WorkShop
About CIM WorkShop
Starting CIM WorkShop
Navigating in CIM WorkShop
Browsing the Class Inheritance Tree
Finding a Class
Viewing Class Characteristics
Selecting a Class
Viewing Class Properties
Viewing Class Methods
Viewing Qualifiers
Viewing the Scope of a Qualifier
Viewing the Flavor of a Qualifier
Working in Namespaces
Creating a Namespace
Changing Namespaces
Changing Hosts
Refreshing Classes and Namespaces
Working with Classes
Adding a Class
Creating a Class
Adding Qualifiers
Adding New Properties to a Class
Adding Qualifiers to a New Property
Deleting Classes and Their Attributes
Deleting a Class
Deleting a Property of a Class
Deleting Qualifiers
Working with Instances
Displaying Instances
Adding Instances
Deleting Instances
Invoking Methods
Reference: CIM WorkShop Window and Dialogs
The CIM WorkShop Window
CIM WorkShop Toolbar Icons
The Properties Tab
The Methods Tab
CIM WorkShop Menus
Login Dialog Box
New Class Dialog Box
Add Property Dialog Box
Qualifiers Dialog Box
Scope Dialog Box
Flavors Dialog Box
Value Type Dialog Boxes
Real Integer Dialog Box
Signed Integer Dialog Box
Unsigned Integer Dialog Box
String Dialog Box
Array Dialog Boxes
Boolean Dialog Box
Date/Time Dialog Box
Instance Window
Frames of the Instances Window
Instances Window Toolbar Icons
Menus of the Instances Window
Add Instance Dialog Box
Invoke Methods Dialog Box
Chapter 3 Application Programming Interfaces
About the APIs
The API Packages
CIM API Package (com.sun.wbem.cim)
Exception Classes
Client API Package (com.sun.wbem.client)
Provider API Package
Chapter 4 Writing Client Applications
Overview
Sequence of a Client Application
Example — Typical Sun WBEM SDK Application
Typical Programming Tasks
Opening and Closing a Client Connection
Using Namespaces
Connecting to the CIM Object Manager
Examples — Connecting to the CIM Object Manager
Closing a Client Connection
Working with Instances
Creating an Instance
Example — Creating an Instance
Deleting an Instance
Example — Deleting an Instance
Getting and Setting Instances
Example — Getting Instances
Example — Getting a Property
Example — Setting a Property
Example — Setting Instances
Enumerating Namespaces, Classes, and Instances
Deep and Shallow Enumeration
Getting Class and Instance Data
Getting Class and Instance Names
Example — Enumerating Namespaces
Example — Enumerating Class Names
Querying
The execQuery Method
Syntax
Example
Using the WBEM Query Language
Supported WQL Key Words
WBEM Query Language Operators
Making a Data Query
The SELECT Statement
The WHERE Clause
Associations
About Associations
The Association Methods
Specifying the Source Class or Instance
Using the Model Path to Specify an Instance
Using the APIs to Specify an Instance
Using Optional Arguments to Filter Returned Classes and Instances
Examples — associators and associatorNames Methods
Examples — references and referenceNames Methods
Calling Methods
Example — Calling a Method
Retrieving Class Definitions
Example — Retrieving a Class Definition
Handling Exceptions
Using the Try/Catch Clauses
Syntactic and Semantic Error Checking
Advanced Programming Topics
Creating a Namespace
Example — Creating a Namespace
Deleting a Namespace
Example — Deleting a Namespace
Creating a Base Class
Example — Creating a CIM Class
Deleting a Class
Example — Deleting a Class
Working with Qualifier Types and Qualifiers
Example — Getting CIM Qualifiers
Example — Setting CIM Qualifiers
Sample Programs
Chapter 5 Writing a Provider Program
About Providers
Types of Providers
Implementing a Provider Interface
The Instance Provider Interface (InstanceProvider)
Example — Implementing an Instance Provider
The Property Provider Interface (PropertyProvider)
Example — Implementing a Property Provider
The Method Provider Interface (MethodProvider)
Example — Implementing a Method Provider
The Associator Provider Interface (AssociatorProvider)
Example — Implementing an Association Provider
Writing a Native Provider
Installing a Provider
Setting the Solaris Provider CLASSPATH
Registering a Provider
Changing a MOF File
Example — Registering a Provider
Modifying a Provider
Handling WBEM Query Language Queries
Using the Query APIs to Parse Query Strings
The WBEM Query Language Expression
The SELECT Statement
The FROM Clause
The WHERE Clause
Using the Canonize Methods
Writing a Provider that Parses WQL Query Strings
Example — Implementing the execQuery Method
Chapter 6 Handling CIM Events
The CIM Event Model
How Indications of Events are Generated
How Subscriptions are Created
Creating a Subscription
Adding a CIM Listener
Creating an Event Filter
Creating an Event Handler
Binding an Event Filter to an Event Handler
Generating an Event Indication
Methods in the EventProvider Interface
Creating and Delivering Indications
Authorizations
CIM Indication Classes
Chapter 7 Using Sun WBEM SDK Examples
About Example Programs
Using the Applet
Using Client Examples
Client Example Files
Running the Client Examples
Using the Provider Examples
Provider Example Files
Writing a Native Provider
Setting Up the Provider Example
Chapter 8 Error Messages
How Error Messages are Generated
Parts of Error Messages
Error Message Example
For Developers: Error Message Templates
Finding Information About Error Messages
Generated Error Messages
Appendix A Common Information Model (CIM) Terms and Concepts
CIM Concepts
Object-Oriented Modeling
Uniform Modeling Language
CIM Terms
Schema
Class and Instance
Custom Classes: Extensions to CIM
Property
Method
Domain
Qualifier and Flavor
Indication
Association
Reference and Range
Override
Core Model Concepts
System Aspects of the Core Model
System Classes Provided by the Core Model
System Associations Provided by the Core Model
Component Associations
Dependency Associations
Example of an Extension into the Core Model
Common Model Schemas
Systems
Devices
Applications
Networks
Physical
Glossary
© 2010, Oracle Corporation and/or its affiliates