Create the program that manages the extension
An extension communicates with
vCenter Server
across a network, so you can use any programming language to create the program that manages an extension.The product that you are exposing as an extension to
vCenter Server
determines the way you create the program that will manage your extension. The managing program must implement Extension
to provide the information that vCenter Server
requires to register the extension.For example, you can create a solution that defines its server side in a
MyManager
class.The
MyManager.java
can performs the following tasks for your solution.- Sets up your solution by obtaining the values for the extension key,vCenter Serverconnection, IP addresses, and port configuration from themysolution.propertiesfile.
- Secures the connection tovCenter Serverby using TLS.
- Defines methods to construct the URLs through which to access the server side of the extension.
- Implements theExtensionobject to register your solution as an extension withvCenter Server.
- Integrates your solution as a solution withExtensionManager.
- Connects the solution to the ESX Agent Manager.
- Instantiates the class that defines the ESX agents that the solution deploys.
- Starts the solution invCenter Server.
- Defines a task to unregister the solution fromvCenter Server.
- Create a program to manage your extension using the programming language of your choice.For example, you can create aMyManagerclass to manage the extension.MyManagercan implement the Spring Framework API.public class MyManager implements InitializingBean { }
- Create an instance of theExtensiondata object with which to register the extension withvCenter Server.TheMyManagerclass can define an internal method that instantiates anExtension.public class MyManager implements InitializingBean { [...] private Extension createExtensionObject() { Extension extension = new Extension(); [...] } }
Connect the extension to
vCenter Server
.