public class CupServerChannel extends IfsServerChannel
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static String |
CUP_MIN_CLIENT |
protected PrintWriter |
m_ControlWriter |
CONTROL_SOCKET, m_ControlIn, m_ControlOut, m_ControlSocketTimeout, m_SocketFactory, m_SocketsMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
CupServerChannel(IfsProtocolServer server,
Socket socket,
int key,
String threadName)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ProtocolStreamParser |
createProtocolStreamParser()
Create the ProtocolStreamParser associated with this Channel.
|
String |
getExceptionMessage(Throwable e)
This implemetation will not return null nor throw an exception.
|
protected void |
handleCommandInvocationIfsException(IfsException e,
Object cmdKey)
Handles a Throwable while invoking command.
|
protected void |
handleCommandInvocationThrowable(Throwable e,
Object cmdKey)
Handles a Throwable while invoking command.
|
protected void |
handleInterruptedIOException(InterruptedIOException e)
Handles an InterruptedIOException in the command loop.
|
protected void |
handleIOException(IOException e)
Handles an IOException in the command loop.
|
protected void |
handleThrowable(Throwable e)
Handles a Throwable in the command loop.
|
protected void |
preCommandLoop()
Before first command.
|
void |
sendAnswer(String answer)
Convience Method for sending a String answer.
|
protected void |
setupIO()
Create the Writer associated with this Channel.
|
closeConnection, createSocketFactory, disconnect, getChannelKey, getControlSocketTimeout, getProtocolServer, getProtocolSession, getSocket, getSocketFactory, log, log, postCommandLoop, removeSocket, run, setControlSocketTimeout, setProtocolSession, setSocket, socketKeys, socketsactiveCount, 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, yieldpublic static final String CUP_MIN_CLIENT
protected PrintWriter m_ControlWriter
public CupServerChannel(IfsProtocolServer server, Socket socket, int key, String threadName) throws Exception
Exceptionpublic void sendAnswer(String answer)
public String getExceptionMessage(Throwable e)
protected void preCommandLoop()
throws IfsException
preCommandLoop in class IfsServerChannelIfsExceptionprotected void handleInterruptedIOException(InterruptedIOException e) throws IfsException
handleInterruptedIOException in class IfsServerChannelIfsExceptionprotected void handleIOException(IOException e) throws IfsException
handleIOException in class IfsServerChannelIfsExceptionprotected void handleThrowable(Throwable e) throws IfsException
handleThrowable in class IfsServerChannelIfsExceptionprotected void handleCommandInvocationIfsException(IfsException e, Object cmdKey) throws IfsException
handleCommandInvocationIfsException in class IfsServerChannelIfsExceptionprotected void handleCommandInvocationThrowable(Throwable e, Object cmdKey) throws IfsException
handleCommandInvocationThrowable in class IfsServerChannelIfsExceptionprotected void setupIO()
throws Exception
setupIO in class IfsServerChannelExceptionprotected ProtocolStreamParser createProtocolStreamParser()
createProtocolStreamParser in class IfsServerChannelCopyright © 2025. All rights reserved.