com.bigdata.counters.linux
Class KernelVersion
java.lang.Object
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.
|
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 |
log
protected static final org.apache.log4j.Logger log
version
public final int version
major
public final int major
minor
public final int minor
KernelVersion
public KernelVersion(String val)
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.