Package com.vmware.vim25.mo
Class ExtensionManager
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.ExtensionManager
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionManager(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfindExtension(String keyStr) Find the extension based on the unique key of the plugin IfkeyStris null then aNullPointerExceptionvoidDeprecated.queryExtensionIpAllocationUsage(String[] extensionKeys) queryManagedBy(String extensionKey) voidregisterExtension(Extension extension) Register a new plugin Ifextensionis null then aNullPointerExceptionis thrown.voidsetCertificate(String extensionKey, String certificatePem) voidsetPublicKey(String extensionKey, String publicKey) voidsetServiceAccount(String extensionKey, String serviceAccount) voidunregisterExtension(String keyStr) Un-register an existing plugin IfkeyStris null then aNullPointerExceptionis thrown.voidupdateExtension(Extension extension) Update an existing plugin with modified information Ifextensionis null then aNullPointerExceptionis thrown.Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setCachedProperty, setMOR, setServerConnection, toString, waitForValues
-
Constructor Details
-
ExtensionManager
-
-
Method Details
-
getExtensionList
-
getPublicKey
- Throws:
RuntimeFaultRemoteException
-
setCertificate
public void setCertificate(String extensionKey, String certificatePem) throws NoClientCertificate, NotFound, RuntimeFault, RemoteException -
setPublicKey
public void setPublicKey(String extensionKey, String publicKey) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
setServiceAccount
public void setServiceAccount(String extensionKey, String serviceAccount) throws NotFound, RuntimeFault, RemoteException - Throws:
NotFoundRuntimeFaultRemoteException
-
queryExtensionIpAllocationUsage
public ExtensionManagerIpAllocationUsage[] queryExtensionIpAllocationUsage(String[] extensionKeys) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException- Since:
- SDK5.1
-
queryManagedBy
- Throws:
RuntimeFaultRemoteException- Since:
- SDK5.0
-
unregisterExtension
Un-register an existing plugin IfkeyStris null then aNullPointerExceptionis thrown.- Parameters:
keyStr- The unique key of the plugin- Throws:
RemoteExceptionRuntimeFaultNotFound- either because of the web service itself, or because of the service provider unable to handle the request.
-
updateExtension
Update an existing plugin with modified information Ifextensionis null then aNullPointerExceptionis thrown.- Parameters:
extension- The extension object with updated information- Throws:
RemoteExceptionRuntimeFaultNotFound- either because of the web service itself, or because of the service provider unable to handle the request.
-
registerExtension
Register a new plugin Ifextensionis null then aNullPointerExceptionis thrown.- Parameters:
extension- The extension object to be registered- Throws:
RemoteExceptionRuntimeFault- either because of the web service itself, or because of the service provider unable to handle the request.
-
findExtension
Find the extension based on the unique key of the plugin IfkeyStris null then aNullPointerException- Parameters:
keyStr- The unique key for the plugin- Returns:
- The extension object found with the unique key
- Throws:
RemoteExceptionRuntimeFaultRemoteException- if something is wrong with web service call, either because of the web service itself, or because of the service provider unable to handle the request.
-
encodeUrl
-
printAllExtensions
Deprecated.Print out information of all the plugins to stdout
-