|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.jboss.soa.esb.listeners.message.ServiceMessageCounter
public class ServiceMessageCounter
Service message counter is a MBean that displays an action-by-action breakdown of how many failed and successful messages have been processed and shows the processing time of each. Alert thresholds have also been added to this bean. There are thresholds on the size of the message as well as the length of the message for both services and for individual actions. The alerts will produce a log4j warning as well as provide for the option of JMX integration with other products.
Field Summary | |
---|---|
static java.lang.String |
ACTION_LENGTH_NOTIFICATION_TYPE
|
static java.lang.String |
ACTION_TIME_NOTIFICATION_TYPE
|
static java.lang.String |
RESET_COUNTER
|
static java.lang.String |
SERVICE_LENGTH_NOTIFICATION_TYPE
|
static java.lang.String |
SERVICE_TIME_NOTIFICATION_TYPE
|
Constructor Summary | |
---|---|
ServiceMessageCounter(ConfigTree f_config,
java.lang.String objectName)
Constructor |
Method Summary | |
---|---|
void |
alertAction(ActionStatusBean asb,
java.lang.String actionName)
|
void |
alertService(ActionStatusBean asb)
|
java.lang.Long |
getActionAlertLength()
Action alert length getter |
java.lang.Long |
getActionAlertTime()
Action alert time getter |
java.lang.Long |
getAlertLength()
Service alert length getter |
java.lang.Long |
getAlertTime()
Service alert time getter |
java.lang.Object |
getAttribute(java.lang.String key)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] arg0)
|
java.lang.String |
getDescription()
|
javax.management.MBeanInfo |
getMBeanInfo()
This creates the MBeanInfo object provided. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
|
protected javax.management.ObjectName |
getObjectName()
|
void |
incrementTotalCount()
Increment the total message count of this service. |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] arg1,
java.lang.String[] arg2)
|
boolean |
isAlertsEnabled()
|
protected void |
registerMBean()
Register this MBean with JBoss. |
void |
resetCounter()
Reset the counters - set all the entries in the action counter hash and in the action process time hash to zero. |
void |
setActionAlertLength(java.lang.Long alertLength)
Action alert length setter |
void |
setActionAlertTime(java.lang.Long alertTime)
Action alert time setter |
void |
setAlertLength(java.lang.Long alertLength)
Service alert length setter |
void |
setAlertTime(java.lang.Long alertTime)
Service alert time setter |
void |
setAttribute(javax.management.Attribute arg0)
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList arg0)
|
void |
setServiceDescription(java.lang.String serviceDescription)
|
protected void |
unregisterMBean()
Unregister this MBean with JBoss. |
void |
update(ActionStatusBean asb)
Update the ServiceMessageCounter |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVICE_LENGTH_NOTIFICATION_TYPE
public static final java.lang.String SERVICE_TIME_NOTIFICATION_TYPE
public static final java.lang.String ACTION_LENGTH_NOTIFICATION_TYPE
public static final java.lang.String ACTION_TIME_NOTIFICATION_TYPE
public static final java.lang.String RESET_COUNTER
Constructor Detail |
---|
public ServiceMessageCounter(ConfigTree f_config, java.lang.String objectName)
f_config
- config treeobjectName
- The name to use as the MBean.Method Detail |
---|
public java.lang.String getDescription()
public void setServiceDescription(java.lang.String serviceDescription)
public java.lang.Long getAlertTime()
public void setAlertTime(java.lang.Long alertTime)
alertTime
- max message size passing through service before an alert is firedpublic java.lang.Long getAlertLength()
public void setAlertLength(java.lang.Long alertLength)
alertLength
- max message processing time for the service before an alert is firedpublic java.lang.Long getActionAlertTime()
public void setActionAlertTime(java.lang.Long alertTime)
alertLength
- max time (ms) the action can take before an alert is fired.public java.lang.Long getActionAlertLength()
public void setActionAlertLength(java.lang.Long alertLength)
alertLength
- max message size passing through action before an alert is firedpublic void incrementTotalCount()
public void resetCounter()
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
public java.lang.Object getAttribute(java.lang.String key) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList getAttributes(java.lang.String[] arg0)
getAttributes
in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String method, java.lang.Object[] arg1, java.lang.String[] arg2) throws javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
javax.management.MBeanException
javax.management.ReflectionException
public void setAttribute(javax.management.Attribute arg0) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException
setAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList setAttributes(javax.management.AttributeList arg0)
setAttributes
in interface javax.management.DynamicMBean
protected void registerMBean()
protected void unregisterMBean()
public void alertService(ActionStatusBean asb)
public boolean isAlertsEnabled()
public void alertAction(ActionStatusBean asb, java.lang.String actionName)
public void update(ActionStatusBean asb)
asb
- ActionStatusBeanprotected javax.management.ObjectName getObjectName()
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
getNotificationInfo
in class javax.management.NotificationBroadcasterSupport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |