Package dk.netarkivet.common.distribute
Class JMSConnectionMockupMQ.TestConnection
- java.lang.Object
-
- dk.netarkivet.common.distribute.JMSConnectionMockupMQ.TestConnection
-
- All Implemented Interfaces:
javax.jms.Connection
- Enclosing class:
- JMSConnectionMockupMQ
protected static class JMSConnectionMockupMQ.TestConnection extends Object implements javax.jms.Connection
-
-
Field Summary
Fields Modifier and Type Field Description boolean
isStarted
-
Constructor Summary
Constructors Modifier Constructor Description protected
TestConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
javax.jms.ConnectionConsumer
createConnectionConsumer(javax.jms.Destination destination, String string, javax.jms.ServerSessionPool serverSessionPool, int i)
javax.jms.ConnectionConsumer
createDurableConnectionConsumer(javax.jms.Topic topic, String string, String string1, javax.jms.ServerSessionPool serverSessionPool, int i)
javax.jms.Session
createSession(boolean b, int i)
String
getClientID()
javax.jms.ExceptionListener
getExceptionListener()
javax.jms.ConnectionMetaData
getMetaData()
void
setClientID(String string)
void
setExceptionListener(javax.jms.ExceptionListener exceptionListener)
void
start()
void
stop()
-
-
-
Method Detail
-
createSession
public javax.jms.Session createSession(boolean b, int i) throws javax.jms.JMSException
- Specified by:
createSession
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
start
public void start() throws javax.jms.JMSException
- Specified by:
start
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
stop
public void stop() throws javax.jms.JMSException
- Specified by:
stop
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
close
public void close() throws javax.jms.JMSException
- Specified by:
close
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
setExceptionListener
public void setExceptionListener(javax.jms.ExceptionListener exceptionListener) throws javax.jms.JMSException
- Specified by:
setExceptionListener
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
getExceptionListener
public javax.jms.ExceptionListener getExceptionListener() throws javax.jms.JMSException
- Specified by:
getExceptionListener
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
getClientID
public String getClientID() throws javax.jms.JMSException
- Specified by:
getClientID
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
setClientID
public void setClientID(String string) throws javax.jms.JMSException
- Specified by:
setClientID
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
getMetaData
public javax.jms.ConnectionMetaData getMetaData() throws javax.jms.JMSException
- Specified by:
getMetaData
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
createConnectionConsumer
public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Destination destination, String string, javax.jms.ServerSessionPool serverSessionPool, int i) throws javax.jms.JMSException
- Specified by:
createConnectionConsumer
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
createDurableConnectionConsumer
public javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic topic, String string, String string1, javax.jms.ServerSessionPool serverSessionPool, int i) throws javax.jms.JMSException
- Specified by:
createDurableConnectionConsumer
in interfacejavax.jms.Connection
- Throws:
javax.jms.JMSException
-
-