Packages

t

io.github.dutrevis

ProcFileMetricCollector

trait ProcFileMetricCollector extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProcFileMetricCollector
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def getMetricValue(procFileContent: String, originalMetricName: String): Any

    Method to be implemented with the logic to get a metric value from a file content (provided as a String) using a given metric name.

    Method to be implemented with the logic to get a metric value from a file content (provided as a String) using a given metric name.

    procFileContent

    a String with a file content from which the metric will be collected.

    originalMetricName

    a String with the metric name, used to search and collect its value from the file content.

  2. abstract val procFilePath: String
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def defaultPathGetter(s1: String, s2: String*): Path

    Gets the file path from a String or a sequence of Strings.

    Gets the file path from a String or a sequence of Strings. Used as the path_getter default function.

    s1

    a String used to compose the first element of a file path.

    s2

    an optional sequence of Strings used to compose the last elements of a file path.

    returns

    a Path object with the file path.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def getProcFileContent(path_getter: (String, Seq[String]) => Path = defaultPathGetter, file_reader: (Path) => Array[Byte] = Files.readAllBytes, charset: Charset = StandardCharsets.UTF_8): String

    Returns the String content of a proc file located at the procFilePath, enconded using a provided charset.

    Returns the String content of a proc file located at the procFilePath, enconded using a provided charset.

    path_getter

    a Function used to get the file path from a String or a sequence of Strings, returning a Path object.

    file_reader

    a Function that uses a Path object to get the content of a file, returning it in the format of an Array of bytes.

    charset

    a Charset object used to define the final String encoding.

    returns

    a String with the content of the file read.

  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped