public class FSPersistentVolume extends java.lang.Object implements IPersistentVolume
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOG_DIR_NAME |
static java.lang.String |
WORKER_DIR_NAME_PREFIX |
static java.lang.String |
WORKER_LOG_FILE_NAME_PREFIX |
Constructor and Description |
---|
FSPersistentVolume(java.lang.String jobDirPath,
int workerID) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getJobDir()
get the job directory as a File object
|
java.lang.String |
getJobDirPath()
get the path of the shared persistent job directory as a string
|
java.lang.String |
getLogDirPath() |
java.lang.String |
getLogFileName()
get logfile name for this worker
|
java.io.File |
getWorkerDir()
get the worker directory as a File object
this method creates the directory if it is not already created
|
java.lang.String |
getWorkerDirPath()
get the directory path of this worker as a string
|
boolean |
jobDirExists()
check whether job directory exists
|
boolean |
workerDirExists()
check whether worker directory exist
|
public static final java.lang.String WORKER_DIR_NAME_PREFIX
public static final java.lang.String WORKER_LOG_FILE_NAME_PREFIX
public static final java.lang.String LOG_DIR_NAME
public FSPersistentVolume(java.lang.String jobDirPath, int workerID)
public java.lang.String getJobDirPath()
IPersistentVolume
getJobDirPath
in interface IPersistentVolume
public java.lang.String getLogDirPath()
public java.lang.String getWorkerDirPath()
IPersistentVolume
getWorkerDirPath
in interface IPersistentVolume
public boolean jobDirExists()
IPersistentVolume
jobDirExists
in interface IPersistentVolume
public boolean workerDirExists()
IPersistentVolume
workerDirExists
in interface IPersistentVolume
public java.io.File getJobDir()
IPersistentVolume
getJobDir
in interface IPersistentVolume
public java.io.File getWorkerDir()
IPersistentVolume
getWorkerDir
in interface IPersistentVolume
public java.lang.String getLogFileName()
IPersistentVolume
getLogFileName
in interface IPersistentVolume