com.vmware.vim25.mo
Class LicenseManager

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

public class LicenseManager
extends ManagedObject

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

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
LicenseManager(ServerConnection serverConnection, ManagedObjectReference mor)
           
 
Method Summary
 LicenseManagerLicenseInfo addLicense(String licenseKey, KeyValue[] labels)
           
 boolean checkLicenseFeature(HostSystem host, String featureKey)
           
 void configureLicenseSource(HostSystem host, LicenseSource licenseSource)
           
 LicenseManagerLicenseInfo decodeLicense(String licenseKey)
           
 void disableFeature(HostSystem host, String featureKey)
          Deprecated. in SDK4.0
 void enableFeature(HostSystem host, String featureKey)
           
 LicenseDiagnostics getDiagnostics()
          Deprecated. in SDK4.0
 LicenseManagerEvaluationInfo getEvaluation()
           
 LicenseFeatureInfo[] getFeatureInfo()
          Deprecated. in SDK4.0
 LicenseAssignmentManager getLicenseAssignmentManager()
           
 String getLicensedEdition()
          Deprecated. in SDK4.0
 LicenseManagerLicenseInfo[] getLicenses()
           
 LicenseSource getSource()
          Deprecated. in SDK4.0
 boolean getSourceAvailable()
          Deprecated. in SDK4.0
 LicenseAvailabilityInfo[] queryLicenseSourceAvailability(HostSystem host)
           
 LicenseUsageInfo queryLicenseUsage(HostSystem host)
           
 LicenseFeatureInfo[] querySupportedFeatures(HostSystem host)
           
 void removeLicense(String licenseKey)
           
 void removeLicenseLabel(String licenseKey, String labelKey)
           
 void setLicenseEdition(HostSystem host, String featureKey)
           
 void updateLicense(String licenseKey, KeyValue[] labels)
           
 void updateLicenseLabel(String licenseKey, String labelKey, String labelValue)
           
 
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

LicenseManager

public LicenseManager(ServerConnection serverConnection,
                      ManagedObjectReference mor)
Method Detail

getDiagnostics

public LicenseDiagnostics getDiagnostics()
Deprecated. in SDK4.0


getEvaluation

public LicenseManagerEvaluationInfo getEvaluation()

getLicenseAssignmentManager

public LicenseAssignmentManager getLicenseAssignmentManager()

getLicenses

public LicenseManagerLicenseInfo[] getLicenses()

getFeatureInfo

public LicenseFeatureInfo[] getFeatureInfo()
Deprecated. in SDK4.0


getLicensedEdition

public String getLicensedEdition()
Deprecated. in SDK4.0


getSource

public LicenseSource getSource()
Deprecated. in SDK4.0


getSourceAvailable

public boolean getSourceAvailable()
Deprecated. in SDK4.0


addLicense

public LicenseManagerLicenseInfo addLicense(String licenseKey,
                                            KeyValue[] labels)
                                     throws RuntimeFault,
                                            RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.0

decodeLicense

public LicenseManagerLicenseInfo decodeLicense(String licenseKey)
                                        throws RuntimeFault,
                                               RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.0

checkLicenseFeature

public boolean checkLicenseFeature(HostSystem host,
                                   String featureKey)
                            throws InvalidState,
                                   RuntimeFault,
                                   RemoteException
Throws:
InvalidState
RuntimeFault
RemoteException

configureLicenseSource

public void configureLicenseSource(HostSystem host,
                                   LicenseSource licenseSource)
                            throws CannotAccessLocalSource,
                                   LicenseServerUnavailable,
                                   InvalidLicense,
                                   RuntimeFault,
                                   RemoteException
Throws:
CannotAccessLocalSource
LicenseServerUnavailable
InvalidLicense
RuntimeFault
RemoteException

disableFeature

public void disableFeature(HostSystem host,
                           String featureKey)
                    throws LicenseServerUnavailable,
                           InvalidState,
                           RuntimeFault,
                           RemoteException
Deprecated. in SDK4.0

Throws:
LicenseServerUnavailable
InvalidState
RuntimeFault
RemoteException

enableFeature

public void enableFeature(HostSystem host,
                          String featureKey)
                   throws LicenseServerUnavailable,
                          InvalidState,
                          RuntimeFault,
                          RemoteException
Throws:
LicenseServerUnavailable
InvalidState
RuntimeFault
RemoteException

queryLicenseSourceAvailability

public LicenseAvailabilityInfo[] queryLicenseSourceAvailability(HostSystem host)
                                                         throws RuntimeFault,
                                                                RemoteException
Throws:
RuntimeFault
RemoteException

queryLicenseUsage

public LicenseUsageInfo queryLicenseUsage(HostSystem host)
                                   throws RuntimeFault,
                                          RemoteException
Throws:
RuntimeFault
RemoteException

querySupportedFeatures

public LicenseFeatureInfo[] querySupportedFeatures(HostSystem host)
                                            throws RuntimeFault,
                                                   RemoteException
Throws:
RuntimeFault
RemoteException

removeLicense

public void removeLicense(String licenseKey)
                   throws RuntimeFault,
                          RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.0

removeLicenseLabel

public void removeLicenseLabel(String licenseKey,
                               String labelKey)
                        throws RuntimeFault,
                               RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.0

updateLicense

public void updateLicense(String licenseKey,
                          KeyValue[] labels)
                   throws RuntimeFault,
                          RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.0

updateLicenseLabel

public void updateLicenseLabel(String licenseKey,
                               String labelKey,
                               String labelValue)
                        throws RuntimeFault,
                               RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.0

setLicenseEdition

public void setLicenseEdition(HostSystem host,
                              String featureKey)
                       throws LicenseServerUnavailable,
                              InvalidState,
                              RuntimeFault,
                              RemoteException
Throws:
LicenseServerUnavailable
InvalidState
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.