Package com.vmware.vim25.mo
Class LicenseManager
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.LicenseManager
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseManager(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionaddLicense(String licenseKey, KeyValue[] labels) booleancheckFeature(HostSystem host, String featureKey) booleancheckLicenseFeature(HostSystem host, String featureKey) voidconfigureLicenseSource(HostSystem host, LicenseSource licenseSource) Backward-compat alias forconfigureSource(HostSystem, LicenseSource).voidconfigureSource(HostSystem host, LicenseSource licenseSource) decodeLicense(String licenseKey) booleandisable(HostSystem host, String featureKey) voiddisableFeature(HostSystem host, String featureKey) Backward-compat alias fordisable(HostSystem, String); ignores boolean return.booleanenable(HostSystem host, String featureKey) voidenableFeature(HostSystem host, String featureKey) Backward-compat alias forenable(HostSystem, String); ignores boolean return.booleanDeprecated.in SDK4.0queryLicenseUsage(HostSystem host) queryUsage(HostSystem host) voidremoveLabel(String licenseKey, String labelKey) voidremoveLicense(String licenseKey) voidsetEdition(HostSystem host, String featureKey) voidsetLicenseEdition(HostSystem host, String featureKey) Backward-compat alias forsetEdition(HostSystem, String).voidupdateLabel(String licenseKey, String labelKey, String labelValue) updateLicense(String licenseKey, KeyValue[] labels) 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
-
LicenseManager
-
-
Method Details
-
getDiagnostics
-
getEvaluation
-
getFeatureInfo
-
getLicenseAssignmentManager
-
getLicensedEdition
-
getLicenses
-
getSource
-
checkFeature
public boolean checkFeature(HostSystem host, String featureKey) throws InvalidState, RuntimeFault, RemoteException - Throws:
InvalidStateRuntimeFaultRemoteException
-
configureSource
public void configureSource(HostSystem host, LicenseSource licenseSource) throws CannotAccessLocalSource, InvalidLicense, LicenseServerUnavailable, RuntimeFault, RemoteException -
disable
public boolean disable(HostSystem host, String featureKey) throws InvalidState, LicenseServerUnavailable, RuntimeFault, RemoteException -
enable
public boolean enable(HostSystem host, String featureKey) throws InvalidState, LicenseServerUnavailable, RuntimeFault, RemoteException -
querySourceAvailability
public LicenseAvailabilityInfo[] querySourceAvailability(HostSystem host) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
queryUsage
- Throws:
RuntimeFaultRemoteException
-
removeLabel
- Throws:
RuntimeFaultRemoteException
-
removeLicense
- Throws:
RuntimeFaultRemoteException
-
setEdition
public void setEdition(HostSystem host, String featureKey) throws InvalidState, LicenseServerUnavailable, RuntimeFault, RemoteException -
updateLabel
public void updateLabel(String licenseKey, String labelKey, String labelValue) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
updateLicense
public LicenseManagerLicenseInfo updateLicense(String licenseKey, KeyValue[] labels) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
getSourceAvailable
Deprecated.in SDK4.0 -
addLicense
public LicenseManagerLicenseInfo addLicense(String licenseKey, KeyValue[] labels) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException- Since:
- SDK4.0
-
decodeLicense
public LicenseManagerLicenseInfo decodeLicense(String licenseKey) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException- Since:
- SDK4.0
-
checkLicenseFeature
public boolean checkLicenseFeature(HostSystem host, String featureKey) throws InvalidState, RuntimeFault, RemoteException - Throws:
InvalidStateRuntimeFaultRemoteException
-
queryLicenseSourceAvailability
public LicenseAvailabilityInfo[] queryLicenseSourceAvailability(HostSystem host) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
queryLicenseUsage
- Throws:
RuntimeFaultRemoteException
-
querySupportedFeatures
public LicenseFeatureInfo[] querySupportedFeatures(HostSystem host) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
configureLicenseSource
public void configureLicenseSource(HostSystem host, LicenseSource licenseSource) throws CannotAccessLocalSource, InvalidLicense, LicenseServerUnavailable, RuntimeFault, RemoteException Backward-compat alias forconfigureSource(HostSystem, LicenseSource). -
setLicenseEdition
public void setLicenseEdition(HostSystem host, String featureKey) throws InvalidState, LicenseServerUnavailable, RuntimeFault, RemoteException Backward-compat alias forsetEdition(HostSystem, String). -
enableFeature
public void enableFeature(HostSystem host, String featureKey) throws InvalidState, LicenseServerUnavailable, RuntimeFault, RemoteException Backward-compat alias forenable(HostSystem, String); ignores boolean return. -
disableFeature
public void disableFeature(HostSystem host, String featureKey) throws InvalidState, LicenseServerUnavailable, RuntimeFault, RemoteException Backward-compat alias fordisable(HostSystem, String); ignores boolean return.
-