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()); } }
/** * @deprecated in SDK4.0 */ @Deprecated LicenseSource getSource();
void configureLicenseSource(HostSystem host, LicenseSource licenseSource) throws CannotAccessLocalSource, LicenseServerUnavailable, InvalidLicense, RuntimeFault, RemoteException;