|
QJCC homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.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
ServerConnectorThis method is the one which actually communicates with the server. All other query methods finally call this one.
query in class ServerConnectorse - ServerEnvelope with one or more queries set
java.io.IOException - If something goes wrong in the communication between client and serverServerEnvelopepublic int getEncodingMode()
ServerConnector
getEncodingMode in class ServerConnectorpublic boolean isBackgroundSession()
ServerConnector
isBackgroundSession in class ServerConnectorpublic boolean isEncrypting()
ServerConnector
isEncrypting in class ServerConnectorpublic void addConnectionDesasterListener(ConnectionDesasterListener cdl)
ServerConnector
addConnectionDesasterListener in class ServerConnectorpublic void addConnectionEncryptionPresentor(ConnectionEncryptionPresentor ccep)
ServerConnector
addConnectionEncryptionPresentor in class ServerConnectorpublic void addConnectionStatePresentor(ConnectionStatePresentor ccsp)
ServerConnector
addConnectionStatePresentor in class ServerConnectorpublic void attachSyncBurstReceiver(SyncBurstReceiver sbr)
ServerConnector
attachSyncBurstReceiver in class ServerConnectorsbr - Description of the Parameterpublic void close()
ServerConnector
close in class ServerConnectorpublic void connDesaster()
ServerConnector
connDesaster in class ServerConnector
public void connectionOnHold(ServerEnvelope reest)
throws java.io.IOException
ServerConnectorThe 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 ServerConnectorreest - Description of the Parameter
java.io.IOException - Description of the Exceptionpublic void disableErrorMsgs()
disableErrorMsgs in class ServerConnectorpublic void removeConnectionDesasterListener(ConnectionDesasterListener cdl)
ServerConnector
removeConnectionDesasterListener in class ServerConnectorpublic void removeConnectionStatePresentor()
ServerConnector
removeConnectionStatePresentor in class ServerConnectorpublic void setBackgroundSession(boolean b)
ServerConnector
setBackgroundSession in class ServerConnectorpublic void setFreeFloatingInterface(ThreadInterface ti)
ServerConnector
setFreeFloatingInterface in class ServerConnectorpublic void setMessageLogger(Logger mx)
ServerConnector
setMessageLogger in class ServerConnectormx - The new messageLogger valuepublic void setReaderPriority(int newprio)
ServerConnector
setReaderPriority in class ServerConnectorpublic void startLineWakeupToggler()
startLineWakeupToggler in class ServerConnectorpublic 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 | |||||||||