Interface SigarProvider

  • All Known Implementing Classes:
    DefaultSigarProvider

    public interface SigarProvider
    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.

    • 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.
        Returns:
        (undocumented)