public class LicenseManager extends Object
| Constructor and Description |
|---|
LicenseManager() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareEndTime(long newEndTime) |
static long |
culHours(long endTime,
long currentTime) |
static void |
deleteConfigFile() |
static boolean |
findTimeInFile(String time,
String path) |
static ArrayList<String> |
getMac()
get Mac Address from local device
|
static String |
getUUIDString() |
static License |
handleLicense(Map<String,String> map)
get license from a map to license constructor
|
static License |
initLicense()
read the license from hardware to memory
|
static boolean |
isOverDue(License license) |
static boolean |
isTempLicense(License license) |
static String[] |
readConfigFile() |
static String |
readTempFile() |
static boolean |
sysTimeChanged() |
static boolean |
validateBase(License license)
validate cupId of license
|
static boolean |
validateHa(License license)
validate ha of license
|
static boolean |
validateInstallLibvirt(String result) |
static ValidateType |
validateLicense(License license) |
static ValidateType |
validateLicenseHa(License license) |
static boolean |
validateNodeTiny(License license) |
static boolean |
validateSystemTime(long endTime) |
static void |
writeConfigFile(String[] encStr) |
static void |
writeEndTime(String time,
String path) |
static void |
writeSecretFile(BufferedWriter bw)
write hostinfo into a file named host.info to the operate computer
|
static void |
writeTempFile(String str) |
public static License initLicense()
public static License handleLicense(Map<String,String> map)
map - public static boolean isTempLicense(License license)
public static boolean isOverDue(License license)
public static boolean validateSystemTime(long endTime)
public static void writeConfigFile(String[] encStr)
public static void deleteConfigFile()
public static boolean compareEndTime(long newEndTime)
public static long culHours(long endTime,
long currentTime)
public static boolean sysTimeChanged()
public static boolean validateBase(License license)
public static boolean validateHa(License license)
license - public static ValidateType validateLicenseHa(License license)
public static ValidateType validateLicense(License license)
public static boolean validateNodeTiny(License license)
public static void writeSecretFile(BufferedWriter bw) throws Exception
bw - Exceptionpublic static boolean validateInstallLibvirt(String result)
Copyright © 2014. All Rights Reserved.