Package com.sun.ts.tests.jms.common
Class Cleanup
java.lang.Object
com.sun.ts.tests.jms.common.Cleanup
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcloseAllConnections(ArrayList connections) Close any connections opened by the testsvoiddoClientQueueTestCleanup(ArrayList connections, ArrayList queues) Use this method at cleanup time to remove any connections and messages that have remained on the queue.voidflushDestination(jakarta.jms.Destination destination) flushDestination(Destination) Use this method at cleanup time to remove any messages that have remained on the queue.voidflushQueue(jakarta.jms.Queue queue, jakarta.jms.Session session) flushQueue(Queue, Session) Use this method at cleanup time to remove any messages that have remained on the queue.voidflushQueue(ArrayList queues) flushQueue(ArrayList) Use this method at cleanup time to remove any messages that have remained on the queue.
- 
Field Details- 
JMSDEFAULT- See Also:
 
 
- 
- 
Constructor Details- 
Cleanuppublic Cleanup()Default constructor
- 
Cleanuppublic Cleanup(jakarta.jms.ConnectionFactory cf) Second constructor- Parameters:
- ConnectionFactory- connfactory the connection factory object
 
- 
CleanupThird constructor- Parameters:
- String- user the username credentials
- String- pass the password credentials
- ConnectionFactory- connfactory the connection factory object
 
 
- 
- 
Method Details- 
doClientQueueTestCleanupUse this method at cleanup time to remove any connections and messages that have remained on the queue.- Parameters:
- ArrayList- connections list of open connections
- ArrayList- queues list of queues to flush
 
- 
closeAllConnectionsClose any connections opened by the tests- Parameters:
- ArrayList- connections list of connections to close
 
- 
flushDestinationflushDestination(Destination) Use this method at cleanup time to remove any messages that have remained on the queue.- Throws:
- Exception
 
- 
flushQueueflushQueue(ArrayList) Use this method at cleanup time to remove any messages that have remained on the queue.- Parameters:
- Queue- qToFlush[] QUEUES
- Throws:
- Exception
 
- 
flushQueueflushQueue(Queue, Session) Use this method at cleanup time to remove any messages that have remained on the queue.- Parameters:
- Queue- queue the queue to flush
- Session- session the session
- Throws:
- Exception
 
 
-