Package com.sun.messaging
Class Destination
- java.lang.Object
-
- com.sun.messaging.AdministeredObject
-
- com.sun.messaging.Destination
-
- All Implemented Interfaces:
jakarta.jms.Destination,java.io.Serializable
- Direct Known Subclasses:
BasicQueue,BasicTopic
public abstract class Destination extends AdministeredObject implements jakarta.jms.Destination
ADestinationencapsulates Sun MQ specific configuration information for Sun MQDestinationobjects.- See Also:
jakarta.jms.Destination,com.sun.messaging.DestinationConfiguration, Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.messaging.AdministeredObject
AO_PROPERTY_TYPE_BOOLEAN, AO_PROPERTY_TYPE_INTEGER, AO_PROPERTY_TYPE_LIST, AO_PROPERTY_TYPE_LONG, AO_PROPERTY_TYPE_PROPERTYOWNER, AO_PROPERTY_TYPE_STRING, cachedConfigurationMap, configuration, configurationLabels, configurationTypes, cr, VERSION
-
-
Constructor Summary
Constructors Constructor Description Destination()Constructs an "untitled" Destination.Destination(java.lang.String name)Constructs a Destination given the name
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of this Destination.java.lang.StringgetQueueName()Returns the queue name.java.lang.StringgetTopicName()Returns the topic name.abstract booleanisQueue()Returns whether this is a Queueing type of Destination.abstract booleanisTemporary()Returns whether this is a Temporary type of Destination.voidsetDefaultConfiguration()Sets the minimumDestinationconfiguration defaults required of a Sun MQ Destination identity object.java.lang.StringtoString()Returns a pretty printed version of the provider specific information for this Destination identity object.java.lang.Booleanvalidate_imqDestinationName(java.lang.String name)Validates aDestinationname.-
Methods inherited from class com.sun.messaging.AdministeredObject
dump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnly, setStoredVersion
-
-
-
-
Constructor Detail
-
Destination
public Destination()
Constructs an "untitled" Destination.
-
Destination
public Destination(java.lang.String name) throws jakarta.jms.InvalidDestinationExceptionConstructs a Destination given the name- Parameters:
name- The name of the Destination- Throws:
jakarta.jms.InvalidDestinationException- See Also:
If name is an invalid destination name
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of this Destination.- Returns:
- the Destination name
-
getQueueName
public java.lang.String getQueueName() throws jakarta.jms.JMSExceptionReturns the queue name.- Returns:
- the queue name
- Throws:
jakarta.jms.JMSException- if a queue access error occurs.
-
getTopicName
public java.lang.String getTopicName() throws jakarta.jms.JMSExceptionReturns the topic name.- Returns:
- the topic name
- Throws:
jakarta.jms.JMSException- if a topic access error occurs.
-
toString
public java.lang.String toString()
Returns a pretty printed version of the provider specific information for this Destination identity object.- Overrides:
toStringin classAdministeredObject- Returns:
- the pretty printed string.
-
isQueue
public abstract boolean isQueue()
Returns whether this is a Queueing type of Destination.- Returns:
- whether this is a Queueing type of Destination.
-
isTemporary
public abstract boolean isTemporary()
Returns whether this is a Temporary type of Destination.- Returns:
- whether this is a Temporary type of Destination.
-
setDefaultConfiguration
public void setDefaultConfiguration()
Sets the minimumDestinationconfiguration defaults required of a Sun MQ Destination identity object.- Specified by:
setDefaultConfigurationin classAdministeredObject
-
validate_imqDestinationName
public java.lang.Boolean validate_imqDestinationName(java.lang.String name)
Validates aDestinationname.- Parameters:
name- TheDestinationname.- Returns:
trueif the name is valid;falseif the name is invalid.
-
-