|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileConsumer
A profile consumer object is used to gather profiling data for a specific system or application component. Each profile consumer has a level associated with it, which determines how much data the consumer will gather.
Profile consumers are factories for profile counters, operations, and samples. These profiling data objects come in three varieties:
ProfileReport
ProfileCounter,
ProfileOperation,
ProfileSample| Nested Class Summary | |
|---|---|
static class |
ProfileConsumer.ProfileDataType
The valid types of profile operations, counters and samples that can be created with the profile data factory methods. |
| Method Summary | |
|---|---|
ProfileCounter |
createCounter(String name,
ProfileConsumer.ProfileDataType type,
ProfileCollector.ProfileLevel minLevel)
Creates the named counter in this consumer. |
ProfileOperation |
createOperation(String name,
ProfileConsumer.ProfileDataType type,
ProfileCollector.ProfileLevel minLevel)
Creates the named operation in this consumer. |
ProfileSample |
createSample(String name,
ProfileConsumer.ProfileDataType type,
ProfileCollector.ProfileLevel minLevel)
Creates the named sample collection in this consumer. |
String |
getName()
The profile consumer's unique name. |
ProfileCollector.ProfileLevel |
getProfileLevel()
Get the local profiling level for this consumer. |
void |
setProfileLevel(ProfileCollector.ProfileLevel level)
Set the local profiling level for this consumer. |
| Method Detail |
|---|
void setProfileLevel(ProfileCollector.ProfileLevel level)
ProfileCollector.setDefaultProfileLevel(ProfileLevel) will
override this value.
level - the profiling levelProfileCollector.ProfileLevel getProfileLevel()
ProfileCollector.getDefaultProfileLevel().
ProfileOperation createOperation(String name,
ProfileConsumer.ProfileDataType type,
ProfileCollector.ProfileLevel minLevel)
name,
type and minLevel, it is returned.
name - the name of the operationtype - the type of operation to createminLevel - the minimum level of profiling that must be set to report
this operation
ProfileOperation to note operations
IllegalArgumentException - if an operation has already been
created with this name but a different type
or minLevel
ProfileCounter createCounter(String name,
ProfileConsumer.ProfileDataType type,
ProfileCollector.ProfileLevel minLevel)
name,
type and minLevel, it is returned.
name - the name of the countertype - the type of counter to createminLevel - the minimum level of profiling that must be set to update
this counter
ProfileCounter
IllegalArgumentException - if a counter has already been
created with this name but a different type
or minLevel
ProfileSample createSample(String name,
ProfileConsumer.ProfileDataType type,
ProfileCollector.ProfileLevel minLevel)
name,
type, and minLevel, it is returned.
name - a name or description of the sample collectiontype - the type of sample collection to createminLevel - the minimum level of profiling that must be set to record
this sample
ProfileSample that collects long data
IllegalArgumentException - if a sample collection has already been
created with this name but a different type or
minLevelString getName()
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||