biz.chitec.quarterback.gjsa.server
Class DirectSessionedServerConnector
java.lang.Object
biz.chitec.quarterback.gjsa.SessionedServerConnector
biz.chitec.quarterback.gjsa.server.DirectSessionedServerConnector
- public class DirectSessionedServerConnector
- extends SessionedServerConnector
Connector into a GJSA server which does not operate with network connections but works
directly with the GJSA database handling object.
- Version:
- $Id: 32a4311ffed3d80b4d3dccd9118f44de2cb6f3f5 $
- Author:
- cantamen/Dirk Hillbrecht 2007. Released under LGPL or GPL with classpath exception.
Fields inherited from class biz.chitec.quarterback.gjsa.SessionedServerConnector |
connected, connectionport, encodingmode, encrypted, mess, myscno, pcs, serverseenclientip, serverseenclientname, SOCKET_SO_TIME, sslciphers, sslfactory, transmitting |
Methods inherited from class biz.chitec.quarterback.gjsa.SessionedServerConnector |
addFreeFloatingReceiver, addPropertyChangeListener, addPropertyChangeListener, closeConnection, fireDesaster, fireFreeFloatingMessage, getEncodingMode, getEncryptionAdvice, getServerSeenClientIP, getServerSeenClientName, getSession0, getSessionedServerConnector, getSessionedServerConnector, getSessionedServerConnector, isConnected, isEncrypted, isTransmitting, openConnection, openConnectionAsynchronously, openConnectionAsynchronously, queryOrBranch, removeFreeFloatingReceiver, removePropertyChangeListener, removePropertyChangeListener, setConnected, setEncodingMode, setEncrypted, setMessageLogger, setTransmission, setupConnectionParameters, stopOpenConnectionAsynchronously, unregisterServerConnector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myserv
private GJSAServer myserv
stb
private ServerThreadBase stb
lastenvelope
private ServerEnvelope lastenvelope
DirectSessionedServerConnector
public DirectSessionedServerConnector(GJSAServer myservx)
doCloseConnection
protected void doCloseConnection()
- Close the handle in the server and everything which belongs to it.
- Specified by:
doCloseConnection
in class SessionedServerConnector
doOpenConnection
protected void doOpenConnection()
throws java.io.IOException
- Description copied from class:
SessionedServerConnector
- Perform necessary operations to actually open the connection.
- Specified by:
doOpenConnection
in class SessionedServerConnector
- Throws:
java.io.IOException
readEnvelope
protected ServerEnvelope readEnvelope()
throws java.io.IOException
- Description copied from class:
SessionedServerConnector
- Read a reply from the server.
- Specified by:
readEnvelope
in class SessionedServerConnector
- Throws:
java.io.IOException
setSendKeepAlive
public void setSendKeepAlive(boolean b)
- Description copied from class:
SessionedServerConnector
- Enables and disables the session connector to/from sending keep alive packets to the server.
These packets prevent the server from closing the connection in case of inactivity.
- Specified by:
setSendKeepAlive
in class SessionedServerConnector
writeEnvelope
protected void writeEnvelope(ServerEnvelope se)
throws java.io.IOException
- Description copied from class:
SessionedServerConnector
- Write an envelope to the server.
- Specified by:
writeEnvelope
in class SessionedServerConnector
- Throws:
java.io.IOException