|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectde.mid.innovator.srv.LicenseServer
public class LicenseServer
The class represents an Innovator license server that provides various information about running client and server programs. A license server acts as a name service to enable clients to find running servers. This means that one license server provides exactly one Innovator network which can be viewed with the Innovator client programs. An Innovator network consists of exactly one main license server and several project license servers (acting as clients to the main license server).
By default, all Innovator UNIX clients use the environment variable INOHOST to determine the Innovator network. On Windows platforms, the license server can be configured in the file inoenv.ini that can be found in the Windows system directory.
As the Innovator Java API uses pure Java code, it is 100% independent of this client configuration; this means that a Java process is free to talk to any license server that is available via TCP/IP connection.
Note: This class can be used to connect either to a project license server or to a main (enterprise) license server.
| Nested Class Summary | |
|---|---|
static class |
LicenseServer.HostPortCombination
|
static class |
LicenseServer.License
|
| Constructor Summary | |
|---|---|
LicenseServer()
The default constructor that instantiates a license server object using the specific constructor with arguments (null,0) |
|
LicenseServer(String lHost,
int lPort)
The constructor creates an instance that can be used to communicate with the Innovator license server. |
|
| Method Summary | |
|---|---|
boolean |
canLogout(String repName,
String mdlName)
|
void |
connect()
Deprecated. |
void |
disconnect()
Deprecated. |
RepositoryServer |
findServer(String repName)
Finds a specific running repository server. |
String |
getHost()
Gets the license server's host name. |
String |
getHostId()
Gets the host id. |
List<InoNetClient> |
getInnovatorClients()
Returns a list of all known clients. |
int |
getLicenseCount(LicenseServer.License lic)
Gets the total number of licenses of a given license type |
String |
getLicensee()
Gets the licensee |
int |
getPort()
Gets the license server's TCP/IP port. |
int |
getSerialNumber()
|
List<RepositoryServer> |
getServerList()
The method retrieves the complete list of repository servers known by this license server. |
EnumSet<ServerStatus> |
getServerStatus(String repName)
The method returns a set of runtime status flags of the given repository server. |
InoUser |
getUser()
Returns the info for the current system user. |
InoUser |
getUserInfo(String domain,
String name)
Deprecated. |
List<InoUser> |
getUserList()
|
List<LicSrvGetLoginListReplyTelegram.InoUserLogin> |
getUserLoginList()
|
List<String> |
getUserRoleList(InoUser inoUser,
String repName,
String mdlName,
K_ADMODEL mdlType)
|
int |
getVersion()
Retrieves the version of the license server. |
boolean |
isLicenseRegistered()
Determines whether [is license registered] |
void |
lockLicense(LicenseServer.License license)
Locks another license of given type. |
void |
registerLicense(String key)
Registers a new obtained license. |
void |
registerProgram(InoProgram.Type progType)
|
void |
sendLicenseFile(FileInputStream fs)
|
void |
unregisterProgram()
|
void |
updateConnection()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LicenseServer()
throws InoNetException
InoNetException
public LicenseServer(String lHost,
int lPort)
throws InoNetException
lHost - optional; the host name as a TCP/IP host name String. If this
argument is omitted, the value of the environment variable
'INOHOST' or the 'de.mid.innovator.inohost' system property is
used.lPort - optional; the port. It should be omitted if no host name is
given.
InoNetException| Method Detail |
|---|
public boolean canLogout(String repName,
String mdlName)
@Deprecated
public void connect()
throws InoNetException
InoNetException
@Deprecated
public void disconnect()
throws InoNetException
InoNetException
public RepositoryServer findServer(String repName)
throws InoNetException
findServer in interface INetworkInformationServicerepName - the name of a repository server (without path or extension)
RepositoryServer or null if no such server
was found.
InoNetExceptionpublic String getHost()
getHost in interface INetworkInformationService
public String getHostId()
throws InoNetException
ILicensingService
getHostId in interface ILicensingServiceInoNetException
public List<InoNetClient> getInnovatorClients()
throws InoNetException
getInnovatorClients in interface INetworkInformationServiceInoNetException
public int getLicenseCount(LicenseServer.License lic)
throws InoNetException
ILicensingService
getLicenseCount in interface ILicensingServiceInoNetException
public String getLicensee()
throws InoNetException
ILicensingService
getLicensee in interface ILicensingServiceInoNetExceptionpublic int getPort()
getPort in interface INetworkInformationService
public int getSerialNumber()
throws InoNetException
getSerialNumber in interface ILicensingServiceInoNetException
public List<RepositoryServer> getServerList()
throws InoNetException
getServerList in interface INetworkInformationServiceInoNetException
SrvErrorException
public EnumSet<ServerStatus> getServerStatus(String repName)
throws InoNetException
repName - short name of a repository server
ServerStatus enumeration
InoNetException
public InoUser getUser()
throws InoNetException
InoNetException
@Deprecated
public InoUser getUserInfo(String domain,
String name)
throws InoNetException
getUser()
to obtain your own login data or getUserList() to retrieve
all possible users.
InoNetException
public List<InoUser> getUserList()
throws InoNetException
InoNetException
public List<LicSrvGetLoginListReplyTelegram.InoUserLogin> getUserLoginList()
throws InoNetException
InoNetException
public List<String> getUserRoleList(InoUser inoUser,
String repName,
String mdlName,
K_ADMODEL mdlType)
throws InoNetException
InoNetException
public int getVersion()
throws InoNetException
getVersion in interface INetworkInformationServiceInoNetException - for any network problems
public boolean isLicenseRegistered()
throws InoNetException
ILicensingService
isLicenseRegistered in interface ILicensingServiceInoNetException
public void lockLicense(LicenseServer.License license)
throws InoNetException
ILicensingService
lockLicense in interface ILicensingServiceInoNetException
public void registerLicense(String key)
throws InoNetException
ILicensingService
registerLicense in interface ILicensingServiceInoNetException
public void registerProgram(InoProgram.Type progType)
throws InoNetException,
IllegalStateException
registerProgram in interface ILicensingServiceInoNetException
IllegalStateException
public void sendLicenseFile(FileInputStream fs)
throws InoNetException,
IOException
sendLicenseFile in interface ILicensingServiceInoNetException
IOException
public void unregisterProgram()
throws InoNetException
unregisterProgram in interface ILicensingServiceInoNetException
public void updateConnection()
throws InoNetException,
IllegalStateException
InoNetException
IllegalStateException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||