|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.exolab.core.mipc.MultiplexSSLConnectionServer
public class MultiplexSSLConnectionServer
Create a listener SSL socket and wait for requests to come in. When a MultiplexConnection is made, a client is notified so that it can initialize channels on the freshly minted MultiplexConnection. This class derives from Thread and is meant to be spawned off as a separate Thread.
MultiplexSSLConnection
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
MultiplexSSLConnectionServer(int port,
ConnectionNotifierIfc notifier)
Creates a new MultiplexSSLConnectionServer that sets up a listener port and adds a notifier to call with all new connections. |
Method Summary | |
---|---|
java.lang.String |
getHost()
Return the machines address. |
int |
getPort()
Return the port number this server is listening on. |
void |
run()
Start the service running. |
void |
shutdownAll()
Shutdown all active connections, including the server connection. |
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 |
---|
public MultiplexSSLConnectionServer(int port, ConnectionNotifierIfc notifier) throws java.io.IOException
port
- the port to connect onnotifier
- the client to handle the call when a new connection is
made
java.io.IOException
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in interface MultiplexConnectionServerIfc
run
in class java.lang.Thread
public void shutdownAll() throws java.io.IOException
shutdownAll
in interface MultiplexConnectionServerIfc
java.io.IOException
- if the service reports an error during shutdown.public int getPort()
getPort
in interface MultiplexConnectionServerIfc
public java.lang.String getHost()
getHost
in interface MultiplexConnectionServerIfc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |