com.vmware.vim25.mo
Class ExtensionManager

java.lang.Object
  extended by com.vmware.vim25.mo.ManagedObject
      extended by com.vmware.vim25.mo.ExtensionManager

public class ExtensionManager
extends ManagedObject

The managed object class corresponding to the one defined in VI SDK API reference.

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
ExtensionManager(ServerConnection serverConnection, ManagedObjectReference mor)
           
 
Method Summary
 Extension findExtension(String keyStr)
          Find the extension based on the unique key of the plugin If keyStr is null then a NullPointerException
 Extension[] getExtensionList()
          Retrieve all the registered plugins objects
 void printAllExtensions()
          Deprecated.  
 ManagedEntity[] queryManagedBy(String extensionKey)
           
 void registerExtension(Extension extension)
          Register a new plugin If extension is null then a NullPointerException is thrown.
 void setPublicKey(String extensionKey, String publicKey)
           
 void unregisterExtension(String keyStr)
          Un-register an existing plugin If keyStr is null then a NullPointerException is thrown.
 void updateExtension(Extension extension)
          Update an existing plugin with modified information If extension is null then a NullPointerException is 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, setMOR, setServerConnection, toString, waitForValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtensionManager

public ExtensionManager(ServerConnection serverConnection,
                        ManagedObjectReference mor)
Method Detail

getExtensionList

public Extension[] getExtensionList()
Retrieve all the registered plugins objects

Returns:
An array of extension objects. If no extension found, an empty array is returned.

queryManagedBy

public ManagedEntity[] queryManagedBy(String extensionKey)
                               throws RuntimeFault,
                                      RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK5.0

setPublicKey

public void setPublicKey(String extensionKey,
                         String publicKey)
                  throws RuntimeFault,
                         RemoteException
Throws:
RuntimeFault
RemoteException

unregisterExtension

public void unregisterExtension(String keyStr)
                         throws NotFound,
                                RuntimeFault,
                                RemoteException
Un-register an existing plugin If keyStr is null then a NullPointerException is thrown.

Parameters:
keyStr - The unique key of the plugin
Throws:
RemoteException
RuntimeFault
NotFound - either because of the web service itself, or because of the service provider unable to handle the request.

updateExtension

public void updateExtension(Extension extension)
                     throws NotFound,
                            RuntimeFault,
                            RemoteException
Update an existing plugin with modified information If extension is null then a NullPointerException is thrown.

Parameters:
extension - The extension object with updated information
Throws:
RemoteException
RuntimeFault
NotFound - either because of the web service itself, or because of the service provider unable to handle the request.

registerExtension

public void registerExtension(Extension extension)
                       throws RuntimeFault,
                              RemoteException
Register a new plugin If extension is null then a NullPointerException is thrown.

Parameters:
extension - The extension object to be registered
Throws:
RemoteException
RuntimeFault - either because of the web service itself, or because of the service provider unable to handle the request.

findExtension

public Extension findExtension(String keyStr)
                        throws RuntimeFault,
                               RemoteException
Find the extension based on the unique key of the plugin If keyStr is null then a NullPointerException

Parameters:
keyStr - The unique key for the plugin
Returns:
The extension object found with the unique key
Throws:
RemoteException
RuntimeFault
RemoteException - 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.

printAllExtensions

public void printAllExtensions()
Deprecated. 

Print out information of all the plugins to stdout

Throws:
RemoteException - 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.


Copyright © 2011-2012. All Rights Reserved.