trait ProcFileMetricCollector extends AnyRef
- Alphabetic
- By Inheritance
- ProcFileMetricCollector
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- 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.
- abstract val procFilePath: String
- Attributes
- protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- 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.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)