|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
dist1.acb.common.transport.AbstractClientSocket
dist1.acb.ACBpoint.transport.ClientSocket
ClientSocket Connection to the Primary
| Nested Class Summary |
| Nested classes inherited from class dist1.acb.common.transport.AbstractClientSocket |
AbstractClientSocket.SocketAndStreams |
| Field Summary |
| Fields inherited from class dist1.acb.common.transport.AbstractClientSocket |
isShutdowned, log, objectStreamFactory, socket |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
void |
executeRequestsFromBackup(int firstRequest)
Tries to repeate requests from backup list |
static ClientSocket |
getInstance()
Gets the instance of the ClientSocket server |
java.lang.Integer |
getLastRequest()
Returns Id of last request in the backup buffer, or null if the buffer is empty |
protected void |
handleConnectionEstablished()
|
protected boolean |
handleConnectionLost()
|
protected void |
handleUnrecoverableError(java.lang.Throwable e)
|
Response |
request(Request request)
Send the request and receive a response from the server in same thread. |
void |
resetRequestsBackup()
DOCUMENT ME! |
| Methods inherited from class dist1.acb.common.transport.AbstractClientSocket |
connect, connect, connect, getResponse, getServerAddr, getServersAddresses, handleResponseToNoRequest, isConnected, receiveResponse, request, run, scheduleRequest, setServersAddresses, start |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static ClientSocket getInstance()
public java.lang.Integer getLastRequest()
public void executeRequestsFromBackup(int firstRequest)
throws java.lang.InterruptedException,
java.lang.ClassNotFoundException,
java.io.IOException
firstRequest - first request ID to execute
java.lang.InterruptedException - The thread was interrupted.
java.lang.ClassNotFoundException - if received from the server class was not
found
java.io.IOException - if handleConnectionLost() returns false
java.lang.RuntimeException - if somthing wrong
public Response request(Request request)
throws java.lang.InterruptedException,
java.lang.ClassNotFoundException,
java.io.IOException
request in class AbstractClientSocketrequest - Request to send
java.lang.InterruptedException - The thread was interrupted.
java.lang.ClassNotFoundException - if received from the server class was not
found
java.io.IOException - if handleConnectionLost() returns falsepublic void resetRequestsBackup()
protected void handleConnectionEstablished()
handleConnectionEstablished in class AbstractClientSocketprotected boolean handleConnectionLost()
handleConnectionLost in class AbstractClientSocketprotected void handleUnrecoverableError(java.lang.Throwable e)
handleUnrecoverableError in class AbstractClientSocket
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||