GithubHelp home page GithubHelp logo

sigar-bundle's Introduction

Sigar-Bundle

An OSGi wrapper bundle for Hyperic Sigar. https://github.com/hyperic/sigar

Author: Simon Chemouil (c) 2014, Lambdacube

============

Just use build it using mvn install or deploy on your Nexus. It's not deployed on Maven Central but if you think it should drop me a mail.

You must set the framework property org.osgi.framework.bootdelegation to sun.misc. Be careful, the bundle will install in your OSGi container without complaining, since I prevent bnd from adding the Import-Package clause on sun.misc (because otherwise Bnd can't resolve it with the JavaSE-1.x profile). This is not a problem for me since I use Sigar with Akka Cluster, which already requires delegating the sun.misc package to the boot classloader.

Also, Sigar depends on log4j 1.2.x. I suggest using the log4j 1.2.17 (as of today) available on Maven Central. It is a valid OSGi bundle.

<dependency>
    <groupId>log4j</groupId>
   <artifactId>log4j</artifactId> 
  <version>1.2.17</version>
</dependency>

Sigar's JAR contains some useless code, including its unit tests (which in turn depend on JUnit). This wrapper strips the test package from the original Jar, and explicitely avoids to import the package org.apache.tools.ant and its subpackages that are used by some of the classes in Sigar, so you won't be able to use them from OSGi.

Enjoy.

sigar-bundle's People

Contributors

magnet avatar

Watchers

James Cloos avatar wandl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.