Joram 5.2.1

org.objectweb.joram.mom.dest
Interface DestinationImplMBean

All Known Subinterfaces:
AdminTopicImplMBean, MonitoringTopicImplMBean, QueueImplMBean, TopicImplMBean
All Known Implementing Classes:
AdminTopicImpl, ClusterQueueImpl, DestinationImpl, JMSBridgeQueueImpl, JMSBridgeTopicImpl, MonitoringTopicImpl, QueueImpl, TopicImpl

public interface DestinationImplMBean


Method Summary
 java.lang.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.
 java.lang.String getDestinationId()
          Returns the unique identifier of the destination.
 java.lang.String getDMQId()
          Return the unique identifier of DMQ set for this destnation if any.
 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..
 java.lang.String getRight(java.lang.String userid)
          Returns a string representation of rights set on this destination for a particular user.
 java.lang.String[] getRights()
          Returns a string representation of all rights set on this destination.
 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.
 java.lang.String toString()
          Returns a string representation of this destination.
 

Method Detail

toString

java.lang.String toString()
Returns a string representation of this destination.

Overrides:
toString in class java.lang.Object

getDestinationId

java.lang.String getDestinationId()
Returns the unique identifier of the destination.

Returns:
the unique identifier of the destination.

isFreeReading

boolean isFreeReading()
Tests if this destination is free for reading.

Returns:
true if anyone can receive messages from this destination; false otherwise.

setFreeReading

void setFreeReading(boolean on)
Sets the FreeReading attribute for this destination.

Parameters:
on - if true anyone can receive message from this destination.

isFreeWriting

boolean isFreeWriting()
Tests if this destination is free for writing.

Returns:
true if anyone can send messages to this destination; false otherwise.

setFreeWriting

void setFreeWriting(boolean on)
Sets the FreeWriting attribute for this destination.

Parameters:
on - if true anyone can send message to this destination.

getRights

java.lang.String[] getRights()
Returns a string representation of all rights set on this destination.

Returns:
the rights set on this destination.

getRight

java.lang.String getRight(java.lang.String userid)
Returns a string representation of rights set on this destination for a particular user. The user is pointed out by its unique identifier.

Parameters:
userid - The user's unique identifier.
Returns:
the rights set on this destination.

getDMQId

java.lang.String getDMQId()
Return the unique identifier of DMQ set for this destnation if any.

Returns:
the unique identifier of DMQ set for this destnation if any; null otherwise.

getCreationTimeInMillis

long getCreationTimeInMillis()
Returns this destination creation time as a long.

Returns:
the destination creation time as UTC milliseconds from the epoch.

getCreationDate

java.lang.String getCreationDate()
Returns this destination creation time through a String of the form: dow mon dd hh:mm:ss zzz yyyy.

Returns:
the destination creation time.

getNbMsgsReceiveSinceCreation

long getNbMsgsReceiveSinceCreation()
Returns the number of messages received since creation time of this destination.

Returns:
the number of messages received since creation time.

getNbMsgsDeliverSinceCreation

long getNbMsgsDeliverSinceCreation()
Returns the number of messages delivered since creation time of this destination. It includes messages all delivered messages to a consumer, already acknowledged or not.

Returns:
the number of messages delivered since creation time.

getNbMsgsSentToDMQSinceCreation

long getNbMsgsSentToDMQSinceCreation()
Returns the number of erroneous messages forwarded to the DMQ since creation time of this destination..

Returns:
the number of erroneous messages forwarded to the DMQ.

Joram 5.2.1

Copyright © 2005 Scalagent - All rights reserved