public abstract class DestinationInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL_TYPE
Type indicating a topic or queue.
|
static int |
DEST_GET_ALL
Request info for all destinations
|
static int |
DEST_GET_DYNAMIC
Request info for dynamic destinations only
|
static int |
DEST_GET_NOTEMP
Request info for nontemporary destinations only
|
static int |
DEST_GET_STATIC
Request info for static destinations only
|
static byte |
MSG_TRACE_BASIC
Indicates that message sequence number and message ID will be traced.
|
static byte |
MSG_TRACE_DETAIL
Indicates that the message body will be traced in addition to the
message sequnce number and message ID, .
|
static byte |
MSG_TRACE_NONE
Indicates that messages will not be traced.
|
static int |
OVERFLOW_DEFAULT
Indicates that the destination has no specific overflow policy set.
|
static int |
OVERFLOW_DISCARD_OLD
Indicates that if maxmsgs or maxbytes are exceeded for the queue or a
topic's subscriber then when new messages arrive, old messages will be
discarded.
|
static int |
OVERFLOW_REJECT_INCOMING
For queues, this behavior is the same as for
OVERFLOW_DEFAULT . |
static int |
PREFETCH_DEFAULT
Indicates that the default number of messages will be prefetched into
the EMS client.
|
static int |
PREFETCH_NONE
Indicates no messages will be prefetched into the EMS client.
|
static int |
QUEUE_TYPE
Type indicating a queue.
|
static int |
TOPIC_TYPE
Type indicating a topic.
|
Modifier and Type | Method and Description |
---|---|
void |
addImportTransport(java.lang.String transportName)
Add a new import transport to the list of transports this destination
imports messages from.
|
boolean |
areBridgeTargetsInherited()
Deprecated.
This method has been misnamed and replaced
by
isBridgeTargetsInherited() . |
boolean |
areImportTransportsInherited()
Deprecated.
This method has been misnamed and replaced
by
isImportTransportsInherited() . |
long |
connectionID()
Get a temporary destination's connection ID.
|
BridgeTarget[] |
getBridgeTargets()
Get the target destinations that this destination bridges to.
|
int |
getConsumerCount()
Get the number of consumers for this destination.
|
java.lang.String |
getDescription()
Deprecated.
As of release 4.4 because destinations never had a
description property
|
long |
getExpiryOverride()
Get the expiry override for this destination.
|
long |
getFlowControlMaxBytes()
Get the volume of pending messages (in bytes) at which flow control is
enabled for this destination.
|
java.lang.String[] |
getImportTransports()
Get the names of the transports that this destination imports messages
from.
|
StatData |
getInboundStatistics()
Get inbound statistics for this destination.
|
java.lang.String[] |
getJNDINames()
Get the array of JNDI names for this destination.
|
long |
getMaxBytes()
Get the maximum number of message bytes that the server will store for pending messages
bound for this destination.
|
long |
getMaxMsgs()
Get the maximum number of messages that the server will store for pending
messages bound for this destination.
|
byte |
getMsgTrace()
Indicates whether message tracing is enabled for this destination and,
if it is enabled, what is to be traced.
|
java.lang.String |
getName()
Get the name of this destination.
|
StatData |
getOutboundStatistics()
Get outbound statistics for this destination.
|
int |
getOverflowPolicy()
Get the overflow policy for this destination.
|
long |
getPendingMessageCount()
Get the total number of pending messages for this destination.
|
long |
getPendingMessageSize()
Get the total size for all pending messages for this destination.
|
long |
getPendingPersistentMessageCount()
Get the total number of pending messages for this destination that were
sent persistently.
|
long |
getPendingPersistentMessageSize()
Get the total size for all pending messages for this destination that
were sent persistently.
|
int |
getPrefetch()
Get the number of messages prefetched by the EMS client from the server
to improve efficiency.
|
long |
getRedeliveryDelay()
Get the redelivery delay for this queue.
|
java.lang.String |
getStore()
Get the store for this destination.
|
boolean |
isBridgeTargetsInherited()
Determines if the list of targets was inherited from a parent
destination or whether it was set on the destination directly.
|
boolean |
isExpiryOverrideInherited()
Determine if the expiry override property was inheritied from a parent destination or set directly for this
destination.
|
boolean |
isFailsafe()
Determine if this destination is failsafe.
|
boolean |
isFailsafeInherited()
Determine if the failsafe property was inheritied from a parent destination or set directly for this destination.
|
boolean |
isFlowControlMaxBytesInherited()
Determine if the flowControlMaxBytes property was inheritied from a
parent destination or set directly for this destination.
|
boolean |
isGlobal()
Determine if this destination is global.
|
boolean |
isGlobalInherited()
Determine if the global property was inheritied from a parent destination or set directly for this destination.
|
boolean |
isImportTransportsInherited()
Determines if the list of transports this destination imports messages
from was inherited from a parent destination or whether it was set on
the destination directly.
|
boolean |
isMaxBytesInherited()
Determine if the maxBytes property was inheritied from a parent destination or set directly for this destination.
|
boolean |
isMaxMsgsInherited()
Determine if the maxMsgs property was inheritied from a parent destination
or set directly for this destination.
|
boolean |
isMsgTraceInherited()
Determine if the message trace property was inheritied from a parent
destination or set directly for this destination.
|
boolean |
isOverflowPolicyInherited()
Determine if the overflow property was inheritied from a parent destination
or set directly for this destination.
|
boolean |
isPrefetchInherited()
Determine if the prefetch setting for this dest is inherited from a parent dest.
|
boolean |
isRedeliveryDelayInherited()
Determine if the redelivery delay property was inheritied from a parent
queue or set directly for this queue.
|
boolean |
isSecure()
Determine if this destination is secure.
|
boolean |
isSecureInherited()
Determine if the secure property was inheritied from a parent destination or set directly for this destination.
|
boolean |
isSenderName()
Indicates whether or not the sender_name property is set on this destionation.
|
boolean |
isSenderNameEnforced()
Indicates whether or not the sender_name_enforced property is set on this destination.
|
boolean |
isSenderNameEnforcedInherited()
Indicates whether or not the sender_name_enforced is inherited.
|
boolean |
isSenderNameInherited()
Indicates whether or not the sender_name property is inherited.
|
boolean |
isStatic()
Determine if this destination is static.
|
boolean |
isStoreInherited()
Determine if the store property was inherited from a parent destination
or set directly for this destination.
|
boolean |
isTemporary()
Determine if this destination is temporary.
|
void |
removeImportTransport(java.lang.String transportName)
Remove an import transport from the list of transports this destination
imports messages from.
|
void |
setDescription(java.lang.String description)
Deprecated.
As of release 4.4 because destinations never had a
description property
|
void |
setExpiryOverride(long expiry)
Set the expiry override for this destination.
|
void |
setFailsafe(boolean failsafe)
Set the failsafe property of this destination.
|
void |
setFlowControlMaxBytes(long fcBytes)
Set the volume of pending messages (in bytes) at which flow control
will be enabled for this destination.
|
void |
setGlobal(boolean global)
Set the global property of this destination.
|
void |
setMaxBytes(long maxBytes)
Set the maximum number of message bytes that the server will store for pending messages
bound for this destination.
|
void |
setMaxMsgs(long maxMsgs)
Set the maximum number of messages that the server will store for pending
messages bound for this destination.
|
void |
setMsgTrace(byte trace)
Set the level of message tracing for this destination.
|
void |
setOverflowPolicy(int overflow)
Set the overflow policy for this destination.
|
void |
setPrefetch(int prefetch)
Set the number of messages prefetched by the consumers of this destination.
|
void |
setRedeliveryDelay(long delay)
Set the redelivery delay for this queue.
|
void |
setSecure(boolean secure)
Set the secure property of this destination.
|
void |
setSenderName(boolean senderName)
Set sender_name property.
|
void |
setSenderNameEnforced(boolean senderNameEnforced)
Set sender_name_enforced property.
|
void |
setStore(java.lang.String store)
Set the store for this destination.
|
java.lang.String |
statString()
Helper method that generates the statistical information in the form of a string.
|
public static final int ALL_TYPE
public static final int QUEUE_TYPE
public static final int TOPIC_TYPE
public static final byte MSG_TRACE_NONE
public static final byte MSG_TRACE_BASIC
public static final byte MSG_TRACE_DETAIL
public static final int OVERFLOW_DEFAULT
public static final int OVERFLOW_DISCARD_OLD
public static final int OVERFLOW_REJECT_INCOMING
OVERFLOW_DEFAULT
.
For topics, the sender will receive an error if any of the subscribers
for the topics has exceeded either their maxbytes limit or their maxmsgs
limit.public static final int PREFETCH_NONE
public static final int PREFETCH_DEFAULT
public static final int DEST_GET_STATIC
public static final int DEST_GET_DYNAMIC
public static final int DEST_GET_NOTEMP
public static final int DEST_GET_ALL
public java.lang.String[] getJNDINames()
public java.lang.String getName()
@Deprecated public java.lang.String getDescription()
@Deprecated public void setDescription(java.lang.String description)
description
- the description for this destination.public boolean isFailsafe()
public void setFailsafe(boolean failsafe)
failsafe
- true if this destination should be failsafe.public boolean isFailsafeInherited()
public boolean isSecure()
public void setSecure(boolean secure)
secure
- true if this destination should be secure.public boolean isSecureInherited()
public boolean isGlobal()
public void setGlobal(boolean global)
global
- true if this destination should be global.public boolean isGlobalInherited()
public int getPrefetch()
public boolean isPrefetchInherited()
public void setPrefetch(int prefetch)
prefetch
- the number of messages consumers prefetch for this destinationjava.lang.IllegalArgumentException
- if PREFETCH_NONE specified for topic or routed queue.public java.lang.String[] getImportTransports()
@Deprecated public boolean areImportTransportsInherited()
isImportTransportsInherited()
.public boolean isImportTransportsInherited()
public void addImportTransport(java.lang.String transportName) throws TibjmsAdminInvalidNameException
transportName
- the name of the transport.TibjmsAdminInvalidNameException
- if transportName is not a legal
transport namepublic void removeImportTransport(java.lang.String transportName) throws TibjmsAdminInvalidNameException, TibjmsAdminException
transportName
- the name of the transport.TibjmsAdminInvalidNameException
- if transportName is not a legal
transport nameTibjmsAdminException
- if import transports is inheritedpublic BridgeTarget[] getBridgeTargets()
@Deprecated public boolean areBridgeTargetsInherited()
isBridgeTargetsInherited()
.public boolean isBridgeTargetsInherited()
public boolean isSenderName()
public void setSenderName(boolean senderName)
senderName
- name of sender.public boolean isSenderNameInherited()
public boolean isSenderNameEnforced()
public void setSenderNameEnforced(boolean senderNameEnforced)
senderNameEnforced
- true if the property is to be set, false otherwise.public boolean isSenderNameEnforcedInherited()
public long getMaxBytes()
public void setMaxBytes(long maxBytes)
maxBytes
- the maximum number of message bytes the server should store bound for this destination.public boolean isMaxBytesInherited()
public long getMaxMsgs()
public void setMaxMsgs(long maxMsgs)
maxMsgs
- the maximum number of messages the server should store
bound for this destination.public boolean isMaxMsgsInherited()
public int getOverflowPolicy()
OVERFLOW_DEFAULT
, OVERFLOW_DISCARD_OLD
or
OVERFLOW_REJECT_INCOMING
.public void setOverflowPolicy(int overflow) throws java.lang.IllegalArgumentException
OVERFLOW_DEFAULT
, OVERFLOW_DISCARD_OLD
and
OVERFLOW_REJECT_INCOMING
.overflow
- the overflow policy for this destination.java.lang.IllegalArgumentException
- if overflow is invalid.public boolean isOverflowPolicyInherited()
public java.lang.String getStore()
public boolean isStoreInherited()
public void setStore(java.lang.String store)
store
- the store for this destination.java.lang.IllegalArgumentException
- if store is null or emptypublic byte getMsgTrace()
public void setMsgTrace(byte trace) throws java.lang.IllegalArgumentException
trace
- a byte representing the desired level of message tracing
for this destination.java.lang.IllegalArgumentException
- if trace is invalid.public boolean isMsgTraceInherited()
public long getFlowControlMaxBytes()
public void setFlowControlMaxBytes(long fcBytes)
fcBytes
- the volume of messages (in bytes) that the server
should store for this destination before enabling flow control. Set the
value to zero to cancel the current value.public boolean isFlowControlMaxBytesInherited()
public boolean isStatic()
public boolean isTemporary()
public long connectionID() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if destination is not temporary.public long getPendingMessageCount()
public long getPendingMessageSize()
public long getPendingPersistentMessageCount()
public long getPendingPersistentMessageSize()
public int getConsumerCount()
public StatData getInboundStatistics()
public StatData getOutboundStatistics()
public long getExpiryOverride()
public void setExpiryOverride(long expiry)
expiry
- the expiration time in milliseconds.public boolean isExpiryOverrideInherited()
public long getRedeliveryDelay()
public void setRedeliveryDelay(long delay)
delay
- the redelivery delay in milliseconds.public boolean isRedeliveryDelayInherited()
public java.lang.String statString()
Copyright © Cloud Software Group, Inc. All rights reserved