public abstract class ProcessingPerformanceCounter
extends java.lang.Object
| Constructor and Description |
|---|
ProcessingPerformanceCounter(java.lang.String elementName)
create new performance counters for given element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(java.lang.Throwable ex,
boolean isCritical)
Adds the error.
|
void |
countFailureMillis(long executionTime,
int incomingRecords,
int outgoingRecords)
Count a failed invocation.
|
void |
countFailureNanos(long executionTime,
int incomingRecords,
int outgoingRecords)
Count a failed invocation.
|
void |
countIds(int incomingRecords,
int outgoingRecords)
Count incoming and outgoing records separately.
|
void |
countInvocationMillis(long executionTime,
boolean success,
int incomingRecords,
int outgoingRecords)
count an invocation.
|
void |
countInvocationNanos(long executionTime,
boolean success,
int incomingRecords,
int outgoingRecords)
count an invocation in nano seconds.
|
void |
countSuccessMillis(long executionTime,
int incomingRecords,
int outgoingRecords)
count a successful invocation.
|
void |
countSuccessNanos(long executionTime,
int incomingRecords,
int outgoingRecords)
count a successful invocation in nanoseconds.
|
protected java.lang.String |
getElementName()
Gets the element name.
|
protected abstract java.lang.String |
getElementType()
Gets the element type.
|
abstract ManagementAgentLocation |
getLocation()
Gets the location.
|
protected void |
registerAgent()
Register.
|
java.lang.String |
toString() |
public ProcessingPerformanceCounter(java.lang.String elementName)
elementName - name of a element to measureprotected void registerAgent()
protected abstract java.lang.String getElementType()
protected java.lang.String getElementName()
public void countSuccessMillis(long executionTime,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in millisecondsincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing recordspublic void countSuccessNanos(long executionTime,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in nano secondsincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing recordspublic void countFailureMillis(long executionTime,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in millis secondsincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing recordspublic void countFailureNanos(long executionTime,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in nano secondsincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing recordspublic void countInvocationMillis(long executionTime,
boolean success,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in milli secondssuccess - true to count as success, false to count as failureincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing recordspublic void countInvocationNanos(long executionTime,
boolean success,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in nano secondssuccess - true to count as success, false to count as failureincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing recordspublic void countIds(int incomingRecords,
int outgoingRecords)
incomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing recordspublic void addError(java.lang.Throwable ex,
boolean isCritical)
ex - the exisCritical - the is criticalpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public abstract ManagementAgentLocation getLocation()