|
Copyright @ 2001 SAP. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sap.util.monitor.jarm.TaskMonitor
The class TaskMonitor provides all the methods you need to get your JAVA code monitored.
There is a static methods ( getRequestMonitor ) to get
a monitoring object. TaskMonitor implements the API specified by
com.sap.util.monitor.jarm.IMonitor to pass information to the
monitor object.
IMonitor| Method Summary | |
void |
compAction(int compLevel,
java.lang.String compName,
java.lang.String action)
Indicates a specific action of a component. The method is executed only if compLevel is lower or equal the current component monitoring level. |
void |
compAction(java.lang.String compName,
java.lang.String action)
Indicates a specific action of a component. Component monitor level = 0 (ConfMonitor.COMPLEVELBASIC) |
void |
endComponent(int compLevel,
java.lang.String compName)
Indicates the end of a component. The method is executed only if compLevel is lower or equal the current component monitoring level. |
void |
endComponent(int compLevel,
java.lang.String compName,
int dataLength)
same functionality than endComponent(String); additionally the amount of data which is returned by the component is provided. The method is executed only if compLevel is lower or equal the current component monitoring level. |
void |
endComponent(int compLevel,
java.lang.String compName,
int dataLength,
java.lang.Object compProps)
same functionality than endComponent(String, int); additionally component specific properties are provided. the component specific properties could only be handled if the parameter jarm/comp/properties/switch=on (default) and if there is there is an implementation of ICompProperties for this component provided The method is executed only if compLevel is lower or equal the current component monitoring level. |
void |
endComponent(int compLevel,
java.lang.String compName,
java.lang.Object compProps)
same functionality than endComponent(String); additionally component specific properties are provided. the component specific properties could only be handled if the parameter jarm/comp/properties/switch=on (default) and if there is there is an implementation of ICompProperties for this component provided. The method is executed only if compLevel is lower or equal the current component monitoring level. |
void |
endComponent(java.lang.String compName)
Indicates the end of a component. Component monitor level = 0 (ConfMonitor.COMPLEVELBASIC) |
void |
endComponent(java.lang.String compName,
int dataLength)
same functionality than endComponent(String); additionally the amount of data which is returned by the component is provided Component monitor level = 0 (ConfMonitor.COMPLEVELBASIC) |
void |
endComponent(java.lang.String compName,
int dataLength,
java.lang.Object compProps)
same functionality than endComponent(String, int); additionally component specific properties are provided the component specific properties could only be handled if the parameter jarm/comp/properties/switch=on (default) and if there is there is an implementation of ICompProperties for this component provided Component monitor level = 0 (ConfMonitor.COMPLEVELBASIC) |
void |
endComponent(java.lang.String compName,
java.lang.Object compProps)
same functionality than endComponent(String); additionally component specific properties are provided the component specific properties could only be handled if the parameter jarm/comp/properties/switch=on (default) and if there is there is an implementation of ICompProperties for this component provided Component monitor level = 0 (ConfMonitor.COMPLEVELBASIC) |
RequestOverview |
endRequest(int retOverview,
java.lang.String reqName)
same functionality than endRequest(reqName); additionally the collected data for the request is returned if retOverview not equal ConfMonitor.REQOVERVIEWNONE |
RequestOverview |
endRequest(int retOverview,
java.lang.String reqName,
int dataLength)
same functionality than endRequest(String reqName, int dataLength); additionally the collected data for the request is returned |
void |
endRequest(java.lang.String reqName)
if the name of the current request is identical to reqName the request is closed; otherwise the call is skipped. |
void |
endRequest(java.lang.String reqName,
int dataLength)
same functionality than endRequest(String reqName); additionally the amount of data which is returned by the request is provided |
int |
getComponentLevel()
The component level for the request is returned. |
boolean |
getMonitorSwitch()
Indicates whether monitoring is switched on or off for this request |
java.lang.String |
getReqName()
Delivers the name of the request |
long |
getReqTS()
Delivers the start timestamp of the request |
static IMonitor |
getRequestMonitor(java.lang.String userName,
java.lang.String reqName)
Returns the monitor object of the current thread (created by a former getRequestMonitor() call); if there was not such a call a new monitoring object is created (userName and reqName is only used in this case); It is recommended to pass a monitor object through other layers of the application because this would save getRequestMonitor() calls; |
boolean |
getTraceSwitch()
Indicates whether tracing is switched on or off for this request |
java.lang.String |
getUser()
Delivers the user name of the request |
boolean |
isJarmActiveForRequest()
Indicates whether monitoring or tracing is switched on or off for this request |
void |
setComponentLevel(int compLevel)
The component monitor level for the request is set. The level could only be set right at the beginning of a request before the first component is started. |
void |
setDescription(java.lang.String descr)
Set description for request (text string); if the description is already set for the request it could not be overwritten |
void |
setUser(java.lang.String userName)
If the user name was not known when the request was started it could be set by this call afterwards; if a user name is already bound to the request the call is skipped |
void |
startComponent(int compLevel,
java.lang.String compName)
Indicates the start of a component. The method is executed only if compLevel is lower or equal the current component monitoring level. |
void |
startComponent(java.lang.String compName)
Indicates the start of a component. Component monitor level = 0 (ConfMonitor.COMPLEVELBASIC) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static IMonitor getRequestMonitor(java.lang.String userName,
java.lang.String reqName)
It is recommended to pass a monitor object through other layers of the application because this would save getRequestMonitor() calls;
userName - user name.reqName - logical name of the request.public void endRequest(java.lang.String reqName)
endRequest in interface IMonitorreqName - logical name of the request
public void endRequest(java.lang.String reqName,
int dataLength)
endRequest in interface IMonitorreqName - logical name of the requestdataLength - amount of data in bytes which is returned from
requestendRequest(String)
public RequestOverview endRequest(int retOverview,
java.lang.String reqName)
endRequest in interface IMonitorretOverview - ConfMonitor.REQOVERVIEWALL
<-> return all collected monitoring data;
ConfMonitor.REQOVERVIEWNONE
<-> 'null' is returned
ConfMonitor.REQOVERVIEWHEADER
<-> only heeader information is returned, but
no data about tasks or single componentsreqName - logical name of the requestendRequest(String)
public RequestOverview endRequest(int retOverview,
java.lang.String reqName,
int dataLength)
endRequest in interface IMonitorretOverview - ConfMonitor.REQOVERVIEWALL
<-> return all collected monitoring data;
ConfMonitor.REQOVERVIEWNONE
<-> 'null' is returned
ConfMonitor.REQOVERVIEWHEADER
<-> only heeader information is returned, but
no data about tasks or single componentsreqName - logical name of the requestdataLength - amount of data in bytes which is returned from
requestendRequest(String, int)public void startComponent(java.lang.String compName)
startComponent in interface IMonitorcompName - logical name of the current component.
public void startComponent(int compLevel,
java.lang.String compName)
startComponent in interface IMonitorcompLevel - component monitor level; 0 (ConfMonitor.COMPLEVELBASIC),
1 (ConfMonitor.COMPLEVELMEDIUM),
2 (ConfMonitor.COMPLEVELDETAIL.compName - logical name of the current component.public void endComponent(java.lang.String compName)
endComponent in interface IMonitorcompName - logical name of the current component.
public void endComponent(java.lang.String compName,
int dataLength)
endComponent in interface IMonitordataLength - amount of data in bytes which is returned by the
componentendComponent(String)
public void endComponent(java.lang.String compName,
java.lang.Object compProps)
endComponent in interface IMonitorcompName - logical name of the current component.compProps - component specific properties
public void endComponent(java.lang.String compName,
int dataLength,
java.lang.Object compProps)
endComponent in interface IMonitorcompName - logical name of the current component.dataLength - amount of data in bytes which is returned by the
componentcompProps - component specific properties
public void endComponent(int compLevel,
java.lang.String compName)
endComponent in interface IMonitorcompLevel - component monitor level; 0 (ConfMonitor.COMPLEVELBASIC),
1 (ConfMonitor.COMPLEVELMEDIUM),
2 (ConfMonitor.COMPLEVELDETAIL.compName - logical name of the current component.
public void endComponent(int compLevel,
java.lang.String compName,
int dataLength)
endComponent in interface IMonitorcompLevel - component monitor level; 0 (ConfMonitor.COMPLEVELBASIC),
1 (ConfMonitor.COMPLEVELMEDIUM),
2 (ConfMonitor.COMPLEVELDETAIL.compName - logical name of the current component.dataLength - amount of data in bytes which is returned by the
componentendComponent(String)
public void endComponent(int compLevel,
java.lang.String compName,
java.lang.Object compProps)
endComponent in interface IMonitorcompLevel - component monitor level; 0 (ConfMonitor.COMPLEVELBASIC),
1 (ConfMonitor.COMPLEVELMEDIUM),
2 (ConfMonitor.COMPLEVELDETAIL.compName - logical name of the current component.compProps - component specific properties
public void endComponent(int compLevel,
java.lang.String compName,
int dataLength,
java.lang.Object compProps)
endComponent in interface IMonitorcompLevel - component monitor level; 0 (ConfMonitor.COMPLEVELBASIC),
1 (ConfMonitor.COMPLEVELMEDIUM),
2 (ConfMonitor.COMPLEVELDETAIL.compName - logical name of the current component.dataLength - amount of data in bytes which is returned by the
componentcompProps - component specific properties
public void compAction(java.lang.String compName,
java.lang.String action)
compAction in interface IMonitorcompName - logical name of the current component.action - action currently done by the component.
public void compAction(int compLevel,
java.lang.String compName,
java.lang.String action)
compAction in interface IMonitorcompLevel - component monitor level; 0 (ConfMonitor.COMPLEVELBASIC),
1 (ConfMonitor.COMPLEVELMEDIUM),
2 (ConfMonitor.COMPLEVELDETAIL.compName - logical name of the current component.action - action currently done by the component.public boolean isJarmActiveForRequest()
isJarmActiveForRequest in interface IMonitorpublic boolean getMonitorSwitch()
getMonitorSwitch in interface IMonitorpublic boolean getTraceSwitch()
getTraceSwitch in interface IMonitorpublic int getComponentLevel()
getComponentLevel in interface IMonitorpublic java.lang.String getUser()
getUser in interface IMonitorpublic java.lang.String getReqName()
getReqName in interface IMonitorpublic long getReqTS()
getReqTS in interface IMonitorpublic void setUser(java.lang.String userName)
setUser in interface IMonitoruserName - name of user who executes the requestpublic void setDescription(java.lang.String descr)
setDescription in interface IMonitordescr - descriptionpublic void setComponentLevel(int compLevel)
setComponentLevel in interface IMonitorcompLevel; - 0 (ConfMonitor.COMPLEVELBASIC),
1 (ConfMonitor.COMPLEVELMEDIUM),
2 (ConfMonitor.COMPLEVELDETAIL.
|
Copyright @ 2001 SAP. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||