Class SignatureFactory

java.lang.Object
kieker.monitoring.core.signaturePattern.SignatureFactory

public final class SignatureFactory
extends java.lang.Object
This class can be used to create signatures (for example a string containing the whole signature of a method).
Since:
1.7
Author:
Bjoern Weissenfels, Jan Waller
  • Field Details

  • Method Details

    • createCPUSignature

      public static java.lang.String createCPUSignature​(int cpuid)
      Creates a cpu signature with a given cpu id.
      Parameters:
      cpuid - The id of the cpu.
      Returns:
      A signature for the cpu.
    • createCPUSignature

      public static java.lang.String createCPUSignature()
      Creates a CPU signature.
      Returns:
      The signature.
    • createMemSwapSignature

      public static java.lang.String createMemSwapSignature()
      Creates a mem swap signature.
      Returns:
      The signature.
    • createLoadAverageSignature

      public static java.lang.String createLoadAverageSignature()
      Creates a load average signature.
      Returns:
      The signature.
    • createNetworkUtilizationSignature

      public static java.lang.String createNetworkUtilizationSignature()
      Creates a network utilization signature.
      Returns:
      The signature.
    • createDiskUsageSignature

      public static java.lang.String createDiskUsageSignature()
      Creates a disk usage signature.
      Returns:
      The signature.
    • createJVMMemSignature

      public static java.lang.String createJVMMemSignature()
      Creates a JVM Mem signature.
      Returns:
      The signature.
    • createJVMClassLoadSignature

      public static java.lang.String createJVMClassLoadSignature()
      Creates a JVM class loading signature.
      Returns:
      The signature.
    • createJVMUpTimeSignature

      public static java.lang.String createJVMUpTimeSignature()
      Creates a JVM uptime signature.
      Returns:
      The signature.
    • createJVMThreadsSignature

      public static java.lang.String createJVMThreadsSignature()
      Creates a JVM threads signature.
      Returns:
      The signature.
    • createJVMCompilationSignature

      public static java.lang.String createJVMCompilationSignature()
      Creates a JVM compilation signature.
      Returns:
      The signature.
    • createJVMGarbageCollectorSignature

      public static java.lang.String createJVMGarbageCollectorSignature()
      Creates a JVM garbage collector signature.
      Returns:
      The signature.
    • createMethodSignature

      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
      Creates a method signature.
      Parameters:
      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.
      Returns:
      A signature which has been generated from the inputs.
      Throws:
      InvalidPatternException - If any of the mandatory parameters is null.