AdapterController.java class
The AdapterController.java class is a lifecycle manager for the BMC ProactiveNet cloud integrator. The following section lists a sample AdapterController.java class that is generated when BMC ProactiveNet in integrated with VMware vCloud and explains the methods used in this class.
Sample AdapterController.java class
public class VcloudAdapterController implements ICloudAdapterController {
public void initialize() throws CAException {
IRequestHandler requestHandler=getRequestHandler();
Object request = new Object();
requestHandler.handleRequest(“PVDC_CREATE",request);
}
public void shutdown() throws CAException {
// method is called at the time of shutdown
}
public ADAPTER_STATE getState() throws CAException {
return null;
}
...
...
}
public void initialize() throws CAException {
IRequestHandler requestHandler=getRequestHandler();
Object request = new Object();
requestHandler.handleRequest(“PVDC_CREATE",request);
}
public void shutdown() throws CAException {
// method is called at the time of shutdown
}
public ADAPTER_STATE getState() throws CAException {
return null;
}
...
...
}
The initialize method is called when you restart the BMC ProactiveNet Server. The initialize call lands in the initialize method. You must write all your initialization code within the initialize method.
The shutdown method is called when you shut down the BMC ProactiveNet Server. Clean up code if any must be written within the shutdown method.
The getState method is called to get the status of the cloud integrator.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*