public class BatchStepFileDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
STEP_FILE_EXTENSION_SEPARATOR |
static String |
STEP_FILE_NAME_SEPARATOR |
Constructor and Description |
---|
BatchStepFileDescriptor(File stepFile) |
BatchStepFileDescriptor(String jobName,
String stepName,
String extension)
Create a descriptor using the properties provided.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCompletedDate() |
String |
getExtension() |
static String |
getFileExtensionError() |
static String |
getFileExtensionRun() |
static String |
getFileExtensionSuccess() |
String |
getJobName() |
String |
getName() |
String |
getNameNoExtension() |
Date |
getStartedDate() |
File |
getStepFile() |
Integer |
getStepIndex() |
String |
getStepName() |
boolean |
isStepFileAnErrorResultFile() |
void |
setCompletedDate(Date completedDate) |
void |
setStartedDate(Date startedDate) |
void |
setStepIndex(Integer stepIndex) |
String |
toString()
Return a representation of the step file descriptor.
|
public static final String STEP_FILE_EXTENSION_SEPARATOR
public static final String STEP_FILE_NAME_SEPARATOR
public BatchStepFileDescriptor(String jobName, String stepName, String extension)
jobName
- the name of the job in which the step is runningstepName
- the name of the step to be executedextension
- the type of file to work with (RUN, SUCCESS, or ERROR)public BatchStepFileDescriptor(File stepFile)
stepFile
- the semaphore file in the directory. The jobName, stepName, and extension are retrieved from the semaphore file name.public String getJobName()
public String getStepName()
public String getExtension()
public File getStepFile()
public String getName()
public String getNameNoExtension()
public String toString()
public boolean isStepFileAnErrorResultFile()
public Integer getStepIndex()
public void setStepIndex(Integer stepIndex)
stepIndex
- the index of the step in its jobpublic Date getStartedDate()
public void setStartedDate(Date startedDate)
startedDate
- the time the step startedpublic Date getCompletedDate()
public void setCompletedDate(Date completedDate)
completedDate
- the time the step completedpublic static String getFileExtensionRun()
public static String getFileExtensionSuccess()
public static String getFileExtensionError()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.