public class RouterStatistics extends Object implements Statistics
RouterStatistics
TODOModifier and Type | Field and Description |
---|---|
static int |
TYPE_BINDING |
static int |
TYPE_INBOUND |
static int |
TYPE_OUTBOUND |
static int |
TYPE_RESPONSE |
Constructor and Description |
---|
RouterStatistics(int type)
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
long |
getCaughtMessages() |
long |
getNotRouted() |
Map |
getRouted() |
long |
getRouted(String endpointName) |
long |
getTotalReceived() |
long |
getTotalRouted() |
void |
incrementCaughtMessage()
Increment no routed message
|
void |
incrementNoRoutedMessage()
Increment no routed message
|
void |
incrementRoutedMessage(Collection endpoints)
Increment routed message for multiple targets
|
void |
incrementRoutedMessage(Object endpoint)
Increment routed message for an endpoint
|
boolean |
isEnabled()
Are statistics logged
|
boolean |
isInbound() |
void |
logSummary() |
void |
logSummary(PrintWriter printer) |
void |
setEnabled(boolean b) |
public static final int TYPE_INBOUND
public static final int TYPE_OUTBOUND
public static final int TYPE_RESPONSE
public static final int TYPE_BINDING
public void clear()
public boolean isEnabled()
Statistics
isEnabled
in interface Statistics
Statistics.isEnabled()
public void logSummary()
public void logSummary(PrintWriter printer)
public void setEnabled(boolean b)
public void incrementRoutedMessage(Collection endpoints)
endpoints
- The endpoint collectionpublic void incrementRoutedMessage(Object endpoint)
endpoint
- The endpointpublic void incrementNoRoutedMessage()
public void incrementCaughtMessage()
public final long getCaughtMessages()
public final long getNotRouted()
public final long getTotalReceived()
public final long getTotalRouted()
public final long getRouted(String endpointName)
public boolean isInbound()
public Map getRouted()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.