public class Metrics
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
long |
emptyCount
Total number of empty messages received
|
long |
messageCount
Total number of messages received
|
long |
messageSize
Total size of message objects received
|
java.lang.String |
serviceID
Unique ID for the service
|
java.lang.String |
serviceType
The service type
|
| Constructor and Description |
|---|
Metrics()
Create a new instance of Metrics
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMetrics(java.lang.Object messageObj)
Add metrics to the values.
|
static Metrics |
createMetrics(ServiceModule service)
Create and return an initialised metrics object.
|
public java.lang.String serviceID
public java.lang.String serviceType
public long messageCount
public long emptyCount
public long messageSize
public void addMetrics(java.lang.Object messageObj)
messageObj - message object to analyse.public static Metrics createMetrics(ServiceModule service)
service - the service to initialise the metrics with.