public static enum InstallationUtil.FrameworkVersion extends Enum<InstallationUtil.FrameworkVersion>
Enum Constant and Description |
---|
DONT_CARE
Don't care for temporary.
|
HADOOP_V1
Represents Hadoop
1.x . |
HADOOP_V2
Represents Hadoop
2.x with YARN. |
HADOOP_V2_MR1
Represents Hadoop
2.x with MRv1 . |
UNKNOWN
Represents unknown framework.
|
Modifier and Type | Method and Description |
---|---|
static InstallationUtil.FrameworkVersion |
find(String name)
Returns a version constant from its name.
|
static InstallationUtil.FrameworkVersion |
get()
Returns the currently linked framework version.
|
boolean |
isCompatibleTo(InstallationUtil.FrameworkVersion running)
Returns whether or not this version is compatible to the specified running version.
|
String |
toString() |
static InstallationUtil.FrameworkVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstallationUtil.FrameworkVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstallationUtil.FrameworkVersion DONT_CARE
public static final InstallationUtil.FrameworkVersion HADOOP_V1
1.x
.public static final InstallationUtil.FrameworkVersion HADOOP_V2
2.x
with YARN.public static final InstallationUtil.FrameworkVersion HADOOP_V2_MR1
2.x
with MRv1
.public static final InstallationUtil.FrameworkVersion UNKNOWN
public static InstallationUtil.FrameworkVersion[] values()
for (InstallationUtil.FrameworkVersion c : InstallationUtil.FrameworkVersion.values()) System.out.println(c);
public static InstallationUtil.FrameworkVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isCompatibleTo(InstallationUtil.FrameworkVersion running)
running
- the running versiontrue
if it is compatible for this version, otherwise false
public static InstallationUtil.FrameworkVersion find(String name)
name
- the version namenull
if there is no such a versionpublic static InstallationUtil.FrameworkVersion get()
public String toString()
toString
in class Enum<InstallationUtil.FrameworkVersion>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.