public final class SignatureFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLONS
This constant contains the colons, which are used to separate the elements in the signature.
|
static char |
PATTERN_PREFIX
This constant contains the necessary prefix for patterns.
|
static java.lang.String |
PATTERN_PREFIX_CPU
Prefix of a cpu signature.
|
static java.lang.String |
PATTERN_PREFIX_DISK_USAGE
Prefix of a disk usage signature.
|
static java.lang.String |
PATTERN_PREFIX_JVM_CL
Prefix of a JVM class loading signature.
|
static java.lang.String |
PATTERN_PREFIX_JVM_COMPILATION
Prefix of a JVM compilation signature.
|
static java.lang.String |
PATTERN_PREFIX_JVM_GC
Prefix of a JVM garbage collector signature.
|
static java.lang.String |
PATTERN_PREFIX_JVM_MEM
Prefix of a JVM memory signature.
|
static java.lang.String |
PATTERN_PREFIX_JVM_THREADS
Prefix of a JVM threads signature.
|
static java.lang.String |
PATTERN_PREFIX_JVM_UP_TIME
Prefix of a JVM uptime signature.
|
static java.lang.String |
PATTERN_PREFIX_LOAD_AVERAGE
Prefix of a load average signature.
|
static java.lang.String |
PATTERN_PREFIX_MEM_SWAP
Prefix of a memory signature.
|
static java.lang.String |
PATTERN_PREFIX_NETWORK_UTILIZATION
Prefix of a network utilization signature.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createCPUSignature()
Creates a CPU signature.
|
static java.lang.String |
createCPUSignature(int cpuid)
Creates a cpu signature with a given cpu id.
|
static java.lang.String |
createDiskUsageSignature()
Creates a disk usage signature.
|
static java.lang.String |
createJVMClassLoadSignature()
Creates a JVM class loading signature.
|
static java.lang.String |
createJVMCompilationSignature()
Creates a JVM compilation signature.
|
static java.lang.String |
createJVMGarbageCollectorSignature()
Creates a JVM garbage collector signature.
|
static java.lang.String |
createJVMMemSignature()
Creates a JVM Mem signature.
|
static java.lang.String |
createJVMThreadsSignature()
Creates a JVM threads signature.
|
static java.lang.String |
createJVMUpTimeSignature()
Creates a JVM uptime signature.
|
static java.lang.String |
createLoadAverageSignature()
Creates a load average signature.
|
static java.lang.String |
createMemSwapSignature()
Creates a mem swap signature.
|
static java.lang.String |
createMethodSignature(java.lang.String[] modList,
java.lang.String retType,
java.lang.String fqName,
java.lang.String method,
java.lang.String[] params,
java.lang.String[] exceptions)
Creates a method signature.
|
static java.lang.String |
createNetworkUtilizationSignature()
Creates a network utilization signature.
|
public static final char PATTERN_PREFIX
public static final java.lang.String COLONS
public static final java.lang.String PATTERN_PREFIX_CPU
public static final java.lang.String PATTERN_PREFIX_MEM_SWAP
public static final java.lang.String PATTERN_PREFIX_LOAD_AVERAGE
public static final java.lang.String PATTERN_PREFIX_NETWORK_UTILIZATION
public static final java.lang.String PATTERN_PREFIX_DISK_USAGE
public static final java.lang.String PATTERN_PREFIX_JVM_MEM
public static final java.lang.String PATTERN_PREFIX_JVM_CL
public static final java.lang.String PATTERN_PREFIX_JVM_UP_TIME
public static final java.lang.String PATTERN_PREFIX_JVM_THREADS
public static final java.lang.String PATTERN_PREFIX_JVM_COMPILATION
public static final java.lang.String PATTERN_PREFIX_JVM_GC
public static java.lang.String createCPUSignature(int cpuid)
cpuid
- The id of the cpu.public static java.lang.String createCPUSignature()
public static java.lang.String createMemSwapSignature()
public static java.lang.String createLoadAverageSignature()
public static java.lang.String createNetworkUtilizationSignature()
public static java.lang.String createDiskUsageSignature()
public static java.lang.String createJVMMemSignature()
public static java.lang.String createJVMClassLoadSignature()
public static java.lang.String createJVMUpTimeSignature()
public static java.lang.String createJVMThreadsSignature()
public static java.lang.String createJVMCompilationSignature()
public static java.lang.String createJVMGarbageCollectorSignature()
public static java.lang.String createMethodSignature(java.lang.String[] modList, java.lang.String retType, java.lang.String fqName, java.lang.String method, java.lang.String[] params, java.lang.String[] exceptions) throws InvalidPatternException
modList
- List of modifiers in the following order:
1. public, protected, private, package
2. abstract, non_abstract
3. static, non_static
4. final, non_final
5. synchronized, non_synchronized
6. native, non_native
One or none of each sub-point is allowed.
Null or empty list stands for any modifiers.retType
- Primitive type ,fully qualified class name or pattern.fqName
- Fully qualified class name or pattern.method
- Method name or pattern.params
- List of primitive types, fully qualified class names or pattern.
Null or empty list, if no parameters are required.exceptions
- List of exceptions or pattern.
Null or empty list, if no exceptions are required.InvalidPatternException
- If any of the mandatory parameters is null.Copyright 2017 Kieker Project, http://kieker-monitoring.net