4.1

Table Of Contents
Table 7-5. Source Files for the Solar System Plug-In Implementation (Continued)
Class Name Description
SolarSystemWatchersManager.java
Implements StarFlareEventListener to monitor solar
flare events in the solar system application and performs
functions in Orchestrator if the solar flare exceeds a certain
magnitude.
\config\SolarSystemConfigurationAdaptor.java
Implements the IConfigurationAdaptor interface and
SDKHelper class to load and save configuration information
in the Orchestrator configuration server.
\Plug-Ins\solarsystem\o11nplugin-solarsystem-
config\src\main\java\com\vmware\orchestrator\ap
i\sample\solarsystem\config\SolarSystemConfigur
eAction.java
Defines methods to obtain configuration information from
the user in the Orchestrator configuration interface. The solar
system configuration tab in the Orchestrator configuration
interface allows the user to configure their home planet and
to specify whether Pluto is a planet or a dwarf planet.
This information examines the Java code of each of the files in the solar system plug-in.
Create a Plug-In Factory
To create a plug-in factory, you create a Java class that implements the IPluginFactory interface from the
Orchestrator plug-in API.
These procedures present the steps involved in creating a plug-in factory. To illustrate the process, they present
code from the SolarSystemFactory class from the solar system plug-in.
You can download the Orchestrator examples ZIP file from the Orchestrator documentation home page to
obtain the sources of the solar system example application and plug-in.
For a description of the role of the plug-in factory and the other components of a plug-in, see “Overview of
Plug-Ins,” on page 139. For information about all of the methods and parameters of the factory interface, see
“IPluginFactory Interface,” on page 212.
Procedure
1 Set Up the Plug-In Factory Implementation on page 157
To create a plug-in factory, you create an implementation of the IPluginFactory interface from the
Orchestrator plug-in API.
2 Set Up Event Listeners and Notification Handlers on page 157
You activate event listeners and notification handlers for a plug-in in the factory implementation.
3 Find Objects By Identifier in the Plugged-In Technology on page 158
You can find objects by their identifier in the plugged-in technology by using the
IPluginFactory.find() method.
4 Find Objects in the Plugged-In Technology By a Query on page 159
You can find objects in the plugged-in technology by defining a query in the
IPluginFactory.findAll() method.
5 Find Objects By Relation Type in the Plugged-In Technology on page 161
You can find objects by their relationship to other objects in the plugged-in technology by using the
IPluginFactory.findRelation() method. You can also determine whether an object has any dependent
child objects by using the IPluginFactory.hasChildrenInRelation() method.
6 Discover Whether an Object has Children of a Given Relation Type on page 162
You implement the IPluginFactory.hasChildrenInRelation() method to discover whether an object
relates to any children by a given type of relation.
vCenter Orchestrator Developer's Guide
156 VMware, Inc.