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

项目:vijava    文件:PrintLicense.java   
static void printLicenseUsage(LicenseUsageInfo ui)
{
  System.out.println("The list of feature reservations:");
  LicenseReservationInfo[] ris = ui.getReservationInfo();
  for(int i=0; ris!=null && i< ris.length; i++)
  {
    System.out.println("Feature key :" + ris[i].getKey());
    System.out.println("Required license:" 
      + ris[i].getRequired());
    System.out.println("State:" + ris[i].getState());
  }

  System.out.println("All the features that are referenced" 
    + " in reservation:");
  printLicenseFeatures(ui.getFeatureInfo());

  System.out.println("License source:");
  printLicenseSource(ui.getSource());

  System.out.println("License source available:" 
    + ui.isSourceAvailable());
}
项目:jcloud-vsphere    文件:LicenseManagerApi.java   
LicenseUsageInfo queryLicenseUsage(HostSystem host) throws RuntimeFault, RemoteException;