[collectd] java plugin class files

Amit Gupta amit.gupta221 at gmail.com
Mon Sep 14 15:32:20 CEST 2009


Do find the patch attached. I have also got the jmx java classes to be
compiled (as a part of build process) in this patch. Let me know if the
patch looks okay.

Regards
Amit

On Tue, Sep 8, 2009 at 8:29 PM, Sebastian Harl <sh at tokkee.org> wrote:

> Hi,
>
> On Tue, Sep 08, 2009 at 08:06:38PM +0530, Amit Gupta wrote:
> > On Tue, Sep 8, 2009 at 7:05 PM, Sebastian Harl <sh at tokkee.org> wrote:
> > > On Tue, Sep 08, 2009 at 06:34:04PM +0530, Amit Gupta wrote:
> > I will start working on the patch.
>
> Thanks! :-)
>
> > > > Additionally, the jar files IMO should get published to the lib
> directory
> > > > where the so files are sitting rather than the share directory.
> > >
> > > Why do you think so?
> > >
> > > If those files are architecture independent (which, I suppose, is the
> > > case, but I'm not sure how JNI has an effect on that), /usr/share/
> > > collectd/ is the right place for them (according to FHS).
> >
> > I think of jar files equivalent of .so files. A jar file is used to ship
> > collection of java class files similar to a .so file which is a
> collection
> > of object files.
>
> Yes - this is somewhat similar. Still, .so files are in /usr/lib/ just
> because they are architecture dependent.
>
> > If you look at any of the java based softwares, for
> > instance tomcat, you will find all the jars sitting in the lib directory.
>
> If they are architecture independent, this is not the right place [1].
> Have a look at Perl modules. .pm files are similar (in spirit) to .so
> files as well - they ship reusable Perl code. While the (architecture
> independent) .pm files (Perl code) are usually shipped in /usr/share/,
> some modules ship architecture dependent code as well (.so and .bs
> files) which are usually sitting in /usr/lib/.
>
> I'd really like to conform to the FHS as much as reasonably possible and
> I don't really see any _real_ reasons not to install (arch. indep.)
> .class files in /usr/share/ ;-)
>
> Cheers,
> Sebastian
>
> [1] Btw., on Debian, the jars are sitting in /usr/share/, see
>    <http://packages.debian.org/sid/all/libtomcat6-java/filelist>
>
> --
> Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
>
> Those who would give up Essential Liberty to purchase a little Temporary
> Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkqmcUIACgkQEFEKc4UBx/zNFACcDzzTRcV+7nFJjcC3h1En7MjQ
> JqsAnj6KHo8/T2qW5++PrDR9yvkplrCa
> =xFuX
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090914/08efed38/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java-jar.patch
Type: application/octet-stream
Size: 2927 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090914/08efed38/attachment.obj 


More information about the collectd mailing list