|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.gjsa.ServerConnector biz.chitec.quarterback.gjsa.QueryOnlyServerConnectorWrapper
Wrapper around another ServerConnector which only allows to send and receive queries.
All methods apart from query(ServerEnvelope)
are grounded, i.e. they do nothing and throw an exception.
Field Summary | |
private ServerConnector |
wrapped
|
Constructor Summary | |
QueryOnlyServerConnectorWrapper(ServerConnector wrappedx)
|
Method Summary | |
void |
addConnectionDesasterListener(ConnectionDesasterListener cdl)
Add listener for connection desasterts |
void |
addConnectionEncryptionPresentor(ConnectionEncryptionPresentor ccep)
Adds a presentor for the encryption state |
void |
addConnectionStatePresentor(ConnectionStatePresentor ccsp)
Adds a connection state presentor. |
void |
attachSyncBurstReceiver(SyncBurstReceiver sbr)
Attaches and starts a SyncBurstReceiver to this ServerConnector. |
void |
close()
Closes connection, does nothing if a desaster occured before |
void |
connDesaster()
Raises a connection desaster |
void |
connectionOnHold(ServerEnvelope reest)
Closes the connection to the server transparently for higher layers. |
void |
disableErrorMsgs()
|
int |
getEncodingMode()
Return encoding of the connection |
boolean |
isBackgroundSession()
Return whether the connector is throttling. |
boolean |
isEncrypting()
Gets the encrypting attribute of the ServerConnector object |
ServerEnvelope |
query(ServerEnvelope se)
Low level query The ServerEnvelope may contain multiple queries. |
void |
removeConnectionDesasterListener(ConnectionDesasterListener cdl)
Remove listener for connection desasters |
void |
removeConnectionStatePresentor()
Removes the presentor for the connection state |
void |
setBackgroundSession(boolean b)
Set the connector to "throttling" mode => if someone else is sending, wait for that one to finish. |
void |
setFreeFloatingInterface(ThreadInterface ti)
Set the interface where free floating messages are sent to. |
void |
setMessageLogger(Logger mx)
Sets the messageLogger attribute of the ServerConnector object |
void |
setReaderPriority(int newprio)
Set priority of the reader thread. |
void |
startLineWakeupToggler()
|
void |
stopSyncBurstReceiver()
Stops a currently running SyncBurstReceiver. |
Methods inherited from class biz.chitec.quarterback.gjsa.ServerConnector |
openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, query, query, query, query, query, query, query, query, query, query, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ServerConnector wrapped
Constructor Detail |
public QueryOnlyServerConnectorWrapper(ServerConnector wrappedx)
Method Detail |
public ServerEnvelope query(ServerEnvelope se) throws java.io.IOException
ServerConnector
This method is the one which actually communicates with the server. All other query methods finally call this one.
query
in class ServerConnector
se
- ServerEnvelope with one or more queries set
java.io.IOException
- If something goes wrong in the communication between client and serverServerEnvelope
public int getEncodingMode()
ServerConnector
getEncodingMode
in class ServerConnector
public boolean isBackgroundSession()
ServerConnector
isBackgroundSession
in class ServerConnector
public boolean isEncrypting()
ServerConnector
isEncrypting
in class ServerConnector
public void addConnectionDesasterListener(ConnectionDesasterListener cdl)
ServerConnector
addConnectionDesasterListener
in class ServerConnector
public void addConnectionEncryptionPresentor(ConnectionEncryptionPresentor ccep)
ServerConnector
addConnectionEncryptionPresentor
in class ServerConnector
public void addConnectionStatePresentor(ConnectionStatePresentor ccsp)
ServerConnector
addConnectionStatePresentor
in class ServerConnector
public void attachSyncBurstReceiver(SyncBurstReceiver sbr)
ServerConnector
attachSyncBurstReceiver
in class ServerConnector
sbr
- Description of the Parameterpublic void close()
ServerConnector
close
in class ServerConnector
public void connDesaster()
ServerConnector
connDesaster
in class ServerConnector
public void connectionOnHold(ServerEnvelope reest) throws java.io.IOException
ServerConnector
The next query sent to the ServerConnector will reestablish the connection. After opening the ports, the complete reest ServerEnvelope will be sent to the server to reach the state it had on closing.
connectionOnHold
in class ServerConnector
reest
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void disableErrorMsgs()
disableErrorMsgs
in class ServerConnector
public void removeConnectionDesasterListener(ConnectionDesasterListener cdl)
ServerConnector
removeConnectionDesasterListener
in class ServerConnector
public void removeConnectionStatePresentor()
ServerConnector
removeConnectionStatePresentor
in class ServerConnector
public void setBackgroundSession(boolean b)
ServerConnector
setBackgroundSession
in class ServerConnector
public void setFreeFloatingInterface(ThreadInterface ti)
ServerConnector
setFreeFloatingInterface
in class ServerConnector
public void setMessageLogger(Logger mx)
ServerConnector
setMessageLogger
in class ServerConnector
mx
- The new messageLogger valuepublic void setReaderPriority(int newprio)
ServerConnector
setReaderPriority
in class ServerConnector
public void startLineWakeupToggler()
startLineWakeupToggler
in class ServerConnector
public void stopSyncBurstReceiver()
ServerConnector
stopSyncBurstReceiver
in class ServerConnector
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |