Package de.mid.innovator.client
Class InoProgram
- java.lang.Object
-
- de.mid.innovator.client.InoProgram
-
- Direct Known Subclasses:
InoClientProgram
,InoServerProgram
public abstract class InoProgram extends java.lang.Object
The abstract class is the uppermost generalization of any Innovator program that can be executed. One net client hosts various programs, such as server programs or client programs.- Author:
- borschet
- See Also:
InoNetClient.getPrograms()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InoProgram.Type
This enumeration describes the different kinds of Innovator programs that are registered on thelicense server
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
InoProgram(int pid, java.lang.String vers, java.lang.String host, java.lang.String user, InoProgram.Type pType)
This constructor is only used by the license server to return all valid programs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHost()
The host which the program is running on.int
getPid()
The process identifier of the operating system which the program is running on.InoProgram.Type
getProgramType()
A specific enumeration value that specifies the Innovator program.java.lang.String
getUser()
The Innovator user who started the application.java.lang.String
getVers()
The Innovator version which the running program belongs to.java.lang.String
toString()
-
-
-
Constructor Detail
-
InoProgram
protected InoProgram(int pid, java.lang.String vers, java.lang.String host, java.lang.String user, InoProgram.Type pType)
This constructor is only used by the license server to return all valid programs. You should never need to call this method explicitly. Instances of InoProgram can be retrieved calling theLicenseServer.getInnovatorClients()
method.- Parameters:
pid
- process identifiervers
- the program's version stringhost
- the host nameuser
- the user name that started the clientpType
- the client characteristic enumeration value- See Also:
LicenseServer
-
-
Method Detail
-
getHost
public java.lang.String getHost()
The host which the program is running on. This should be equal to the value of the net client.- Returns:
- the host name
-
getPid
public int getPid()
The process identifier of the operating system which the program is running on.- Returns:
- the PID as an integer
-
getUser
public java.lang.String getUser()
The Innovator user who started the application.- Returns:
- user name as a string
-
getVers
public java.lang.String getVers()
The Innovator version which the running program belongs to.- Returns:
- a specific version string for the major version (V), minor version (M) and release (R) as V.M.R
-
getProgramType
public InoProgram.Type getProgramType()
A specific enumeration value that specifies the Innovator program.- Returns:
- the program type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-