|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.bpel.ProcessingPerformanceCounter
public abstract class ProcessingPerformanceCounter
Base class for performance counters used to measure processing performance. Manages three performance counters for number of invocations, average execution time and errors.
| Constructor Summary | |
|---|---|
ProcessingPerformanceCounter(java.lang.String elementName)
create new performance counters for given element. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessingPerformanceCounter(java.lang.String elementName)
elementName - name of a element to measure| Method Detail |
|---|
protected 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 records
public void countSuccessNanos(long executionTime,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in nano secondsincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing records
public void countFailureMillis(long executionTime,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in millis secondsincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing records
public void countFailureNanos(long executionTime,
int incomingRecords,
int outgoingRecords)
executionTime - time for execution in nano secondsincomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing records
public 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 records
public 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 records
public void countIds(int incomingRecords,
int outgoingRecords)
incomingRecords - the number of incoming recordsoutgoingRecords - the number of outgoing records
public 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()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||