本文整理汇总了Java中com.vmware.vim25.LicenseSource类的典型用法代码示例。如果您正苦于以下问题:Java LicenseSource类的具体用法?Java LicenseSource怎么用?Java LicenseSource使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LicenseSource类属于com.vmware.vim25包,在下文中一共展示了LicenseSource类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: printLicenseSource
import com.vmware.vim25.LicenseSource; //导入依赖的package包/类
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());
}
}
示例2: getSource
import com.vmware.vim25.LicenseSource; //导入依赖的package包/类
/**
* @deprecated in SDK4.0
*/
@Deprecated
LicenseSource getSource();
示例3: configureLicenseSource
import com.vmware.vim25.LicenseSource; //导入依赖的package包/类
void configureLicenseSource(HostSystem host, LicenseSource licenseSource) throws CannotAccessLocalSource, LicenseServerUnavailable, InvalidLicense, RuntimeFault, RemoteException;