trait SigarProvider extends AnyRef
Provide sigar instance as SigarProxy
.
User can provision sigar classes and native library in one of the following ways:
1) Use Kamon sigar-loader as a project dependency for the user project. Metrics extension will extract and load sigar library on demand with help of Kamon sigar provisioner.
2) Use Kamon sigar-loader as java agent: java -javaagent:/path/to/sigar-loader.jar
Kamon sigar loader agent will extract and load sigar library during JVM start.
3) Place sigar.jar
on the classpath
and sigar native library for the o/s on the java.library.path
User is required to manage both project dependency and library deployment manually.
- Source
- Provision.scala
- Alphabetic
- By Inheritance
- SigarProvider
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def extractFolder: String
Library extract location.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from SigarProvider toany2stringadd[SigarProvider] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (SigarProvider, B)
- Implicit
- This member is added by an implicit conversion from SigarProvider toArrowAssoc[SigarProvider] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- 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]) @native() @HotSpotIntrinsicCandidate()
- def createSigarInstance: SigarProxy
Create sigar instance with 2-phase sigar library loading.
Create sigar instance with 2-phase sigar library loading. 1) Assume that library is already provisioned. 2) Attempt to provision library via sigar-loader.
- def ensuring(cond: (SigarProvider) => Boolean, msg: => Any): SigarProvider
- Implicit
- This member is added by an implicit conversion from SigarProvider toEnsuring[SigarProvider] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (SigarProvider) => Boolean): SigarProvider
- Implicit
- This member is added by an implicit conversion from SigarProvider toEnsuring[SigarProvider] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): SigarProvider
- Implicit
- This member is added by an implicit conversion from SigarProvider toEnsuring[SigarProvider] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): SigarProvider
- Implicit
- This member is added by an implicit conversion from SigarProvider toEnsuring[SigarProvider] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- 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
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNativeLoaded: Boolean
Verify if sigar native library is loaded and operational.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def provisionSigarLibrary(): Unit
Extract and load sigar native library.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verifiedSigarInstance: SigarProxy
Create sigar and verify it works.
- 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
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SigarProvider toStringFormat[SigarProvider] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (SigarProvider, B)
- Implicit
- This member is added by an implicit conversion from SigarProvider toArrowAssoc[SigarProvider] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.