|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.transport.JdkMarshalContext
uka.karmi.rmi.Connection
uka.karmi.rmi.ServerConnection
uka.karmi.stream.StreamServerConnection
Base class for all server-side connections in stream-based
technologies. A StreamServerConnection encapsulates an
input and an output stream for marshaling and unmarshaling method
arguments and results.
A connection is used on the server side by the server thread and the skeleton to unmarshal the method arguments and return the result to the caller.
ExecutionThread,
RemoteSkeleton| Field Summary | |
private long |
_tid
Keeps the previous thread ID of the thread dispatching this connection. |
private DGCMarshalContext |
marshalContext
|
private DGCUnmarshalContext |
unmarshalContext
|
| Fields inherited from class uka.karmi.rmi.ServerConnection |
ep, handlers, technology, useTID |
| Fields inherited from class uka.karmi.rmi.Connection |
cid, mid, oid, RETURN_EXCEPTION, RETURN_INTERNAL, RETURN_INTERRUPT, RETURN_OK, tid |
| Fields inherited from class uka.transport.JdkMarshalContext |
|
| Fields inherited from interface uka.karmi.rmi.server.Constants |
APP_CALL, COLLECTIVE_OPERATION, DGC_ACK, DGC_CALL, DGC_CALL_ASYNC, MID_BARRIER, MID_COLLECTIVE_EXCHANGE, MID_COLLECTIVE_UPDATE, MID_EXCLUSIVE_LOCK, MID_EXCLUSIVE_UPDATE, MID_REQUEST_TICKET, MID_REQUEST_WAIT, MID_RMA, MID_SERVICE_CREATE_REPLICA, MID_SERVICE_GET_STUB, MID_SERVICE_INTERRUPT, MID_SERVICE_MIGRATE, MID_SERVICE_UPDATE_REFERENCES, MID_WAKEUP, SERVICE_CALL, SKELETON_EXTENSION, STUB_EXTENSION |
| Constructor Summary | |
StreamServerConnection(MarshalOutputStream snd,
MarshalInputStream rcv,
ExportPoint ep,
Technology technology)
|
|
| Method Summary | |
void |
closeAsynchronousCall()
|
void |
closeReceiveCall()
Indicates that the call was received successfully. |
void |
closeReceiveDgcCall()
|
void |
closeSendDgcResult()
|
void |
closeSendResult()
Connection cleanup. |
void |
openReceiveCall()
Receive connection parameters Connection.cid, Connection.oid,
Connection.mid, and Connection.tid. |
void |
openSendResult(byte code)
|
| Methods inherited from class uka.karmi.rmi.ServerConnection |
dispatch, dispatchInterrupt, doAsyncDGCCall, doBlocking, doCallback, doDGCCall, doSynchronized, getBlockingProblem, getCallbackProblem, getHandler, getRemoteServerRef, getThreadID, openSendResult, releaseHandler, toStringMembers |
| Methods inherited from class uka.karmi.rmi.Connection |
toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private DGCUnmarshalContext unmarshalContext
private DGCMarshalContext marshalContext
private long _tid
| Constructor Detail |
public StreamServerConnection(MarshalOutputStream snd,
MarshalInputStream rcv,
ExportPoint ep,
Technology technology)
| Method Detail |
public void openReceiveCall()
throws java.io.IOException
ServerConnectionConnection.cid, Connection.oid,
Connection.mid, and Connection.tid.
openReceiveCall in class ServerConnectionjava.io.IOException
public void closeReceiveCall()
throws java.io.IOException
ServerConnectionIndicates that the call was received successfully. This method is called by the skeleton just before invoking the server method.
At the time, this method is called the following has
happened: The skeleton has already unmarshaled the arguments
form this connection in its doApplicationCall()
method.
This method belongs to the server-side skeleton interface of the connection.
closeReceiveCall in class ServerConnectionjava.io.IOExceptionRemoteSkeleton.doApplicationCall(ServerConnection)
public void closeReceiveDgcCall()
throws java.io.IOException
closeReceiveDgcCall in class ServerConnectionjava.io.IOExceptionServerConnection.closeReceiveCall()
public void openSendResult(byte code)
throws java.io.IOException
openSendResult in class ServerConnectioncode - Legal values are: RETURN_OK, RETURN_EXCEPTION,
RETURN_OK | RETURN_INTERRUPT, RETURN_EXCEPTION |
RETURN_INTERRUPT, RETURN_INTERNAL
java.io.IOExceptionConnection.RETURN_OK,
Connection.RETURN_EXCEPTION,
Connection.RETURN_INTERRUPT,
Connection.RETURN_INTERNAL
public void closeAsynchronousCall()
throws RemoteException
closeAsynchronousCall in class ConnectionRemoteException
public void closeSendResult()
throws java.io.IOException
ServerConnectionConnection cleanup. After this method completes, the next remote call can be unmarshaled from this connection object. This method is invoked after a remote method invocation has been completed and the result is marshaled back to the caller.
This method belongs to the server-side skeleton interface of the connection.
closeSendResult in class ServerConnectionjava.io.IOExceptionServerConnection.dispatch(boolean)
public void closeSendDgcResult()
throws java.io.IOException
closeSendDgcResult in class ServerConnectionjava.io.IOExceptionServerConnection.closeSendResult()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||