4.0

Table Of Contents
Procedure
1 Declare the variables that the adapter class uses in its method calls.
The solar system adapter declares variables for the plug-in factory and plug-in name.
public class SolarSystemAdapter implements IPluginAdaptor {
private SolarSystemFactory factory;
static String pluginName;
}
2 Create an instance of the plug-in factory class that implements the IPluginFactory interface.
The solar system adapter calls the IPluginAdaptor.createPluginFactory() method to create an instance
of the SolarSystemFactory interface, if one does not exist already.
public IPluginFactory createPluginFactory(String sessionID, String username,
String password, IPluginNotificationHandler notificationHandler)
throws SecurityException, LoginException, PluginLicenseException {
if (factory == null) {
factory = new SolarSystemFactory();
}
return factory;
}
3 Set the plug-in name.
The IPluginAdaptor.setPluginName() method gets the name from the vso.xml file.
The solar system adapter uses the pluginName variable to set the name of the plug-in.
public void setPluginName(String pluginName) {
SolarSystemAdapter.pluginName = pluginName;
}
4 (Optional) Install any licenses that Orchestrator requires to access the plugged-in technology.
You obtain licenses by calling the IPluginAdaptor.installLicenses() method to instantiate an array of
PluginLicense objects.
public void installLicenses(PluginLicense[] licenses) throws
PluginLicenseException {
}
5 (Optional) Uninstall an existing plug-in factory.
A plug-in creates a factory instance for every client session that opens between Orchestrator and a plugged-
in technology. You can remove unnecessary plug-in factories to clean up the Orchestrator server by calling
the IPluginAdaptor.uninstallPluginFactory() method.
The solar system plug-in does not implement the IPluginAdaptor.uninstallPluginFactory() method.
You can uninstall factories by implementing a function in the uninstallPluginFactory() method
declaration.
public void uninstallPluginFactory(IPluginFactory plugin) {
}
You instantiated the IPluginFactory implementation, set the name for the plug-in, obtained any licenses that
the plug-in connection requires, and potentially defined a function to remove old factory instances from the
server.
What to do next
Instantiate event generators and publishers.
vCenter Orchestrator Developer's Guide
188 VMware, Inc.