|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.util.protocol.RequestReplyExecutor
org.xmlBlaster.util.protocol.socket.SocketExecutor
org.xmlBlaster.protocol.socket.HandleClient
Holds one socket connection to a client and handles all requests from one client with plain socket messaging.
| Nested Class Summary |
| Nested classes inherited from class org.xmlBlaster.util.protocol.RequestReplyExecutor |
|
| Field Summary | |
private I_Authenticate |
authenticate
The singleton handle for this authentication server |
private CallbackSocketDriver |
callback
|
private boolean |
callCoreInSeparateThread
|
protected boolean |
disconnectIsCalled
|
private SocketDriver |
driver
|
protected static edu.emory.mathcs.backport.java.util.concurrent.ExecutorService |
executorService
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
protected java.lang.String |
remoteSocketStr
Holds remote "host:port" for logging |
private java.lang.String |
secretSessionId
The unique client sessionId |
protected java.net.Socket |
sock
The socket connection to/from one client |
private java.lang.Thread |
socketHandlerThread
|
protected java.net.DatagramSocket |
sockUDP
The socket connection to/from one client |
| Fields inherited from class org.xmlBlaster.util.protocol.socket.SocketExecutor |
iStream, loginName, maxChunkSize, msgInfoParserClassName, oStream, running, soLingerTimeout, soTimeout |
| Fields inherited from class org.xmlBlaster.util.protocol.RequestReplyExecutor |
addressConfig, addressServer, cbClient, compressZlib, compressZlibStream, contextNode, glob, mbeanHandle, minSizeForCompression, ONEWAY, pingResponseTimeout, prefix, progressListener, responseListenerMap, responseTimeout, updateResponseTimeout, useEmailExpiryTimestamp, WAIT_ON_RESPONSE |
| Constructor Summary | |
HandleClient(Global glob,
SocketDriver driver,
java.net.Socket sock,
java.net.DatagramSocket sockUDP)
Creates an instance which serves exactly one client. |
|
| Method Summary | |
private void |
closeSocket()
|
java.lang.String |
getCbMsgInfoParserClassName()
|
java.lang.String |
getSecretSessionId()
|
java.net.Socket |
getSocket()
|
java.lang.String |
getType()
The unique name of the plugin (together with the version). |
void |
handleMessage(MsgInfo receiver,
boolean udp)
|
protected boolean |
hasConnection()
|
boolean |
isShutdown()
Check status |
void |
run()
Serve a client, we block until a message arrives ... |
protected void |
sendMessage(byte[] msg,
boolean udp)
Flush the data to the socket. |
void |
shutdown()
Close connection for one specific client |
void |
startThread()
|
java.lang.String |
toString()
|
boolean |
useUdpForOneway()
|
| Methods inherited from class org.xmlBlaster.util.protocol.socket.SocketExecutor |
getGlobalKey, getInputStream, getMsgInfoParserClassName, getOutputStream, getSoLingerTimeout, getSoTimeout, getUsageUrl, getVersion, initialize, ping, sendMessage, sendUpdate, setLoginName, setRunning, setSoLingerTimeout, setSoTimeout, setUsageUrl, usage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xmlBlaster.util.protocol.RequestReplyExecutorMBean |
getMinSizeForCompression, getPingResponseTimeout, getResponseTimeout, getResponseTimeout, getUpdateResponseTimeout, interruptInvocation, isCompressZlib, isCompressZlibStream, isUseEmailExpiryTimestamp, setCompressZlib, setCompressZlibStream, setMinSizeForCompression, setPingResponseTimeout, setResponseTimeout, setUpdateResponseTimeout, setUseEmailExpiryTimestamp |
| Field Detail |
private java.lang.String ME
private static java.util.logging.Logger log
private SocketDriver driver
private I_Authenticate authenticate
private CallbackSocketDriver callback
protected java.net.DatagramSocket sockUDP
protected java.lang.String remoteSocketStr
protected java.net.Socket sock
private java.lang.String secretSessionId
private boolean callCoreInSeparateThread
protected static volatile edu.emory.mathcs.backport.java.util.concurrent.ExecutorService executorService
protected boolean disconnectIsCalled
private java.lang.Thread socketHandlerThread
| Constructor Detail |
public HandleClient(Global glob,
SocketDriver driver,
java.net.Socket sock,
java.net.DatagramSocket sockUDP)
throws java.io.IOException
| Method Detail |
public void startThread()
public boolean useUdpForOneway()
useUdpForOneway in class SocketExecutorpublic java.lang.String getType()
I_AdminPlugin
getType in interface I_AdminPlugingetType in class RequestReplyExecutorpublic boolean isShutdown()
I_AdminPlugin
isShutdown in interface I_AdminPluginisShutdown in class RequestReplyExecutorprotected boolean hasConnection()
hasConnection in class RequestReplyExecutorpublic void shutdown()
shutdown in interface I_AdminPluginshutdown in class SocketExecutorpublic java.lang.String toString()
private void closeSocket()
public void handleMessage(MsgInfo receiver,
boolean udp)
protected void sendMessage(byte[] msg,
boolean udp)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getCbMsgInfoParserClassName()
getCbMsgInfoParserClassName in class SocketExecutorpublic void run()
run in interface java.lang.Runnablepublic java.lang.String getSecretSessionId()
public java.net.Socket getSocket()
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||