public abstract class MessageToWorkerHandler extends AbstractMessageServer
public Response handle(Principal, Message) throws FabricExceptionand there is one such method for each message type that the worker handles.
logger, name| Constructor and Description |
|---|
MessageToWorkerHandler(java.lang.String name) |
createServerSocket, runpublic abstract AbortTransactionMessage.Response handle(RemoteIdentity<RemoteWorker> client, AbortTransactionMessage msg) throws AccessException
AccessExceptionpublic abstract CommitTransactionMessage.Response handle(RemoteIdentity<RemoteWorker> client, CommitTransactionMessage msg) throws TransactionCommitFailedException
TransactionCommitFailedExceptionpublic abstract ObjectUpdateMessage.Response handle(RemoteIdentity<RemoteWorker> client, ObjectUpdateMessage msg)
public abstract PrepareTransactionMessage.Response handle(RemoteIdentity<RemoteWorker> client, PrepareTransactionMessage msg) throws TransactionPrepareFailedException
public abstract DirtyReadMessage.Response handle(RemoteIdentity<RemoteWorker> client, DirtyReadMessage msg) throws AccessException
AccessExceptionpublic abstract RemoteCallMessage.Response handle(RemoteIdentity<RemoteWorker> client, RemoteCallMessage msg) throws RemoteCallException
RemoteCallExceptionpublic abstract TakeOwnershipMessage.Response handle(RemoteIdentity<RemoteWorker> client, TakeOwnershipMessage msg) throws TakeOwnershipFailedException
TakeOwnershipFailedExceptionpublic abstract InterWorkerStalenessMessage.Response handle(RemoteIdentity<RemoteWorker> client, InterWorkerStalenessMessage msg)
public final AllocateMessage.Response handle(RemoteIdentity<RemoteWorker> client, AllocateMessage msg) throws ProtocolError
ProtocolErrorpublic final DissemReadMessage.Response handle(RemoteIdentity<RemoteWorker> client, DissemReadMessage msg) throws ProtocolError
ProtocolErrorpublic GetCertChainMessage.Response handle(RemoteIdentity<RemoteWorker> client, GetCertChainMessage msg) throws ProtocolError
ProtocolErrorpublic ReadMessage.Response handle(RemoteIdentity<RemoteWorker> client, ReadMessage msg) throws ProtocolError
ProtocolErrorpublic MakePrincipalMessage.Response handle(RemoteIdentity<RemoteWorker> client, MakePrincipalMessage msg) throws ProtocolError
ProtocolErrorpublic StalenessCheckMessage.Response handle(RemoteIdentity<RemoteWorker> client, StalenessCheckMessage msg) throws ProtocolError
ProtocolError