public class AdminCommandProcessor extends Object implements AdminTransactions, Runnable
APPLET_SERVERINFORMATION, ECLIPSE_CONNECTION, LOADBALANCER_SLAVECONNECT, RCONSOLE_APPRELOAD, RCONSOLE_APPS, RCONSOLE_BROADCAST, RCONSOLE_BROADCASTALL, RCONSOLE_BROADCASTAPP, RCONSOLE_BROADCASTCL, RCONSOLE_CLIENT, RCONSOLE_DISABLE, RCONSOLE_ENABLE, RCONSOLE_EVENT, RCONSOLE_KILL, RCONSOLE_LOCK, RCONSOLE_MEMCOMPACT, RCONSOLE_MEMORY, RCONSOLE_NOP, RCONSOLE_PEAKCLIENTCOUNT, RCONSOLE_PUT, RCONSOLE_QUIT, RCONSOLE_RESTART, RCONSOLE_RESTART_WEBSERVER, RCONSOLE_SHUTDOWN, RCONSOLE_TRACE, RCONSOLE_UPGRADE
Constructor and Description |
---|
AdminCommandProcessor(Socket socket,
ServerAdminInterface serverAdminInterface,
DefaultAdminExit listener,
AdminConfigProtection ac)
Starts a new thread to handle the admin session.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called to perform a clean-up and dispose of the command session.
|
String |
getCaller()
Gets the remote caller.
|
Transaction |
receiveTransaction()
Reads a transaction from the client.
|
void |
run()
The thread runs here until the server is shut-down.
|
void |
sendString2DArray(String[][] str)
Sends a String[][] to the client.
|
void |
sendStringArray(String[] str)
Sends a String[] to the client.
|
void |
sendTransaction(Transaction trans)
Sends a transaction to the client.
|
void |
setReadTimeout(int readTimeout)
Sets the read timeout value for the socket in milliseconds,
zero indicates indefinite timeout.
|
public AdminCommandProcessor(Socket socket, ServerAdminInterface serverAdminInterface, DefaultAdminExit listener, AdminConfigProtection ac) throws IOException
IOException
- for socket failure or for string failure.public void dispose()
public void setReadTimeout(int readTimeout)
public void run()
public String getCaller()
public Transaction receiveTransaction() throws IOException
IOException
public void sendTransaction(Transaction trans)
public void sendStringArray(String[] str)
public void sendString2DArray(String[][] str)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.