public class Banner extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Banner.BuildInfoMeta
An interface which declares the keys for the map returned by
getBuildInfo() . |
static interface |
Banner.Options
Environment variables understood by the
Banner class. |
Constructor and Description |
---|
Banner() |
Modifier and Type | Method and Description |
---|---|
static void |
banner()
Display the banner, dependencies, etc.
|
static String |
getBanner()
Return the banner.
|
static Map<String,String> |
getBuildInfo()
Method used to discover and report on the bigdata build information.
|
static String |
getFullyqualifiedhostname()
Returns fully qualified host name from static initialization.
|
static Map<String,String> |
getStaticVariables(String className)
Utility class to get the static string variables for a given class name.
|
static String |
getVersion()
Attempts to return the build version (aka the release version) from the
com.bigdata.BuildInfo class. |
static void |
main(String[] args)
Outputs the banner and exits.
|
public static String getFullyqualifiedhostname()
public static void banner()
public static Map<String,String> getBuildInfo()
com.bigdata.BuildInfo
class is built when the JAR is
created. However, it may not be present when running under an IDE from
the source code and, therefore, there MUST NOT be any compile time
references to the com.bigdata.BuildInfo
class. This method
uses reflection to avoid a compile time dependency.
Note: This method works fine. However, people running from an IDE will
observe stale data from old com.bigdata.BuildInfo
class files left from a previous build of a JAR. This makes the
information good for deployed versions of the JAR but potentially
misleading when people are running under an IDE.
Banner.BuildInfoMeta
public static Map<String,String> getStaticVariables(String className)
className
- public static final String getVersion()
com.bigdata.BuildInfo
class. This class is generated by
build.xml
and is NOT available from the IDE. It is correct
discovered using reflection.null
otherwise.getBuildInfo()
public static String getBanner()
public static void main(String[] args)
args
- Ignored.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.