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_Sockets
MAX_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, sockets
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
public static final String CUP_MIN_CLIENT
protected PrintWriter m_ControlWriter
public CupServerChannel(IfsProtocolServer server, Socket socket, int key, String threadName) throws Exception
Exception
public void sendAnswer(String answer)
public String getExceptionMessage(Throwable e)
protected void preCommandLoop() throws IfsException
preCommandLoop
in class IfsServerChannel
IfsException
protected void handleInterruptedIOException(InterruptedIOException e) throws IfsException
handleInterruptedIOException
in class IfsServerChannel
IfsException
protected void handleIOException(IOException e) throws IfsException
handleIOException
in class IfsServerChannel
IfsException
protected void handleThrowable(Throwable e) throws IfsException
handleThrowable
in class IfsServerChannel
IfsException
protected void handleCommandInvocationIfsException(IfsException e, Object cmdKey) throws IfsException
handleCommandInvocationIfsException
in class IfsServerChannel
IfsException
protected void handleCommandInvocationThrowable(Throwable e, Object cmdKey) throws IfsException
handleCommandInvocationThrowable
in class IfsServerChannel
IfsException
protected void setupIO() throws Exception
setupIO
in class IfsServerChannel
Exception
protected ProtocolStreamParser createProtocolStreamParser()
createProtocolStreamParser
in class IfsServerChannel
Copyright © 2023. All rights reserved.