public final class CoreConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENV_ASAKUSA_BATCHAPPS_HOME
The environment variable name of batch application installation path.
|
static String |
ENV_ASAKUSA_HOME
The environment variable name of framework installation path.
|
static String |
PATH_APP_JOBFLOW_LIB_FILE_PREFIX
The jobflow package file path prefix (relative from batchapps root).
|
static String |
PATH_APP_JOBFLOW_LIB_FILE_SUFFIX
The jobflow package file path suffix.
|
static String |
PATH_APP_USER_LIB_DIR
The batch shared libraries directory path (relative from batchapps root).
|
static String |
PATH_CORE_CONF_DIR
The framework core configuration directory path (relative from framework root).
|
static String |
PATH_CORE_CONF_FILE
The framework core configuration file path (relative from framework root).
|
static String |
PATH_CORE_LIB_DIR
The framework core libraries directory path (relative from framework root).
|
static String |
PATH_DEFAULT_BATCHAPPS_DIR
The default path of batch application installation path (relative from framework root).
|
static String |
PATH_EXTENSION_LIB_DIR
The framework extension libraries directory path (relative from framework root).
|
static String |
PATH_HADOOP_EMBEDDED_LIB_DIR
The framework embedded Hadoop libraries directory path (relative from framework root).
|
Modifier and Type | Method and Description |
---|---|
static Path |
getAppJobflowLibFile(Path application,
String flowId)
Returns the jobflow package file.
|
static Path |
getApplication(Environment env,
String batchId)
Returns the application base directory.
|
static Path |
getBatchappsHome(Environment env)
Returns the batch application installation directory.
|
static Path |
getHome(Environment env)
Returns the framework installation directory.
|
public static final String ENV_ASAKUSA_HOME
public static final String ENV_ASAKUSA_BATCHAPPS_HOME
public static final String PATH_DEFAULT_BATCHAPPS_DIR
public static final String PATH_CORE_LIB_DIR
public static final String PATH_CORE_CONF_DIR
public static final String PATH_CORE_CONF_FILE
public static final String PATH_HADOOP_EMBEDDED_LIB_DIR
public static final String PATH_EXTENSION_LIB_DIR
public static final String PATH_APP_JOBFLOW_LIB_FILE_PREFIX
public static final String PATH_APP_JOBFLOW_LIB_FILE_SUFFIX
public static final String PATH_APP_USER_LIB_DIR
public static Path getHome(Environment env)
env
- the current environment variablespublic static Path getBatchappsHome(Environment env)
env
- the current environment variablespublic static Path getApplication(Environment env, String batchId)
env
- the current environment variablesbatchId
- the batch IDpublic static Path getAppJobflowLibFile(Path application, String flowId)
application
- the application directory
flowId
- the target flow IDCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.