C# Class Apache.NMS.ActiveMQ.Test.FailoverTransportTest

Show file Open project: ThorTech/apache-nms

Protected Properties

Property Type Description
semaphore System.Threading.AutoResetEvent

Public Methods

Method Description
OnMessage ( IMessage message ) : void
PurgeQueue ( IConnection conn, IDestination queue ) : void
TransportInterrupted ( ) : void
TransportResumed ( ) : void

Protected Methods

Method Description
WaitForMessagesToArrive ( ) : void
createConnection ( ) : ConnectionInfo
createConsumer ( SessionInfo parent ) : ConsumerInfo
createProducer ( SessionInfo parent ) : ProducerInfo
createSession ( ConnectionInfo parent ) : SessionInfo
disposeOf ( ITransport transport, ConsumerInfo consumer ) : void
disposeOf ( ITransport transport, ProducerInfo producer ) : void
disposeOf ( ITransport transport, SessionInfo session ) : void

Private Methods

Method Description
BreakConnection ( ) : void
FailoverTransportCreateFailOnCreateTest ( ) : void
FailoverTransportCreateFailOnCreateTest2 ( ) : void
FailoverTransportCreateTest ( ) : void
FailoverTransportFailOnProcessingReceivedMessageTest ( ) : void
FailoverTransportFailOnSendMessageTest ( ) : void
FailoverTransportFailingBackupsTest ( ) : void
FailoverTransportSendOnewayFailTest ( ) : void
FailoverTransportSendOnewayMessageTest ( ) : void
FailoverTransportSendOnewayTimeoutTest ( ) : void
FailoverTransportSendRequestFailTest ( ) : void
FailoverTransportSendRequestTest ( ) : void
FailoverTransportWithBackupsTest ( ) : void
OnCommand ( ITransport transport, Command command ) : void
OnException ( ITransport transport, Exception exception ) : void
OnOutgoingCommand ( ITransport transport, Command command ) : void
OnResumed ( ITransport sender ) : void
OpenWireCommandsTest ( ) : void
PutMsgIntoQueue ( ISession session, IDestination destination ) : void
TestFailoverTransportConnectionControlHandling ( ) : void
VerifyCommandHandlerSetting ( ITransport transport, MockTransport mock ) : void
init ( ) : void

Method Details

OnMessage() public method

public OnMessage ( IMessage message ) : void
message IMessage
return void

PurgeQueue() public method

public PurgeQueue ( IConnection conn, IDestination queue ) : void
conn IConnection
queue IDestination
return void

TransportInterrupted() public method

public TransportInterrupted ( ) : void
return void

TransportResumed() public method

public TransportResumed ( ) : void
return void

WaitForMessagesToArrive() protected method

protected WaitForMessagesToArrive ( ) : void
return void

createConnection() protected method

protected createConnection ( ) : ConnectionInfo
return Apache.NMS.ActiveMQ.Commands.ConnectionInfo

createConsumer() protected method

protected createConsumer ( SessionInfo parent ) : ConsumerInfo
parent Apache.NMS.ActiveMQ.Commands.SessionInfo
return Apache.NMS.ActiveMQ.Commands.ConsumerInfo

createProducer() protected method

protected createProducer ( SessionInfo parent ) : ProducerInfo
parent Apache.NMS.ActiveMQ.Commands.SessionInfo
return Apache.NMS.ActiveMQ.Commands.ProducerInfo

createSession() protected method

protected createSession ( ConnectionInfo parent ) : SessionInfo
parent Apache.NMS.ActiveMQ.Commands.ConnectionInfo
return Apache.NMS.ActiveMQ.Commands.SessionInfo

disposeOf() protected method

protected disposeOf ( ITransport transport, ConsumerInfo consumer ) : void
transport ITransport
consumer Apache.NMS.ActiveMQ.Commands.ConsumerInfo
return void

disposeOf() protected method

protected disposeOf ( ITransport transport, ProducerInfo producer ) : void
transport ITransport
producer Apache.NMS.ActiveMQ.Commands.ProducerInfo
return void

disposeOf() protected method

protected disposeOf ( ITransport transport, SessionInfo session ) : void
transport ITransport
session Apache.NMS.ActiveMQ.Commands.SessionInfo
return void

Property Details

semaphore protected property

protected AutoResetEvent,System.Threading semaphore
return System.Threading.AutoResetEvent