|
Copyright @ 2001 SAP. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An implementation of this interface has to be provided to JARM via
JarmRegistration.registerPartner. The methods below are called
when a new request is started, the current request is ended, a component
inside of a request is started or a component is ended. Be aware that
the methods could be called in parallel by different threads.
One request belongs to one thread.
It is guaranteed that the sequence calls is consistent:
this means no parent
component is closed before all child components are closed;
all components are closed before the request ends; no component is
closed which was not started; no request is closed which was
not started; only within start- and endRequest brackets
component calls can be done
| Field Summary | |
static int |
LEVELBASIC
level: basic (default) |
static int |
LEVELDETAIL
level: detail |
static int |
LEVELMEDIUM
level: medium |
| Method Summary | |
java.lang.Object |
endComponent(java.lang.Object ctx,
java.lang.String reqName,
java.lang.String compName,
boolean generated)
method called when a component is ended; instrumentation errors of the JARM API (missing endComponent calls) are repaired by JARM by generating artificial endComponent calls; example: application issues startComponent "A", startComponent "B", endComponent "A" the listener gets endComponent "B" with generated = true right before endComponent "A"; in fact it is unknown when component "B" has really ended, but the listener could simply manage the component hierarchy by a stack |
java.lang.Object |
endRequest(java.lang.Object ctx,
java.lang.String reqName)
method called when the current request is ended |
void |
startComponent(java.lang.Object ctx,
java.lang.String reqName,
java.lang.String compName)
method called when a new component is started |
java.lang.Object |
startRequest(IMonitor mon,
java.lang.String reqName,
int detailLevel)
method called when a new request is started |
| Field Detail |
public static final int LEVELBASIC
public static final int LEVELMEDIUM
public static final int LEVELDETAIL
| Method Detail |
public java.lang.Object startRequest(IMonitor mon,
java.lang.String reqName,
int detailLevel)
mon - monitor object of the requestreqName - name of requestdetailLevel - detail level, with which the request is executed
(LEVELBASIC, LEVELMEDIUM, LEVELDETAIL);
the higher the level is the more components are measured
in the request according to the instrumentation;
the listener could use this parameter too to gather more
information;
in 6.20 this parameter is always LEVELBASIC
public java.lang.Object endRequest(java.lang.Object ctx,
java.lang.String reqName)
ctx - context object returned by startRequestreqName - name of request
public void startComponent(java.lang.Object ctx,
java.lang.String reqName,
java.lang.String compName)
ctx - context object returned by startRequestreqName - name of requestcompName - name of component
public java.lang.Object endComponent(java.lang.Object ctx,
java.lang.String reqName,
java.lang.String compName,
boolean generated)
ctx - context object returned by startRequestreqName - name of requestcompName - name of componentgenerated - true <-> this call is generated by JARM because there is an
instrumentation error made by the application
|
Copyright @ 2001 SAP. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||