Java 类com.vmware.vim25.LicenseSource 实例源码

项目:vijava    文件:PrintLicense.java   
static void printLicenseSource(LicenseSource src)
{
  if(src instanceof EvaluationLicenseSource)
  {
    System.out.println("Evaluation license: will expire in "
      + ((EvaluationLicenseSource)src).getRemainingHours()
      + " hours.");
  }
  else if(src instanceof LicenseServerSource)
  {
    System.out.println("License from server:"
      + ((LicenseServerSource)src).getLicenseServer());
  }
  else if(src instanceof LocalLicenseSource)
  {
    System.out.println("Local license key:"
      + ((LocalLicenseSource)src).getLicenseKeys());
  }
}
项目:jcloud-vsphere    文件:LicenseManagerApi.java   
/**
 * @deprecated in SDK4.0
 */
@Deprecated
LicenseSource getSource();
项目:jcloud-vsphere    文件:LicenseManagerApi.java   
void configureLicenseSource(HostSystem host, LicenseSource licenseSource) throws CannotAccessLocalSource, LicenseServerUnavailable, InvalidLicense, RuntimeFault, RemoteException;