4.1

Table Of Contents
n
getUniqueInstance(), to return a unique SolarSystemRepository instance
n
getStar(), to return the star of this solar system instance
n
setStar(), to set the star of this solar system instance
n
getAllPlanets(), to return a list of the planets that orbit the star
n
getPlanetById(), to return a planet by its unique identifier
n
getAllMoons(), to return a list of the moons that orbit a planet
n
getMoonById(), to return a moon by its unique identifier
Components of the Solar System Plug-In
The solar system plug-in implements a plug-in adapter, plug-in factory, and event handlers to expose the
objects and functions of the solar system application to Orchestrator.
You find the source files of the solar system plug-in in the \Plug-Ins\solarsystem\o11nplugin-solarsystem-
core\src\main\java\com\vmware\orchestrator\api\sample\solarsystem directory after you unzip the
examples bundle.
The SolarSystemConfigureAction.java file is in the o11nplugin-solarsystem-config directory rather than in
o11nplugin-solarsystem-core.
NOTE The source files of the solar system example application and solar system plug-in are provided for
reference purposes, so that you can see the details of the application that the solar system plug-in exposes and
of the plug-in implementation. If you import the ready-made o11nplugin-solarsystem.dar file to Orchestrator,
you do not need to build solar system application code or build the plug-in from the sources. However, if you
adapt the code of the solar system application or the solar system plug-in, you can rebuild the application and
the DAR file to incorporate your adaptations. See “Build the Solar System Application and Plug-In,” on
page 203.
Table 7-5 lists the Java files of the solar system application.
Table 7-5. Source Files for the Solar System Plug-In Implementation
Class Name Description
SolarSystemAdapter.java
Implements the IPluginAdaptor interface that defines for
Orchestrator the entry point of the solar system application.
Instantiates the solar system factory and creates instances of
event generators, publishers, and watchers.
SolarSystemFactory.java
Implements the IPluginFactory interface that defines how
Orchestrator uses the plug-in to find solar system objects,
and how to perform operations on those objects.
SolarSystemEventGenerator.java
Defines methods to publish events to Orchestrator and a
method to generate solar flares on Star objects in the solar
system application. Creates a StarFlareEventListener
object that listens for solar flare events on Star objects in the
solar system application.
SolarSystemEventListener.java
Implements the IPluginNotificationHandler interface,
registers listeners with the notification handler to listen for
events in the solar system application, and sends
notifications of the events to Orchestrator.
SolarSystemTriggerGenerator.java
Creates triggers that allow you to start solar flare events in
the solar system application from Orchestrator.
Chapter 7 Developing Plug-Ins
VMware, Inc. 155