public interface DestinationMBean extends AgentMBean
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the destination.
|
String |
getCreationDate()
Returns this destination creation time through a
String of
the form: dow mon dd hh:mm:ss zzz yyyy . |
long |
getCreationTimeInMillis()
Returns this destination creation time as a long.
|
String |
getDestinationId()
Returns the unique identifier of the destination.
|
String |
getDMQId()
Return the unique identifier of DMQ set for this destnation if any.
|
String |
getName()
Returns the name of the destination.
|
long |
getNbMsgsDeliverSinceCreation()
Returns the number of messages delivered since creation time of this
destination.
|
long |
getNbMsgsReceiveSinceCreation()
Returns the number of messages received since creation time of this
destination.
|
long |
getNbMsgsSentToDMQSinceCreation()
Returns the number of erroneous messages forwarded to the DMQ since
creation time of this destination.
|
long |
getPeriod()
Returns the period value of this destination, -1 if not set.
|
String |
getRight(String userid)
Returns a string representation of rights set on this destination for a
particular user.
|
String[] |
getRights()
Returns a string representation of all rights set on this destination.
|
byte |
getType()
Returns the type of this destination: Queue or Topic.
|
boolean |
isFreeReading()
Tests if this destination is free for reading.
|
boolean |
isFreeWriting()
Tests if this destination is free for writing.
|
void |
setFreeReading(boolean on)
Sets the
FreeReading attribute for this destination. |
void |
setFreeWriting(boolean on)
Sets the
FreeWriting attribute for this destination. |
void |
setPeriod(long period)
Sets or unsets the period for this destination.
|
String |
toString()
Returns a string representation of this destination.
|
getAgentId, getCommitTime, getReactNb, getReactTime, isAgentProfiling, isFixed, resetCommitTime, resetReactTime, resetTimer, setAgentProfiling
String toString()
toString
in interface AgentMBean
toString
in class Object
String getName()
getName
in interface AgentMBean
String getDestinationId()
byte getType()
DestinationConstants.TOPIC_TYPE
,
DestinationConstants.QUEUE_TYPE
,
DestinationConstants.TEMPORARY
boolean isFreeReading()
void setFreeReading(boolean on)
FreeReading
attribute for this destination.on
- if true anyone can receive message from this destination.boolean isFreeWriting()
void setFreeWriting(boolean on)
FreeWriting
attribute for this destination.on
- if true anyone can send message to this destination.String[] getRights()
String getRight(String userid)
userid
- The user's unique identifier.String getDMQId()
long getCreationTimeInMillis()
String getCreationDate()
String
of
the form: dow mon dd hh:mm:ss zzz yyyy
.long getNbMsgsReceiveSinceCreation()
long getNbMsgsDeliverSinceCreation()
long getNbMsgsSentToDMQSinceCreation()
long getPeriod()
void setPeriod(long period)
period
- The period value to be set or -1 for unsetting previous value.void delete()
delete
in interface AgentMBean
Copyright © 2019 ScalAgent D.T.. All rights reserved.