org.apache.logging.log4j.core.net
Class SocketServer

java.lang.Object
  extended by org.apache.logging.log4j.core.AbstractServer
      extended by org.apache.logging.log4j.core.net.SocketServer
All Implemented Interfaces:
Runnable

public class SocketServer
extends AbstractServer
implements Runnable

Listens for events over a socket connection.


Constructor Summary
SocketServer(int port)
          Constructor.
 
Method Summary
static void main(String[] args)
          Main startup for the server.
 void run()
          Accept incoming events and processes them.
 void shutdown()
          Shutdown the server.
 
Methods inherited from class org.apache.logging.log4j.core.AbstractServer
log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketServer

public SocketServer(int port)
             throws IOException
Constructor.

Parameters:
port - to listen on.
Throws:
IOException - If an error occurs.
Method Detail

main

public static void main(String[] args)
                 throws Exception
Main startup for the server.

Parameters:
args - The command line arguments.
Throws:
Exception - if an error occurs.

shutdown

public void shutdown()
Shutdown the server.


run

public void run()
Accept incoming events and processes them.

Specified by:
run in interface Runnable


Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.