Package akka.cluster.metrics
Interface SigarProvider
-
- All Known Implementing Classes:
DefaultSigarProvider
public interface SigarProvider
Provide sigar instance asSigarProxy
.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 theclasspath
and sigar native library for the o/s on thejava.library.path
User is required to manage both project dependency and library deployment manually.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.hyperic.sigar.SigarProxy
createSigarInstance()
Create sigar instance with 2-phase sigar library loading.java.lang.String
extractFolder()
Library extract location.boolean
isNativeLoaded()
Verify if sigar native library is loaded and operational.void
provisionSigarLibrary()
Extract and load sigar native library.org.hyperic.sigar.SigarProxy
verifiedSigarInstance()
Create sigar and verify it works.
-
-
-
Method Detail
-
extractFolder
java.lang.String extractFolder()
Library extract location.
-
isNativeLoaded
boolean isNativeLoaded()
Verify if sigar native library is loaded and operational.
-
verifiedSigarInstance
org.hyperic.sigar.SigarProxy verifiedSigarInstance()
Create sigar and verify it works.
-
provisionSigarLibrary
void provisionSigarLibrary()
Extract and load sigar native library.
-
createSigarInstance
org.hyperic.sigar.SigarProxy createSigarInstance()
Create sigar instance with 2-phase sigar library loading. 1) Assume that library is already provisioned. 2) Attempt to provision library via sigar-loader.
-
-