Nuxeo Enterprise Platform 5.3

com.anwrt.ooserver.daemon
Class AdminAcceptorThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.anwrt.ooserver.daemon.AdminAcceptorThread
All Implemented Interfaces:
Runnable

public class AdminAcceptorThread
extends Thread

Accepts connections from admin daemon instances.

Author:
Jounayd Id Salah

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static String ADMIN_LOGGER_TAG
          displayed tag used for logging
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AdminAcceptorThread(Daemon daemon, Timer shutdownThread, String acceptString)
          Creates an acceptor to further accept connections from admin daemon instances
 
Method Summary
 void cancel()
          Called to stop the admin thread
 void run()
          Accept connections
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADMIN_LOGGER_TAG

public static final String ADMIN_LOGGER_TAG
displayed tag used for logging

See Also:
Constant Field Values
Constructor Detail

AdminAcceptorThread

public AdminAcceptorThread(Daemon daemon,
                           Timer shutdownThread,
                           String acceptString)
Creates an acceptor to further accept connections from admin daemon instances

Parameters:
daemon - the current daemon
shutdownThread -
acceptString - the admin acceptor string (usually passed by the configuration file)
Method Detail

run

public void run()
Accept connections

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()

cancel

public void cancel()
Called to stop the admin thread


Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.