com.bigdata.counters.linux
Class KernelVersion

java.lang.Object
  extended by com.bigdata.counters.linux.KernelVersion

public class KernelVersion
extends Object

Reports on the kernel version for a linux host.

Version:
$Id: KernelVersion.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
for a summary of linux kernel versioning.
TODO:
there is more information lurking in the kernel version.

Field Summary
protected static org.apache.log4j.Logger log
           
 int major
           
 int minor
           
 int version
           
 
Constructor Summary
KernelVersion(String val)
           
 
Method Summary
static KernelVersion get()
          Return the version of the Linux kernel as reported by uname
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log

version

public final int version

major

public final int major

minor

public final int minor
Constructor Detail

KernelVersion

public KernelVersion(String val)
Method Detail

get

public static KernelVersion get()
Return the version of the Linux kernel as reported by uname

Returns:
The KernelVersion
Throws:
RuntimeException - if anything goes wrong.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.