public class NonBlockingListener extends HttpListener
ipAddress, listenerPool, port, timeOutshutDownpasswordHandler, service, serviceTypejarFile, syncOn, uuid| Constructor and Description |
|---|
NonBlockingListener(int thePort,
java.lang.String theIpAddress,
long theTimeOut,
java.lang.String theServerPassword,
java.lang.String theAdminKey)
Create a new instance of NonBlockingListener.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeListener()
Close the listener down
|
void |
initRequestListener()
Initialise the request listener thread.
|
void |
run()
Run the thread.
|
shutDownListenerThreadgetShutDown, interrupt, setShutDown, setShutDowncanAccess, canAccessTemp, getPasswordHandler, getPasswordHandler, getServerPassword, getServicePassword, getServiceType, isAdminKey, setServiceDetails, setServiceTypegetJarFile, getUUID, loadObject, setJarFile, setUUID, threadAliveStateactiveCount, 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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUUID, setJarFile, setUUIDpublic NonBlockingListener(int thePort,
java.lang.String theIpAddress,
long theTimeOut,
java.lang.String theServerPassword,
java.lang.String theAdminKey)
throws java.io.IOException,
java.lang.Exception
thePort - the port to listen on.theIpAddress - the ip address to bind to.theTimeOut - timeout for recieving continuous message.theServerPassword - the server password.theAdminKey - the server service key.java.io.IOException - for input/output error.java.lang.Exception - any other error.public void initRequestListener()
throws java.lang.Exception
initRequestListener in class HttpListenerjava.lang.Exception - any other error.java.io.IOException - for input/output error.public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprotected void closeListener()
closeListener in class HttpListener