|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.profiler.ProfilerData
public class ProfilerData
Request-time profiler information.
Nested Class Summary | |
---|---|
static class |
ProfilerData.Entry
Entry, which stores the role and source of a component from a pipeline. |
Constructor Summary | |
---|---|
ProfilerData()
Create a new profiler dataset. |
Method Summary | |
---|---|
void |
addComponent(Object component,
String role,
String source)
Add new component from the pipeling, which should be measured. |
int |
getCount()
Returns the count of components. |
ProfilerData.Entry[] |
getEntries()
Returns all measured times. |
EnvironmentInfo |
getEnvironmentInfo()
Returns the environment information. |
long |
getKey(String uri)
Generate a key for a given URI for this pipeline |
long |
getProcessingTime(int index)
Get measured processing time of the i-th component of the pipeline. |
long |
getSetupTime(int index)
Get measured setup time of the i-th component of the pipeline. |
long |
getTotalTime()
Return measured time of precessing from the pipeline. |
void |
setEnvironmentInfo(EnvironmentInfo environmentinfo)
Set the environment information. |
void |
setProcessingTime(int index,
long time)
Set measured processing time of the i-th component of the pipeline. |
void |
setSAXFragment(int index,
Object fragment)
Set the SAX fragment for the i-th component of the pipeline. |
void |
setSetupTime(int index,
long time)
Set measured setup time of the i-th component of the pipeline. |
void |
setTotalTime(long time)
Set measured time of precessing from the pipeline. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfilerData()
Method Detail |
---|
public void addComponent(Object component, String role, String source)
component
- Component of the pipeline.role
- Role of the component.source
- Source attribute of the component.public int getCount()
public void setEnvironmentInfo(EnvironmentInfo environmentinfo)
environmentinfo
- Environment information.public EnvironmentInfo getEnvironmentInfo()
public void setTotalTime(long time)
time
- Total time of all components.public long getTotalTime()
public void setSetupTime(int index, long time)
index
- Index of the component.time
- Measured setup time of the component.public long getSetupTime(int index)
index
- Index of the component.
public void setProcessingTime(int index, long time)
index
- Index of the component.time
- Measured processing time of the component.public long getProcessingTime(int index)
index
- Index of the component.
public void setSAXFragment(int index, Object fragment)
index
- Index of the component.fragment
- SAX fragment of the component.public ProfilerData.Entry[] getEntries()
public long getKey(String uri)
uri
- URI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |