|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.soa.esb.listeners.message.MessageCounter
public class MessageCounter
MessageCounter is a MBean implementation which keeps track of message data and metadata.
Field Summary |
---|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
MessageCounter()
Constructor. |
Method Summary | |
---|---|
java.lang.Double |
getAverageSuccessTime()
Get the average time to process a message. |
int |
getFailedMessageCount()
Get the total number of failed messages. |
java.lang.String |
getLastFailedMessageDate()
Get the time the last message was processed at. |
java.lang.String |
getLastSuccessfulMessageDate()
Get the time the last message was processed at. |
int |
getSuccessfulMessageCount()
Get the total number of successfully processed messages. |
int |
getTotalMessageCount()
Get the total number of processed messages, both successful and failed. |
void |
resetCounts()
Reset the counts - this resets the totals and the last message time. |
void |
update(java.util.Observable o,
java.lang.Object arg)
Update the message counter based on the MessageStatusBean that is returned from the observable. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Constructor Detail |
---|
public MessageCounter()
Method Detail |
---|
public int getFailedMessageCount()
getFailedMessageCount
in interface MessageCounterMBean
public java.lang.String getLastSuccessfulMessageDate()
getLastSuccessfulMessageDate
in interface MessageCounterMBean
public java.lang.String getLastFailedMessageDate()
getLastFailedMessageDate
in interface MessageCounterMBean
public int getTotalMessageCount()
getTotalMessageCount
in interface MessageCounterMBean
public int getSuccessfulMessageCount()
getSuccessfulMessageCount
in interface MessageCounterMBean
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
o
- the observable objectarg
- the MessageStatusBeanpublic java.lang.Double getAverageSuccessTime()
getAverageSuccessTime
in interface MessageCounterMBean
public void resetCounts()
resetCounts
in interface MessageCounterMBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |