4.0

Table Of Contents
IPluginAdaptor Interface
You implement the IPluginAdaptor interface to manage plug-in factories, events and watchers. The
IPluginAdaptor interface defines an adapter between a plug-in and the Orchestrator server.
IPluginAdaptor instances are resonsible for session management. The IPluginAdaptor Interface defines the
following methods.
Method Returns Description
addWatcher(PluginWatcher watcher)
Void Adds a watcher to monitor for a specific
event
createPluginFactory(java.lang.String
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.lang.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(IPluginPublisher
pluginPublisher)
Void Sets the publisher of the plug-in
uninstallPluginFactory(IPluginFactory
plugin)
Void Uninstalls a plug-in factory.
unregisterEventPublisher(java.lang.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.
vCenter Orchestrator Developer's Guide
218 VMware, Inc.