JAFS API v2.2

org.openafs.jafs
Class VersionInfo

java.lang.Object
  |
  +--org.openafs.jafs.VersionInfo

public final class VersionInfo
extends Object

Class providing static methods for retrieving version information specific to the JNI library.

The following is a simple example of how to use the VersionInfo class.

 import org.openafs.jafs.VersionInfo;
 ...
 public class ...
 {
   ...
   public static void main(String[] args) throws Exception
   {
     System.out.println("Attributes of the jafs native library:");
     System.out.println("\tDescription:\t" + VersionInfo.getDescription());
     System.out.println("\tCompile Date:\t" + VersionInfo.getCompileDate());
     System.out.println("\tVersion:\t" + VersionInfo.getFullVersion());
   }
   ...
 }
 


Constructor Summary
VersionInfo()
           
 
Method Summary
static Date getBuildDate()
          Returns the date, in the form of a Date object, representing the compile-time of the native library.
static int getBuildNumber()
          Returns the build number of the native library.
static String getBuildPlatform()
          Returns the description of the platform that built the native library.
protected static long getBuildTime()
          Returns the date, in the form of a long value of milliseconds since "epoch", representing the compile-time of the native library.
static String getDescription()
          Returns the compile-time description of the native library.
static String getFullVersion()
          Returns the version, in the form of ".
static String getVersion()
          Returns the version number of the native library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionInfo

public VersionInfo()
Method Detail

getBuildDate

public static final Date getBuildDate()
                               throws Exception
Returns the date, in the form of a Date object, representing the compile-time of the native library.

Throws:
Exception - If an error occurs in the native code
See Also:
Date

getFullVersion

public static final String getFullVersion()
                                   throws Exception
Returns the version, in the form of ".", representing the full version and build revision of the native library.

Throws:
Exception - If an error occurs in the native code
See Also:
getVersion(), getBuildNumber()

getBuildTime

protected static final long getBuildTime()
                                  throws Exception
Returns the date, in the form of a long value of milliseconds since "epoch", representing the compile-time of the native library.

Throws:
Exception - If an error occurs in the native code
See Also:
getBuildTime()

getDescription

public static final String getDescription()
                                   throws Exception
Returns the compile-time description of the native library.

Throws:
Exception - If an error occurs in the native code

getBuildNumber

public static final int getBuildNumber()
                                throws Exception
Returns the build number of the native library.

Throws:
Exception - If an error occurs in the native code

getVersion

public static final String getVersion()
                               throws Exception
Returns the version number of the native library.

Throws:
Exception - If an error occurs in the native code

getBuildPlatform

public static final String getBuildPlatform()
                                     throws Exception
Returns the description of the platform that built the native library.

Throws:
Exception - If an error occurs in the native code

JAFS API v2.2