com.ibm.ras.server
Class RASLogServer
java.lang.Object
|
+--com.ibm.ras.server.RASLogServer
- public class RASLogServer
- extends java.lang.Object
- implements java.lang.Runnable
RASLogServer
works in tandem with the
RASSocketHandler
class. It is run as a
Java application on a server. It binds to a socket, listening and
accepting connections from instances of RASSocketHandler
.
Once a connection is established between the RASLogServer
and a client, log data is sent from the client to the
RASLogServer
, where it is displayed on the console and,
optionally, written to a file.
Usage:
java com.ibm.ras.server.RASLogServer [port] [filename]
The default port for the RASLogServer
process is 9991.
If filename
is specified, the output is also written to
the file.
Constructor Summary |
RASLogServer(int port,
java.lang.String filename)
Creates a RASLogServer . |
Method Summary |
static void |
main(java.lang.String[] args)
Main entry point for the RASLogServer application. |
void |
run()
Starts the RASLogServer on its own thread. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RASLogServer
public RASLogServer(int port,
java.lang.String filename)
- Creates a
RASLogServer
.
- Parameters:
port
- The port on which the RASLogServer
listens.filename
- The name of the file to which the log data will be
appended. If this is null
, the data is
only written to the console.
main
public static void main(java.lang.String[] args)
- Main entry point for the
RASLogServer
application.
- Parameters:
port
- The port on which the RASLogServer
listens.filename
- The name of the file to which the log data will be
appended. If this is null
, the data is
only written to the console.
run
public void run()
- Starts the
RASLogServer
on its own thread.
- Specified by:
- run in interface java.lang.Runnable