public interface ServerAdminInterface
Modifier and Type | Field and Description |
---|---|
static int |
SUBSYS_API
The API subsystem.
|
static int |
SUBSYS_CLIENT
The client subsystem.
|
static int |
SUBSYS_HOST
The host subsystem.
|
static int |
SUBSYS_TELNET
The telnet subsystem.
|
static int |
TRACE_BINARY
The trace is binary.
|
static int |
TRACE_BINARYVERBOSE
The trace is binary and verbose.
|
static int |
TRACE_OFF
The trace is off.
|
static int |
TRACE_VERBOSE
The trace is verbose.
|
Modifier and Type | Method and Description |
---|---|
boolean |
changeEventFile()
Changes the event file.
|
boolean |
changeTraceFile()
Changes the trace file.
|
int |
getClientConnectionCount()
Gets the current client connection count.
|
ClientConnectionData[] |
getClientConnectionList()
Get the listing of client connections.
|
String[] |
getEventIDs()
Gets the list of available EventIDs for event logging.
|
String[] |
getEventIDsDescription()
Gets the list of available EventIDs description for event logging.
|
int |
getLoggingEvent(int eventIndex,
long clientID)
Checks if an event is logged for a particular event index.
|
int |
getLoggingEvent(String eventID,
long clientID)
Checks if an event is logged for a particular event ID.
|
int |
getMaximumClientConnectionCount()
Gets the current maximum count of client connections.
|
String[] |
getRuntimeFiles()
Lists the runtime files used.
|
String[] |
getRuntimeIndexes()
Lists the runtime applications (indexes) used.
|
int |
getTrace(long clientConnection,
int subsystem)
Gets the trace state for all clients or for a particular client connection.
|
boolean |
hasClientConnectionChanged()
Checks for a change in the client connection list since the last call to
this routine.
|
boolean |
isApplicationEnabled(String appID)
Gets the application enabled state for new client connections.
|
boolean |
isClientLogonAllowed()
Checks if client logon is allowed.
|
int |
performEventCommand(String command)
Processes an event command.
|
int |
performEventCommand(String eventID,
int include,
long[] clientIDs)
Processes a single eventID specification for the event filter.
|
void |
reloadMapFile()
Reloads the optional file used to map a client to a particular 3270 LU.
|
boolean |
reloadRuntimeFiles(String[] fileIDs)
Reloads one or several runtime files of the specified indexes.
|
int |
sendApplicationBroadcastMessage(String applicationID,
String message)
Sends a broadcast message to all clients using the specified runtime application.
|
int |
sendBroadcastMessage(String message)
Sends a general broadcast message to all clients.
|
boolean |
sendClientMessage(long id,
String message)
Sends a message to the specific client.
|
boolean |
setApplicationEnabled(String appID,
boolean enabledFlag)
Sets the application enabled state for new client connections.
|
boolean |
setClientLogonAllowed(boolean isAllowed)
Sets the client logon allowed count.
|
int |
setMaximumClientConnectionCount(int maximum)
Sets the current maximum count of client connections.
|
boolean |
setTrace(long clientConnection,
int subsystem,
int traceLevel)
Sets the trace state.
|
void |
shutDown(boolean immed)
Requests the server shut-down.
|
boolean |
terminateClientConnection(long id)
Terminate the connection of a client connection with an optional text
describing why this is done.
|
boolean |
traceClientConnection()
Prints a snap-shot list of current client connections to the
current trace file.
|
static final int SUBSYS_TELNET
static final int SUBSYS_HOST
static final int SUBSYS_CLIENT
static final int SUBSYS_API
static final int TRACE_OFF
static final int TRACE_BINARY
static final int TRACE_VERBOSE
static final int TRACE_BINARYVERBOSE
void shutDown(boolean immed)
void reloadMapFile() throws IOException
IOException
- if an I/O error occurs.String[] getRuntimeIndexes()
String[] getRuntimeFiles()
boolean reloadRuntimeFiles(String[] fileIDs) throws IOException
IOException
- if an I/O error occurs.boolean setApplicationEnabled(String appID, boolean enabledFlag)
boolean isApplicationEnabled(String appID)
boolean isClientLogonAllowed()
boolean setClientLogonAllowed(boolean isAllowed)
boolean hasClientConnectionChanged()
int getClientConnectionCount()
int getMaximumClientConnectionCount()
int setMaximumClientConnectionCount(int maximum)
ClientConnectionData[] getClientConnectionList()
boolean traceClientConnection()
boolean terminateClientConnection(long id)
boolean sendClientMessage(long id, String message)
int sendBroadcastMessage(String message)
int sendApplicationBroadcastMessage(String applicationID, String message)
boolean changeEventFile()
boolean changeTraceFile()
boolean setTrace(long clientConnection, int subsystem, int traceLevel)
int getTrace(long clientConnection, int subsystem)
int performEventCommand(String command) throws ParseException, NumberFormatException
. EventFilter --+--+-- ALL --+-- [INCLUDE:event_id] -- [EXCLUDE:event_id] -- [DEFAULT:event_id] . | | | . | +-- client_id --+ . | | . +----- , -----------+where client_id can be a comma-separated (no spaces in between) list of several client_ids,
and event_id is a comma-separated list (no spaces in between) of eventIDs as defined in SERVER.PHM and/or a range of eventIDs and/or using the '*' wildcard to accept any eventID starting with the text preceeding the '*'.
To specify all events, use the event range string "*-*".
Note that the command "EventFilter ALL DEFAULT:nnn" will never return other values than zero, because the "ALL" indicates the default setting for all clients.
ParseException
- When the command in SERVER.INI are invalid.NumberFormatException
- When a clientID is wrong.int performEventCommand(String eventID, int include, long[] clientIDs)
The eventID is an eventID as defined in SERVER.PHM or a range of eventIDs and/or using the '*' wildcard to accept any eventID starting with the text preceeding the '*'. The range separator is '-'.
The value "include" must be zero or one for a global filter and can be zero=exclude, one=include, 2=default (use global filter).
String[] getEventIDs()
String[] getEventIDsDescription()
int getLoggingEvent(String eventID, long clientID)
If clientID is zero, the global setting will be returned.
The return value will be -1 if the eventID is not found or the client does not exist.
int getLoggingEvent(int eventIndex, long clientID)
getEventIDs
.
If clientID is zero, the global setting will be returned.
The return value will be -1 if the eventID is not found or the client does not exist.
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.