org.jwall.rbl.net
Class AdminHandler

java.lang.Object
  extended by java.lang.Thread
      extended by org.jwall.rbl.net.AdminHandler
All Implemented Interfaces:
Runnable

public class AdminHandler
extends Thread

This thread is a simple text-based tcp client, which accepts connections from localhost only and provides a very small set of simple commands to manage the RB-list of this server.

Author:
Christian Bockermann <chris@jwall.org>

Nested Class Summary
 class AdminHandler.ClientHandler
          This is a per-connection thread for handling a connection.
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AdminHandler(RblServer server, String addr, int port)
          Creates a new AdminHandler for the specified server, listening on the given address and port.
 
Method Summary
 void run()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdminHandler

public AdminHandler(RblServer server,
                    String addr,
                    int port)
             throws Exception
Creates a new AdminHandler for the specified server, listening on the given address and port.

Parameters:
server -
addr -
port -
Throws:
Exception
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

shutdown

public void shutdown()


Copyright © 2014. All Rights Reserved.