Joram ${version}

org.objectweb.joram.mom.dest
Interface DestinationImplMBean

All Known Subinterfaces:
QueueImplMBean, TopicImplMBean
All Known Implementing Classes:
DestinationImpl, 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 getNbMsgsSendToDMQSinceCreation()
          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

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


getDestinationId

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

Returns:
the unique identifier of the destination.

isFreeReading

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

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

setFreeReading

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

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

isFreeWriting

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

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

setFreeWriting

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

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

getRights

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

Returns:
the rights set on this destination.

getRight

public 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

public 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

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

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

getCreationDate

public 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

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

Returns:
the number of messages received since creation time.

getNbMsgsDeliverSinceCreation

public 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.

getNbMsgsSendToDMQSinceCreation

public long getNbMsgsSendToDMQSinceCreation()
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 ${version}

Copyright © 2005 Scalagent - All rights reserved