org.objectweb.joram.client.jms
Class TemporaryTopic

java.lang.Object
  extended by org.objectweb.joram.client.jms.admin.AdministeredObject
      extended by org.objectweb.joram.client.jms.Destination
          extended by org.objectweb.joram.client.jms.Topic
              extended by org.objectweb.joram.client.jms.TemporaryTopic
All Implemented Interfaces:
SoapObjectItf, java.io.Serializable, javax.jms.Destination, javax.jms.TemporaryTopic, javax.jms.Topic, javax.naming.Referenceable, DestinationMBean, TopicMBean

public class TemporaryTopic
extends Topic
implements javax.jms.TemporaryTopic

Implements the javax.jms.TemporaryTopic interface.

See Also:
Serialized Form

Field Summary
private  Connection cnx
          The connection the topic belongs to, null if not known.
private static long serialVersionUID
          define serialVersionUID for interoperability
 
Fields inherited from class org.objectweb.joram.client.jms.Destination
ACQUISITION_QUEUE, ACQUISITION_TOPIC, adminName, agentId, CLUSTER_QUEUE, DEAD_MQUEUE, DISTRIBUTION_QUEUE, DISTRIBUTION_TOPIC, JMXBeanName, logger, QUEUE, QUEUE_TYPE, SCHEDULER_QUEUE, TEMPORARY, TOPIC, TOPIC_TYPE, wrapper
 
Constructor Summary
TemporaryTopic()
           
TemporaryTopic(java.lang.String agentId, Connection cnx)
          Constructs a temporary topic.
 
Method Summary
 void delete()
          API method.
(package private)  Connection getCnx()
          Returns the connection this temporary topic belongs to, null if not known.
 java.lang.String toString()
          Returns a String image of the topic.
 
Methods inherited from class org.objectweb.joram.client.jms.Topic
addClusteredTopic, create, create, create, create, create, create, create, createTopic, getClusterFellows, getHierarchicalFather, getSubscriberIds, getSubscriptions, getTopicName, removeFromCluster, setParent, unsetParent
 
Methods inherited from class org.objectweb.joram.client.jms.Destination
addReader, addWriter, check, checkId, code, decode, doCreate, doRequest, equals, fromReference, getAdminName, getDMQ, getDMQId, getJMXBeanName, getName, getReaderList, getReaders, getStatistic, getStatistics, getType, getWrapper, getWriterList, getWriters, hashCode, isFreelyReadable, isFreelyWriteable, isQueue, isTopic, newInstance, registerMBean, removeReader, removeWriter, setDMQ, setDMQId, setFreelyReadable, setFreelyWriteable, setFreeReading, setFreeWriting, setReader, setWrapper, setWriter, toReference, toXml, unregisterMBean, unsetFreeReading, unsetFreeWriting, unsetReader, unsetWriter
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getReference
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Topic
getTopicName
 
Methods inherited from interface org.objectweb.joram.client.jms.DestinationMBean
addReader, addWriter, getAdminName, getDMQId, getName, getReaderList, getStatistic, getStatistics, getWriterList, isFreelyReadable, isFreelyWriteable, isQueue, isTopic, removeReader, removeWriter, setDMQId, setFreelyReadable, setFreelyWriteable
 

Field Detail

serialVersionUID

private static final long serialVersionUID
define serialVersionUID for interoperability

See Also:
Constant Field Values

cnx

private Connection cnx
The connection the topic belongs to, null if not known.

Constructor Detail

TemporaryTopic

public TemporaryTopic()

TemporaryTopic

public TemporaryTopic(java.lang.String agentId,
                      Connection cnx)
Constructs a temporary topic.

Parameters:
agentId - Identifier of the topic agent.
cnx - The connection the queue belongs to, null if not known.
Method Detail

toString

public java.lang.String toString()
Returns a String image of the topic.

Specified by:
toString in interface javax.jms.Topic
Overrides:
toString in class Topic
Returns:
A provider-specific identity values for this topic.

delete

public void delete()
            throws javax.jms.JMSException
API method.

Specified by:
delete in interface javax.jms.TemporaryTopic
Specified by:
delete in interface DestinationMBean
Overrides:
delete in class Destination
Throws:
java.lang.IllegalStateException - If the connection is closed or broken.
javax.jms.JMSException - If the request fails for any other reason.

getCnx

Connection getCnx()
Returns the connection this temporary topic belongs to, null if not known.



Copyright © 2010 ScalAgent D.T.. All Rights Reserved.