fabric.store
Class MessageHandlerThread

java.lang.Object
  extended by java.lang.Thread
      extended by fabric.common.FabricThread.AbstractImpl
          extended by fabric.common.AbstractMessageHandlerThread<fabric.store.SessionAttributes,MessageHandlerThread>
              extended by fabric.store.MessageHandlerThread
All Implemented Interfaces:
FabricThread, MessageHandler, java.lang.Runnable

public class MessageHandlerThread
extends AbstractMessageHandlerThread<fabric.store.SessionAttributes,MessageHandlerThread>


Nested Class Summary
 
Nested classes/interfaces inherited from class fabric.common.AbstractMessageHandlerThread
AbstractMessageHandlerThread.Pool<MessageHandlerThread extends AbstractMessageHandlerThread<?,MessageHandlerThread>>, AbstractMessageHandlerThread.SessionAttributes
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Nested classes/interfaces inherited from interface fabric.common.FabricThread
FabricThread.AbstractImpl
 
Field Summary
 
Fields inherited from class fabric.common.AbstractMessageHandlerThread
pool, session
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void handle(AbortTransactionMessage message)
           
 AllocateMessage.Response handle(AllocateMessage msg)
          Processes the given request for new OIDs.
 CommitTransactionMessage.Response handle(CommitTransactionMessage message)
          Processes the given commit request
 DissemReadMessage.Response handle(DissemReadMessage msg)
          Processes the given dissemination-read request.
 GetCertificateChainMessage.Response handle(GetCertificateChainMessage msg)
          Processes the given request for the store's SSL certificate chain.
 PrepareTransactionMessage.Response handle(PrepareTransactionMessage msg)
          Processes the given PREPARE request.
 ReadMessage.Response handle(ReadMessage msg)
          Processes the given read request.
 java.util.List<SerializedObject> handle(StalenessCheckMessage message)
          Processes the given staleness check request.
 void handle(UnauthenticatedAbortTransactionMessage message)
          Processes the unauthenticated abort request.
 UnauthenticatedCommitTransactionMessage.Response handle(UnauthenticatedCommitTransactionMessage message)
          Processes the given unauthenticated commit request.
 UnauthenticatedPrepareTransactionMessage.Response handle(UnauthenticatedPrepareTransactionMessage msg)
          Processes the given unauthenticated prepare request.
 
Methods inherited from class fabric.common.AbstractMessageHandlerThread
associateSession, getSession, recycle, run, shuttingDown, sink, source
 
Methods inherited from class fabric.common.FabricThread.AbstractImpl
getTransactionManager, setTransactionManager
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

handle

public void handle(AbortTransactionMessage message)
            throws AccessException,
                   ProtocolError
Throws:
AccessException
ProtocolError

handle

public AllocateMessage.Response handle(AllocateMessage msg)
                                throws AccessException,
                                       ProtocolError
Processes the given request for new OIDs.

Throws:
AccessException
ProtocolError

handle

public CommitTransactionMessage.Response handle(CommitTransactionMessage message)
                                         throws ProtocolError
Processes the given commit request

Throws:
ProtocolError

handle

public PrepareTransactionMessage.Response handle(PrepareTransactionMessage msg)
                                          throws ProtocolError,
                                                 TransactionPrepareFailedException
Processes the given PREPARE request.

Throws:
ProtocolError
TransactionPrepareFailedException

handle

public ReadMessage.Response handle(ReadMessage msg)
                            throws AccessException,
                                   ProtocolError
Processes the given read request.

Throws:
AccessException
ProtocolError

handle

public DissemReadMessage.Response handle(DissemReadMessage msg)
                                  throws AccessException
Processes the given dissemination-read request.

Throws:
AccessException

handle

public UnauthenticatedPrepareTransactionMessage.Response handle(UnauthenticatedPrepareTransactionMessage msg)
Processes the given unauthenticated prepare request.


handle

public GetCertificateChainMessage.Response handle(GetCertificateChainMessage msg)
Processes the given request for the store's SSL certificate chain.


handle

public UnauthenticatedCommitTransactionMessage.Response handle(UnauthenticatedCommitTransactionMessage message)
Processes the given unauthenticated commit request.


handle

public void handle(UnauthenticatedAbortTransactionMessage message)
            throws AccessException
Processes the unauthenticated abort request.

Throws:
AccessException

handle

public java.util.List<SerializedObject> handle(StalenessCheckMessage message)
                                        throws AccessException
Processes the given staleness check request.

Throws:
AccessException