public class ClientParameters
extends java.lang.Object
implements java.io.Externalizable
This can be used for values that are effectively constants (set or queried at the time the client starts and then unchangable for the remainer of the client's lifetime). It is suitable for values that correspond to:
SESSION:WINDOW-SYSTEM
).
-param
).
Modifier and Type | Field and Description |
---|---|
int |
batchMode
The batch mode.
|
boolean |
chui
true if this client is ChUI, false for GUI. |
java.lang.String |
clientlog
-clientlog 4GL command line option |
boolean |
debugAlert
-debugalert 4GL command line option (SESSION:DEBUG-ALERT ). |
java.lang.String |
osUserName
User name as reported by the operating system.
|
java.lang.String |
param
-param 4GL command line option (SESSION:PARAMETER ). |
long |
pid
Process ID (PID) of the client process as reported by the operating system.
|
java.lang.String |
startupProc
-p 4GL command line option specifying the startup procedure to execute. |
java.lang.String |
terminalName
Terminal name as specified on the client command line.
|
static java.lang.String |
WINDOW_SYSTEM_MS_WIN95
Constant identifying the "MS-WIN95" window-system.
|
static java.lang.String |
WINDOW_SYSTEM_MS_WINDOWS
Constant for the "MS-WINDOWS" window-system (GUI driver default).
|
static java.lang.String |
WINDOW_SYSTEM_MS_WINXP
Constant identifying the "MS-WINXP" window-system.
|
static java.lang.String |
WINDOW_SYSTEM_TTY
Constant for the "TTY" window-system (CHUI driver default).
|
java.lang.String |
windowSystem
Identify the SESSION:WINDOW-SYSTEM attribute used by this client.
|
Constructor and Description |
---|
ClientParameters() |
Modifier and Type | Method and Description |
---|---|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
public static final java.lang.String WINDOW_SYSTEM_TTY
public static final java.lang.String WINDOW_SYSTEM_MS_WINDOWS
public static final java.lang.String WINDOW_SYSTEM_MS_WIN95
public static final java.lang.String WINDOW_SYSTEM_MS_WINXP
public java.lang.String windowSystem
public java.lang.String param
-param
4GL command line option (SESSION:PARAMETER
).public java.lang.String startupProc
-p
4GL command line option specifying the startup procedure to execute.public java.lang.String osUserName
public java.lang.String terminalName
public long pid
public boolean chui
true
if this client is ChUI, false
for GUI.public boolean debugAlert
-debugalert
4GL command line option (SESSION:DEBUG-ALERT
).public java.lang.String clientlog
-clientlog
4GL command line optionpublic int batchMode
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which parameters will be saved.java.io.IOException
- In case of I/O errors.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The input source from which parameters will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If a parameter can't be instantiated.