public class Helper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTEXTUALIZE_ID
Used for ids which are defined generically and should consider the
thread-stacked context id (if present).
|
static java.lang.String |
EXCLUDED_ID
Defines the internal id for explicitly monitoring excluded parts.
|
static java.lang.String |
IGNORE_ID
Currently used for abstract classes ("*").
|
static java.lang.String |
PROGRAM_ID
Defines the internal id for recording the monitored program itself.
|
static java.lang.String |
PSEUDO_ID_PREFIX
Defines the prefix for internally created ids ("*pseudo").
|
static java.lang.String |
RECORDER_ID
Defines the internal id for overhead monitoring, i.e. monitoring the
monitoring framework itself.
|
| Modifier | Constructor and Description |
|---|---|
private |
Helper()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
createPseudo(int id)
Returns a pseudo id.
|
static java.lang.String |
getCheckedId(java.lang.String recId)
Checks the ID (for ignored ids) and returns the id (or a modified return
value).
|
static boolean |
ignore(Monitor group)
Returns if this annotation should be ignored.
|
static boolean |
ignore(java.lang.String recId)
Returns if
recId should be ignored. |
static boolean |
isContextualizeId(java.lang.String id)
Returns if the given id requires contextualization.
|
static boolean |
isId(Monitor group,
java.lang.String recId)
Returns if the given
recId is equal to the (first and only)
recorder id in group. |
static boolean |
isPseudo(java.lang.String recId)
Returns whether the given
recId is a pseudo id. |
static java.lang.String |
trimId(java.lang.String recId)
Trims the recording id, i.e. removes leading and trailing spaces.
|
public static final java.lang.String RECORDER_ID
public static final java.lang.String EXCLUDED_ID
public static final java.lang.String PSEUDO_ID_PREFIX
public static final java.lang.String PROGRAM_ID
public static final java.lang.String IGNORE_ID
public static final java.lang.String CONTEXTUALIZE_ID
private Helper()
public static boolean ignore(Monitor group)
group - the annotation to be testedtrue if it should be ignored, false
elsepublic static boolean isId(Monitor group, java.lang.String recId)
recId is equal to the (first and only)
recorder id in group.group - the group to be taken into accountrecId - the recorder id to test fortrue if equals, false elsepublic static boolean isPseudo(java.lang.String recId)
recId is a pseudo id.recId - the id to be testedtrue if recId is a pseudo id,
false elsepublic static java.lang.String createPseudo(int id)
id - a numeric idpublic static boolean ignore(java.lang.String recId)
recId should be ignored.recId - the id to be testedtrue if it should be ignored, false
elsepublic static boolean isContextualizeId(java.lang.String id)
id - the id to be checkedtrue if it is an id which requires
contextualization, false elsepublic static java.lang.String getCheckedId(java.lang.String recId)
recId - the recording identification to be checkedrecId or null in case that it
should be ignoredpublic static java.lang.String trimId(java.lang.String recId)
recId - the recording id (may be null)