public class ConnectionStateTracker extends CommandVisitorAdapter
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<ConnectionId,ConnectionState> |
connectionStates |
| Constructor and Description |
|---|
ConnectionStateTracker() |
processBrokerInfo, processConnectionControl, processConnectionError, processConsumerControl, processControlCommand, processFlush, processForgetTransaction, processKeepAlive, processMessageAck, processMessageDispatch, processMessageDispatchNotification, processProducerAck, processRecoverTransactions, processRemoveSubscription, processShutdown, processWireFormatprotected final ConcurrentMap<ConnectionId,ConnectionState> connectionStates
public ConnectionStateTracker()
public Tracked track(Command command) throws IOException
command - The command that is to be tracked by this tracker.IOException - if an error occurs during setup of the tracking operation.public void trackBack(Command command)
command - The command that was previously provided to the track method.public void restore(Transport transport) throws IOException
IOExceptionprotected void restoreSessions(Transport transport, ConnectionState connectionState) throws IOException
transport - connectionState - IOExceptionprotected void restoreConsumers(Transport transport, SessionState sessionState) throws IOException
transport - sessionState - IOExceptionprotected void restoreProducers(Transport transport, SessionState sessionState) throws IOException
transport - sessionState - IOExceptionprotected void restoreTempDestinations(Transport transport, ConnectionState connectionState) throws IOException
transport - connectionState - IOExceptionpublic Response processAddDestination(DestinationInfo info)
processAddDestination in interface CommandVisitorprocessAddDestination in class CommandVisitorAdapterpublic Response processRemoveDestination(DestinationInfo info)
processRemoveDestination in interface CommandVisitorprocessRemoveDestination in class CommandVisitorAdapterpublic Response processAddProducer(ProducerInfo info)
processAddProducer in interface CommandVisitorprocessAddProducer in class CommandVisitorAdapterpublic Response processRemoveProducer(ProducerId id)
processRemoveProducer in interface CommandVisitorprocessRemoveProducer in class CommandVisitorAdapterpublic Response processAddConsumer(ConsumerInfo info)
processAddConsumer in interface CommandVisitorprocessAddConsumer in class CommandVisitorAdapterpublic Response processRemoveConsumer(ConsumerId id, long lastDeliveredSequenceId)
processRemoveConsumer in interface CommandVisitorprocessRemoveConsumer in class CommandVisitorAdapterpublic Response processAddSession(SessionInfo info)
processAddSession in interface CommandVisitorprocessAddSession in class CommandVisitorAdapterpublic Response processRemoveSession(SessionId id, long lastDeliveredSequenceId)
processRemoveSession in interface CommandVisitorprocessRemoveSession in class CommandVisitorAdapterpublic Response processAddConnection(ConnectionInfo info)
processAddConnection in interface CommandVisitorprocessAddConnection in class CommandVisitorAdapterpublic Response processRemoveConnection(ConnectionId id, long lastDeliveredSequenceId) throws Exception
processRemoveConnection in interface CommandVisitorprocessRemoveConnection in class CommandVisitorAdapterExceptionpublic Response processMessage(Message send) throws Exception
processMessage in interface CommandVisitorprocessMessage in class CommandVisitorAdapterExceptionpublic Response processBeginTransaction(TransactionInfo info)
processBeginTransaction in interface CommandVisitorprocessBeginTransaction in class CommandVisitorAdapterpublic Response processPrepareTransaction(TransactionInfo info) throws Exception
processPrepareTransaction in interface CommandVisitorprocessPrepareTransaction in class CommandVisitorAdapterExceptionpublic Response processCommitTransactionOnePhase(TransactionInfo info) throws Exception
processCommitTransactionOnePhase in interface CommandVisitorprocessCommitTransactionOnePhase in class CommandVisitorAdapterExceptionpublic Response processCommitTransactionTwoPhase(TransactionInfo info) throws Exception
processCommitTransactionTwoPhase in interface CommandVisitorprocessCommitTransactionTwoPhase in class CommandVisitorAdapterExceptionpublic Response processRollbackTransaction(TransactionInfo info) throws Exception
processRollbackTransaction in interface CommandVisitorprocessRollbackTransaction in class CommandVisitorAdapterExceptionpublic Response processEndTransaction(TransactionInfo info) throws Exception
processEndTransaction in interface CommandVisitorprocessEndTransaction in class CommandVisitorAdapterExceptionpublic Response processMessagePull(MessagePull pull) throws Exception
processMessagePull in interface CommandVisitorprocessMessagePull in class CommandVisitorAdapterExceptionpublic boolean isRestoreConsumers()
public void setRestoreConsumers(boolean restoreConsumers)
public boolean isRestoreProducers()
public void setRestoreProducers(boolean restoreProducers)
public boolean isRestoreSessions()
public void setRestoreSessions(boolean restoreSessions)
public boolean isTrackTransactions()
public void setTrackTransactions(boolean trackTransactions)
public boolean isTrackTransactionProducers()
public void setTrackTransactionProducers(boolean trackTransactionProducers)
public boolean isRestoreTransaction()
public void setRestoreTransaction(boolean restoreTransaction)
public boolean isTrackMessages()
public void setTrackMessages(boolean trackMessages)
public int getMaxCacheSize()
public void setMaxCacheSize(int maxCacheSize)
public long getCurrentCacheSize()
public void connectionInterruptProcessingComplete(Transport transport, ConnectionId connectionId)
public void transportInterrupted(ConnectionId connectionId)
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.