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, run
public abstract AbortTransactionMessage.Response handle(RemoteIdentity<RemoteWorker> client, AbortTransactionMessage msg) throws AccessException
AccessException
public abstract AllocateMessage.Response handle(RemoteIdentity<RemoteWorker> client, AllocateMessage msg) throws AccessException
AccessException
public abstract CommitTransactionMessage.Response handle(RemoteIdentity<RemoteWorker> client, CommitTransactionMessage msg) throws TransactionCommitFailedException
TransactionCommitFailedException
public abstract DissemReadMessage.Response handle(RemoteIdentity<RemoteWorker> client, DissemReadMessage msg) throws AccessException
AccessException
public 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
AccessException
public abstract MakePrincipalMessage.Response handle(RemoteIdentity<RemoteWorker> client, MakePrincipalMessage msg) throws FabricGeneralSecurityException
FabricGeneralSecurityException
public abstract StalenessCheckMessage.Response handle(RemoteIdentity<RemoteWorker> client, StalenessCheckMessage msg) throws AccessException
AccessException
public final ObjectUpdateMessage.Response handle(RemoteIdentity<RemoteWorker> client, ObjectUpdateMessage msg) throws ProtocolError
ProtocolError
public final DirtyReadMessage.Response handle(RemoteIdentity<RemoteWorker> client, DirtyReadMessage msg) throws ProtocolError
ProtocolError
public final RemoteCallMessage.Response handle(RemoteIdentity<RemoteWorker> client, RemoteCallMessage msg) throws ProtocolError
ProtocolError
public final TakeOwnershipMessage.Response handle(RemoteIdentity<RemoteWorker> client, TakeOwnershipMessage msg) throws ProtocolError
ProtocolError
public final InterWorkerStalenessMessage.Response handle(RemoteIdentity<RemoteWorker> client, InterWorkerStalenessMessage msg) throws ProtocolError
ProtocolError