Package de.mid.innovator.srv
Interface ILicensingService
-
- All Known Implementing Classes:
LicenseServer
public interface ILicensingServiceThis interface is implementet by the Innovator LicenseServer. It can be used to obtain or set all relevant licensing data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetHostId()Gets the host id.intgetLicenseCount(LicenseServer.License lic)Gets the total number of licenses of a given license type.java.lang.StringgetLicensee()Gets the licensee.intgetSerialNumber()booleanisLicenseRegistered()Determines whether [is license registered].voidlockLicense(LicenseServer.License license)Locks another license of given type.voidregisterLicense(java.lang.String key)Registers a new obtained license.voidregisterProgram(InoProgram.Type progType)voidsendLicenseFile(java.io.FileInputStream fs)voidunregisterProgram()
-
-
-
Method Detail
-
getHostId
java.lang.String getHostId() throws InoNetExceptionGets the host id.- Throws:
InoNetException
-
getLicenseCount
int getLicenseCount(LicenseServer.License lic) throws InoNetException
Gets the total number of licenses of a given license type.- Parameters:
lic- The license.- Returns:
- the number of licenses that can be used parallel
- Throws:
InoNetException
-
getLicensee
java.lang.String getLicensee() throws InoNetExceptionGets the licensee.- Returns:
- a formatted string
- Throws:
InoNetException
-
isLicenseRegistered
boolean isLicenseRegistered() throws InoNetExceptionDetermines whether [is license registered].- Returns:
- true if [is license registered]; otherwise false
- Throws:
InoNetException
-
lockLicense
void lockLicense(LicenseServer.License license) throws InoNetException
Locks another license of given type.- Parameters:
license- The type of the license to lock.- Throws:
InoNetException
-
registerLicense
void registerLicense(java.lang.String key) throws InoNetExceptionRegisters a new obtained license.- Parameters:
key- The key.- Throws:
InoNetException
-
sendLicenseFile
void sendLicenseFile(java.io.FileInputStream fs) throws InoNetException, java.io.IOException- Throws:
InoNetExceptionjava.io.IOException
-
registerProgram
void registerProgram(InoProgram.Type progType) throws InoNetException, InvalidArgumentException
-
unregisterProgram
void unregisterProgram() throws InoNetException- Throws:
InoNetException
-
getSerialNumber
int getSerialNumber() throws InoNetException- Throws:
InoNetException
-
-