public class ConnectionStateTracker extends CommandVisitorAdapter
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ConcurrentHashMap<ConnectionId,ConnectionState> |
connectionStates |
| Constructor and Description |
|---|
ConnectionStateTracker() |
processBrokerInfo, processConnectionControl, processConnectionError, processConsumerControl, processControlCommand, processFlush, processForgetTransaction, processKeepAlive, processMessageAck, processMessageDispatch, processMessageDispatchNotification, processProducerAck, processRecoverTransactions, processRemoveSubscription, processShutdown, processWireFormatprotected final java.util.concurrent.ConcurrentHashMap<ConnectionId,ConnectionState> connectionStates
public Tracked track(Command command) throws java.io.IOException
command - java.io.IOExceptionpublic void trackBack(Command command)
public void restore(Transport transport) throws java.io.IOException
java.io.IOExceptionprotected void restoreSessions(Transport transport, ConnectionState connectionState) throws java.io.IOException
transport - connectionState - java.io.IOExceptionprotected void restoreConsumers(Transport transport, SessionState sessionState) throws java.io.IOException
transport - sessionState - java.io.IOExceptionprotected void restoreProducers(Transport transport, SessionState sessionState) throws java.io.IOException
transport - sessionState - java.io.IOExceptionprotected void restoreTempDestinations(Transport transport, ConnectionState connectionState) throws java.io.IOException
transport - connectionState - java.io.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 java.lang.Exception
processRemoveConnection in interface CommandVisitorprocessRemoveConnection in class CommandVisitorAdapterjava.lang.Exceptionpublic Response processMessage(Message send) throws java.lang.Exception
processMessage in interface CommandVisitorprocessMessage in class CommandVisitorAdapterjava.lang.Exceptionpublic Response processBeginTransaction(TransactionInfo info)
processBeginTransaction in interface CommandVisitorprocessBeginTransaction in class CommandVisitorAdapterpublic Response processPrepareTransaction(TransactionInfo info) throws java.lang.Exception
processPrepareTransaction in interface CommandVisitorprocessPrepareTransaction in class CommandVisitorAdapterjava.lang.Exceptionpublic Response processCommitTransactionOnePhase(TransactionInfo info) throws java.lang.Exception
processCommitTransactionOnePhase in interface CommandVisitorprocessCommitTransactionOnePhase in class CommandVisitorAdapterjava.lang.Exceptionpublic Response processCommitTransactionTwoPhase(TransactionInfo info) throws java.lang.Exception
processCommitTransactionTwoPhase in interface CommandVisitorprocessCommitTransactionTwoPhase in class CommandVisitorAdapterjava.lang.Exceptionpublic Response processRollbackTransaction(TransactionInfo info) throws java.lang.Exception
processRollbackTransaction in interface CommandVisitorprocessRollbackTransaction in class CommandVisitorAdapterjava.lang.Exceptionpublic Response processEndTransaction(TransactionInfo info) throws java.lang.Exception
processEndTransaction in interface CommandVisitorprocessEndTransaction in class CommandVisitorAdapterjava.lang.Exceptionpublic Response processMessagePull(MessagePull pull) throws java.lang.Exception
processMessagePull in interface CommandVisitorprocessMessagePull in class CommandVisitorAdapterjava.lang.Exceptionpublic 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 void connectionInterruptProcessingComplete(Transport transport, ConnectionId connectionId)
public void transportInterrupted(ConnectionId connectionId)
Copyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.