Package com.vmware.general
Class LicenseManager
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.general.LicenseManager
-
@Sample(name="license-manager", description="Demonstrates uses of the Licensing API") public class LicenseManager extends ConnectedVimServiceBaseLicenseManager Demonstrates uses of the Licensing API using License Manager Reference. Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication action [required] : action to be performed [browse|setserver|featureinfo] feature [optional] : Licensed feature e.g. vMotion licensekey [optional] : License key for KL servers Command Line: Display all license information run.bat com.vmware.general.LicenseManager --url [webserviceurl] --username [username] --password [password] --action[browse] Retrieve the feature information run.bat com.vmware.general.LicenseManager --url [webserviceurl] --username [username] --password [password] --action[featureinfo] --feature [drs] run.bat com.vmware.general.LicenseManager --url [webserviceurl] --username [username] --password [password] --action[setserver] --licensekey [key]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description LicenseManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaction()voiddisplayFeatureInfo()voiddisplayLicenseUsage()voidinitLicAssignmentManagerRef()voidinitLicenseAssignmentManagerLicenseAssignments()voidinitLicManagerRef()voidprint(java.util.List<com.vmware.vim25.LicenseAssignmentManagerLicenseAssignment> licAssignment)voidsetAction(java.lang.String act)voidsetFeature(java.lang.String feature)voidsetLicenseKey(java.lang.String key)voidsetLicKey()voiduseLicenseManager()-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setAction
@Option(name="action", description="action to be performed: [browse|setserver|featureinfo]") public void setAction(java.lang.String act)
-
setFeature
@Option(name="feature", required=false, description="licensed feature") public void setFeature(java.lang.String feature)
-
setLicenseKey
@Option(name="licensekey", required=false, description="License key for KL servers") public void setLicenseKey(java.lang.String key)
-
initLicManagerRef
public void initLicManagerRef()
-
initLicAssignmentManagerRef
public void initLicAssignmentManagerRef() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
initLicenseAssignmentManagerLicenseAssignments
public void initLicenseAssignmentManagerLicenseAssignments() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
useLicenseManager
public void useLicenseManager() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.LicenseEntityNotFoundFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.LicenseEntityNotFoundFaultMsg
-
displayLicenseUsage
public void displayLicenseUsage() throws com.vmware.vim25.RuntimeFaultFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsg
-
setLicKey
public void setLicKey() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.LicenseEntityNotFoundFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.LicenseEntityNotFoundFaultMsg
-
displayFeatureInfo
public void displayFeatureInfo()
-
print
public void print(java.util.List<com.vmware.vim25.LicenseAssignmentManagerLicenseAssignment> licAssignment)
-
action
@Action public void action() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.LicenseEntityNotFoundFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.LicenseEntityNotFoundFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
-