org.mule.management.stats
Class ComponentStatistics

java.lang.Object
  extended byorg.mule.management.stats.ComponentStatistics
All Implemented Interfaces:
java.io.Serializable, Statistics

public class ComponentStatistics
extends java.lang.Object
implements Statistics

ComponentStatistics is used for capturing compenet event processing statistics that can be exposed via management services such as JMX.

Version:
$Revision: 1.2 $
Author:
Vanmeerhaeghe Stéphane , Ross Mason
See Also:
Serialized Form

Constructor Summary
ComponentStatistics(java.lang.String name, int componentPoolsize, int threadPoolSize)
          The constructor
 
Method Summary
 void addExecutionTime(long time)
           
 void clear()
           
 void decQueuedEvent()
           
 long getAsyncEventsReceived()
           
 long getAsyncEventsSent()
           
 long getAverageExecutionTime()
           
 long getAverageQueueSize()
           
 int getComponentPoolAbsoluteMaxSize()
           
 int getComponentPoolMaxSize()
           
 int getComponentPoolSize()
           
 long getExecutedEvents()
           
 long getExecutionErrors()
           
 long getFatalErrors()
           
 RouterStatistics getInboundRouterStat()
           
 long getMaxExecutionTime()
           
 long getMaxQueueSize()
           
 long getMinExecutionTime()
           
 java.lang.String getName()
           
 RouterStatistics getOutboundRouterStat()
           
 long getQueuedEvents()
           
 long getReplyToEventsSent()
           
 long getSamplePeriod()
           
 long getSyncEventsReceived()
           
 long getSyncEventsSent()
           
 int getThreadPoolSize()
           
 long getTotalEventsReceived()
           
 long getTotalEventsSent()
           
 long getTotalExecutionTime()
           
 void incExecutionError()
           
 void incFatalError()
           
 void incQueuedEvent()
           
 void incReceivedEventASync()
           
 void incReceivedEventSync()
           
 void incSentEventASync()
           
 void incSentEventSync()
           
 void incSentReplyToEvent()
           
 boolean isEnabled()
          Are statistics logged
 void logSummary()
          log in info level the main statistics
 void logSummary(java.io.PrintWriter printer)
           
 void setComponentPoolSize(int componentPoolSize)
           
 void setEnabled(boolean b)
          Enable statistics logs (this is a dynamic parameter)
 void setInboundRouterStat(RouterStatistics inboundRouterStat)
           
 void setName(java.lang.String name)
           
 void setOutboundRouterStat(RouterStatistics outboundRouterStat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentStatistics

public ComponentStatistics(java.lang.String name,
                           int componentPoolsize,
                           int threadPoolSize)
The constructor

Parameters:
name -
Method Detail

isEnabled

public boolean isEnabled()
Are statistics logged

Specified by:
isEnabled in interface Statistics

setEnabled

public void setEnabled(boolean b)
Enable statistics logs (this is a dynamic parameter)

Specified by:
setEnabled in interface Statistics

incReceivedEventSync

public void incReceivedEventSync()

incReceivedEventASync

public void incReceivedEventASync()

incExecutionError

public void incExecutionError()

incFatalError

public void incFatalError()

incSentEventSync

public void incSentEventSync()

incSentEventASync

public void incSentEventASync()

incSentReplyToEvent

public void incSentReplyToEvent()

incQueuedEvent

public void incQueuedEvent()

decQueuedEvent

public void decQueuedEvent()

addExecutionTime

public void addExecutionTime(long time)

getAverageExecutionTime

public long getAverageExecutionTime()

getAverageQueueSize

public long getAverageQueueSize()

getMaxQueueSize

public long getMaxQueueSize()

getMaxExecutionTime

public long getMaxExecutionTime()

getFatalErrors

public long getFatalErrors()

getMinExecutionTime

public long getMinExecutionTime()

getTotalExecutionTime

public long getTotalExecutionTime()

getQueuedEvents

public long getQueuedEvents()

getAsyncEventsReceived

public long getAsyncEventsReceived()

getSyncEventsReceived

public long getSyncEventsReceived()

getReplyToEventsSent

public long getReplyToEventsSent()

getSyncEventsSent

public long getSyncEventsSent()

getAsyncEventsSent

public long getAsyncEventsSent()

getTotalEventsSent

public long getTotalEventsSent()

getTotalEventsReceived

public long getTotalEventsReceived()

getExecutedEvents

public long getExecutedEvents()

getExecutionErrors

public long getExecutionErrors()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

logSummary

public void logSummary()
log in info level the main statistics

Specified by:
logSummary in interface Statistics

logSummary

public void logSummary(java.io.PrintWriter printer)

clear

public void clear()
Specified by:
clear in interface Statistics

getInboundRouterStat

public RouterStatistics getInboundRouterStat()
Returns:
Returns the inboundRouterStat.

setInboundRouterStat

public void setInboundRouterStat(RouterStatistics inboundRouterStat)
Parameters:
inboundRouterStat - The inboundRouterStat to set.

getOutboundRouterStat

public RouterStatistics getOutboundRouterStat()
Returns:
Returns the outboundRouterStat.

setOutboundRouterStat

public void setOutboundRouterStat(RouterStatistics outboundRouterStat)
Parameters:
outboundRouterStat - The outboundRouterStat to set.

getComponentPoolMaxSize

public int getComponentPoolMaxSize()

getComponentPoolAbsoluteMaxSize

public int getComponentPoolAbsoluteMaxSize()

getComponentPoolSize

public int getComponentPoolSize()

setComponentPoolSize

public void setComponentPoolSize(int componentPoolSize)

getThreadPoolSize

public int getThreadPoolSize()

getSamplePeriod

public long getSamplePeriod()


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.