org.jboss.messaging.jms.server
Class MessageStatistics

java.lang.Object
  extended by org.jboss.messaging.jms.server.MessageStatistics
All Implemented Interfaces:
java.io.Serializable

public class MessageStatistics
extends java.lang.Object
implements java.io.Serializable

Message statistics

Version:
$Revision: 1.3 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
MessageStatistics()
          Construct a new Message Statistics
 
Method Summary
 java.lang.String getAsString()
          Get message data as string in format "Topic/Queue, Name, Subscription, Durable, Count, CountDelta, Depth, DepthDelta, Timestamp Last Increment"
 int getCount()
          Get the count.
 int getCurrentMessageCount()
           
 java.lang.String getName()
          Get the name.
 java.lang.String getSubscriptionID()
          Get the subscriptionID.
 long getTimeLastUpdate()
          Get the timeLastUpdate.
 int getTotalMessageCount()
           
 boolean isDurable()
          Get the durable.
 boolean isTopic()
          Get the topic.
 void setCount(int count)
          Set the count.
 void setCurrentMessageCount(int currentMessageCount)
           
 void setDurable(boolean durable)
          Set the durable.
 void setName(java.lang.String name)
          Set the name.
 void setSubscriptionID(java.lang.String subscriptionID)
          Set the subscriptionID.
 void setTimeLastUpdate(long timeLastUpdate)
          Set the timeLastUpdate.
 void setTopic(boolean topic)
          Set the topic.
 void setTotalMessageCount(int totalMessageCount)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageStatistics

public MessageStatistics()
Construct a new Message Statistics

Method Detail

getCount

public int getCount()
Get the count.

Returns:
Returns the count.

setCount

public void setCount(int count)
Set the count.

Parameters:
count - The count to set.

getTotalMessageCount

public int getTotalMessageCount()

setTotalMessageCount

public void setTotalMessageCount(int totalMessageCount)

isDurable

public boolean isDurable()
Get the durable.

Returns:
Returns the durable.

setDurable

public void setDurable(boolean durable)
Set the durable.

Parameters:
durable - The durable to set.

getName

public java.lang.String getName()
Get the name.

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Set the name.

Parameters:
name - The name to set.

getSubscriptionID

public java.lang.String getSubscriptionID()
Get the subscriptionID.

Returns:
Returns the subscriptionID.

setSubscriptionID

public void setSubscriptionID(java.lang.String subscriptionID)
Set the subscriptionID.

Parameters:
subscriptionID - The subscriptionID to set.

getTimeLastUpdate

public long getTimeLastUpdate()
Get the timeLastUpdate.

Returns:
Returns the timeLastUpdate.

setTimeLastUpdate

public void setTimeLastUpdate(long timeLastUpdate)
Set the timeLastUpdate.

Parameters:
timeLastUpdate - The timeLastUpdate to set.

getCurrentMessageCount

public int getCurrentMessageCount()

setCurrentMessageCount

public void setCurrentMessageCount(int currentMessageCount)

isTopic

public boolean isTopic()
Get the topic.

Returns:
Returns the topic.

setTopic

public void setTopic(boolean topic)
Set the topic.

Parameters:
topic - The topic to set.

getAsString

public java.lang.String getAsString()
Get message data as string in format "Topic/Queue, Name, Subscription, Durable, Count, CountDelta, Depth, DepthDelta, Timestamp Last Increment"

Returns:
String data as a string

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006 JBoss Inc. All Rights Reserved.