public class DestinationInfo
extends java.lang.Object
This class represents information about a JMS destination. It is used by the JMS message management APIs to provide destination information to management clients in CompositeData format.
CompositeData
,
JMSDestinationRuntimeMBean
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
applicationName |
private WLDestination |
destination |
private static java.lang.String |
ITEM_APPLICATION_NAME |
private static java.lang.String |
ITEM_MODULE_NAME |
private static java.lang.String |
ITEM_NAME |
private static java.lang.String |
ITEM_QUEUE |
private static java.lang.String |
ITEM_SERIALIZED_DESTINATION |
private static java.lang.String |
ITEM_SERVER_NAME |
private static java.lang.String |
ITEM_TOPIC |
private static java.lang.String |
ITEM_VERSION_NUMBER |
private static java.lang.String[] |
itemDescriptions |
private static java.lang.String[] |
itemNames |
private static javax.management.openmbean.OpenType[] |
itemTypes |
private java.lang.String |
jmsServerInstanceName |
private java.lang.String |
moduleName |
private java.lang.String |
name |
private static java.lang.String |
OPEN_DESCRIPTION |
private static java.lang.String |
OPEN_TYPE_NAME |
private boolean |
queue |
private boolean |
topic |
private static int |
VERSION |
Constructor and Description |
---|
DestinationInfo(javax.management.openmbean.CompositeData cd)
Creates a DestinationInfo instance from its CompositeData representation.
|
DestinationInfo(WLDestination destination)
Creates a DestinationInfo instance from the specified WebLogic destination
object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationName()
Returns the application name for the destination.
|
protected java.util.Map |
getCompositeDataMap() |
protected javax.management.openmbean.CompositeType |
getCompositeType() |
WLDestination |
getDestination()
Returns the WebLogic destination object.
|
java.lang.String |
getModuleName()
Returns the module name to which the destination is scoped.
|
java.lang.String |
getName()
Returns the destination name.
|
java.lang.String |
getServerName()
Returns the server name on which the destination is hosted.
|
boolean |
isQueue()
Indicates whether this destination is a queue.
|
boolean |
isTopic()
Indicates whether the destination is a topic.
|
protected void |
readCompositeData(javax.management.openmbean.CompositeData cd) |
void |
setApplicationName(java.lang.String applicationName)
Sets the application name
|
void |
setDestination(WLDestination destination)
Sets the WebLogic destination
|
void |
setModuleName(java.lang.String moduleName)
Sets the module name.
|
void |
setName(java.lang.String name)
Sets the destination name.
|
void |
setQueue(boolean queue)
Sets the queue attribute.
|
void |
setServerName(java.lang.String jmsServerInstanceName)
Sets the server name attribute.
|
void |
setTopic(boolean topic)
Sets the topic attribute.
|
javax.management.openmbean.CompositeData |
toCompositeData()
Converts the instance to a CompositeData representation.
|
private static final java.lang.String OPEN_TYPE_NAME
private static final java.lang.String OPEN_DESCRIPTION
private static final java.lang.String ITEM_VERSION_NUMBER
private static final java.lang.String ITEM_NAME
private static final java.lang.String ITEM_SERVER_NAME
private static final java.lang.String ITEM_APPLICATION_NAME
private static final java.lang.String ITEM_MODULE_NAME
private static final java.lang.String ITEM_TOPIC
private static final java.lang.String ITEM_QUEUE
private static final java.lang.String ITEM_SERIALIZED_DESTINATION
private static java.lang.String[] itemNames
private static java.lang.String[] itemDescriptions
private static javax.management.openmbean.OpenType[] itemTypes
private static final int VERSION
private java.lang.String name
private java.lang.String jmsServerInstanceName
private java.lang.String applicationName
private java.lang.String moduleName
private boolean topic
private boolean queue
private WLDestination destination
public DestinationInfo(javax.management.openmbean.CompositeData cd) throws javax.management.openmbean.OpenDataException
Creates a DestinationInfo instance from its CompositeData representation.
cd
- An open data representation of a DestinationInfo object.java.io.IOException
- Thrown when ajava.lang.ClassNotFoundException
javax.management.openmbean.OpenDataException
public DestinationInfo(WLDestination destination)
Creates a DestinationInfo instance from the specified WebLogic destination object.
destination
- A WebLogic destination.public javax.management.openmbean.CompositeData toCompositeData() throws javax.management.openmbean.OpenDataException
Converts the instance to a CompositeData representation.
javax.management.openmbean.OpenDataException
- Thrown when an error occurs while constructing the CompositeData
representation.public java.lang.String getName()
Returns the destination name.
public void setName(java.lang.String name)
Sets the destination name.
name
- The name to set.public java.lang.String getApplicationName()
Returns the application name for the destination.
public void setApplicationName(java.lang.String applicationName)
Sets the application name
applicationName
- The applicationName to set.public WLDestination getDestination()
Returns the WebLogic destination object.
public void setDestination(WLDestination destination)
Sets the WebLogic destination
destination
- The destination to set.public java.lang.String getModuleName()
Returns the module name to which the destination is scoped.
public void setModuleName(java.lang.String moduleName)
Sets the module name.
moduleName
- The moduleName to set.public boolean isQueue()
Indicates whether this destination is a queue.
public void setQueue(boolean queue)
Sets the queue attribute.
queue
- The queue attribute value to set.public java.lang.String getServerName()
Returns the server name on which the destination is hosted.
public void setServerName(java.lang.String jmsServerInstanceName)
Sets the server name attribute.
jmsServerInstanceName
- The jmsServerInstanceName to set.public boolean isTopic()
Indicates whether the destination is a topic.
public void setTopic(boolean topic)
Sets the topic attribute.
topic
- The topic attribute value to set.protected void readCompositeData(javax.management.openmbean.CompositeData cd) throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataException
protected java.util.Map getCompositeDataMap() throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataException
protected javax.management.openmbean.CompositeType getCompositeType() throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataException