QJCC homepage

biz.chitec.quarterback.gjsa.server
Class DirectSessionedServerConnector

java.lang.Object
  extended bybiz.chitec.quarterback.gjsa.SessionedServerConnector
      extended bybiz.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.

Nested Class Summary
 
Nested classes inherited from class biz.chitec.quarterback.gjsa.SessionedServerConnector
 
Field Summary
private  ServerEnvelope lastenvelope
           
private  GJSAServer myserv
           
private  ServerThreadBase stb
           
 
Fields inherited from class biz.chitec.quarterback.gjsa.SessionedServerConnector
connected, connectionport, encodingmode, encrypted, mess, myscno, pcs, serverseenclientip, serverseenclientname, SOCKET_SO_TIME, sslciphers, sslfactory, transmitting
 
Constructor Summary
DirectSessionedServerConnector(GJSAServer myservx)
           
 
Method Summary
protected  void doCloseConnection()
          Close the handle in the server and everything which belongs to it.
protected  void doOpenConnection()
          Perform necessary operations to actually open the connection.
protected  ServerEnvelope readEnvelope()
          Read a reply from the server.
 void setSendKeepAlive(boolean b)
          Enables and disables the session connector to/from sending keep alive packets to the server.
protected  void writeEnvelope(ServerEnvelope se)
          Write an envelope to the server.
 
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
 

Field Detail

myserv

private GJSAServer myserv

stb

private ServerThreadBase stb

lastenvelope

private ServerEnvelope lastenvelope
Constructor Detail

DirectSessionedServerConnector

public DirectSessionedServerConnector(GJSAServer myservx)
Method Detail

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

QJCC homepage