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