|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.actions.converters.SmooksMessageCounter
public class SmooksMessageCounter
Smooks message counter is a MBean that displays shows how many failed and successful messages have been processed and shows the processing time of each.
| Field Summary | |
|---|---|
static java.lang.String |
RESET_COUNTER
|
static java.lang.String |
TRANSFORM_FAILED
|
static java.lang.String |
TRANSFORM_SUCCEED
|
| Constructor Summary | |
|---|---|
SmooksMessageCounter(ConfigTree f_config)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String key)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] arg0)
|
javax.management.MBeanInfo |
getMBeanInfo()
This creates the MBeanInfo object provided. |
protected javax.management.ObjectName |
getObjectName()
Return the object name, which for a SmooksMessageCounter is the deployment name (x.esb) and the category (SmooksMessageCounter). |
void |
incrementTotalCount()
Increment the total message count of this service. |
void |
initHashes()
Initialize the hashes by setting the counts and the processing time to an initial value of 0. |
void |
initMessageProfile(java.lang.String messageProfile)
Initialize the message profile with a count of 0 for the time hash, the processed hash, and the failed hash. |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] arg1,
java.lang.String[] arg2)
|
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 |
setAttribute(javax.management.Attribute arg0)
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList arg0)
|
void |
update(long procTime,
java.lang.String messageProfile,
java.lang.String status)
Update the counts of the SmooksMessageCounter for a particular message profile. |
| 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 TRANSFORM_SUCCEED
public static final java.lang.String TRANSFORM_FAILED
public static final java.lang.String RESET_COUNTER
| Constructor Detail |
|---|
public SmooksMessageCounter(ConfigTree f_config)
f_config - config tree| Method Detail |
|---|
public void incrementTotalCount()
public void initHashes()
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.DynamicMBeanjavax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionExceptionpublic 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.DynamicMBeanjavax.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.DynamicMBeanjavax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionExceptionpublic javax.management.AttributeList setAttributes(javax.management.AttributeList arg0)
setAttributes in interface javax.management.DynamicMBeanprotected void registerMBean()
public void initMessageProfile(java.lang.String messageProfile)
messageProfile - message profile
public void update(long procTime,
java.lang.String messageProfile,
java.lang.String status)
procTime - timemessageProfile - profilestatus - statusprotected javax.management.ObjectName getObjectName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||