public enum ProgramType extends Enum<ProgramType>
| Enum Constant and Description |
|---|
CUSTOM_ACTION |
FLOW |
MAPREDUCE |
SERVICE |
SPARK |
WEBAPP |
WORKER |
WORKFLOW |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategoryName() |
int |
getIndex() |
String |
getPrettyName() |
SchedulableProgramType |
getSchedulableType() |
boolean |
isListable() |
String |
toString() |
static ProgramType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProgramType |
valueOfCategoryName(String categoryName) |
static ProgramType |
valueOfPrettyName(String pretty) |
static ProgramType |
valueOfSchedulableType(SchedulableProgramType schedulableType) |
static ProgramType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProgramType FLOW
public static final ProgramType MAPREDUCE
public static final ProgramType WORKFLOW
public static final ProgramType WEBAPP
public static final ProgramType SERVICE
public static final ProgramType SPARK
public static final ProgramType WORKER
public static final ProgramType CUSTOM_ACTION
public static ProgramType[] values()
for (ProgramType c : ProgramType.values()) System.out.println(c);
public static ProgramType 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 isListable()
public String getCategoryName()
public String getPrettyName()
public SchedulableProgramType getSchedulableType()
public int getIndex()
public static ProgramType valueOfSchedulableType(SchedulableProgramType schedulableType)
public static ProgramType valueOfPrettyName(String pretty)
public static ProgramType valueOfCategoryName(String categoryName)
public String toString()
toString in class Enum<ProgramType>Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.