4.1

Table Of Contents
Method Returns Description
addWatcher(PluginWatcher
watcher)
Void Adds a watcher to monitor for a specific
event
createPluginFactory(java.lang.S
tring sessionID,
java.lang.String username,
java.lang.String password,
IPluginNotificationHandler
notificationHandler)
IPluginFactory
Creates an IPluginFactory instance.
The Orchestrator server uses the factory
to obtain objects from the plugged-in
technology by their ID, by their relation
to other objects, and so on.
The session ID allows you to identify a
running session. For example, a user
could log into two different
Orchestrator clients and run two
sessions simultaneously.
Similarly, starting a workflow creates a
session that is independent from the
client in which the workflow started. A
workflow continues to run even if you
close the Orchestrator client.
installLicenses(PluginLicense[]
licenses)
Void Installs the license information for
standard plug-ins that VMware
provides
registerEventPublisher(java.lan
g.String type, java.lang.String
id, IPluginEventPublisher
publisher)
Void Sets triggers and gauges on an element
in the inventory
removeWatcher(java.lang.String
watcherId)
Void Removes a watcher
setPluginName(java.lang.String
pluginName)
Void Gets the plug-in name from the
vso.xml file
setPluginPublisher(IPluginPubli
sher pluginPublisher)
Void Sets the publisher of the plug-in
uninstallPluginFactory(IPluginF
actory plugin)
Void Uninstalls a plug-in factory.
unregisterEventPublisher(java.l
ang.String type,
java.lang.String id,
IPluginEventPublisher
publisher)
Void Removes triggers and gauges from an
element in the inventory
IPluginEventPublisher Interface
The IPluginEventPublisher interface publishes gauges and triggers on an event notification bus for
Orchestrator policies to monitor.
You can create IPluginEventPublisher instances directly in the plug-in adaptor implementation or you can
create them in separate event generator classes.
You can implement the IPluginEventPublisher interface to publish events in the plugged-in technology to the
Orchestrator policy engine. You create methods to set policy triggers and gauges on objects in the plugged-in
technology and event listeners to listen for events on those objects.
Policies can implement either gauges or triggers to monitor objects in the plugged-in technology. Policy gauges
monitor the attributes of objects and push an event in the Orchestrator server if the values of the objects exceed
certain limits. Policy triggers monitor objects and push an event in the Orchestrator server if a defined event
occurs on the object. You register policy gauges and triggers with IPluginEventPublisher instances so that
Orchestrator policies can monitor them.
The IPluginEventPublisher Interface defines the following methods.
Chapter 7 Developing Plug-Ins
VMware, Inc. 211