|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.entities.job.JobState org.bibalex.daf.entities.job.StartingState
public class StartingState
This class contains the logic necessary to start the job. Calling makeTransition method will cause the job to be started. Note: The transaction log entry that the job points to, doesn't hold the phase in which the job will start. It might contain the phase the job has just eneded, so we need to get the next phase.
Field Summary | |
---|---|
private java.lang.String |
destination
|
private java.lang.String |
errorMessage
|
private FileHandler |
ftpHandler
|
private TransitionInfo |
info
|
private Job |
job
|
private Phase |
phase
|
private java.lang.String |
source
|
private User |
user
|
private WorkStation |
workstation
|
Constructor Summary | |
---|---|
StartingState(Job job,
User user,
WorkStation workstation)
Creates a new instance of StartingState. |
Method Summary | |
---|---|
java.lang.String |
getErrorMessage()
This method gets the mesage that is to be displaed to the user |
java.lang.String |
getName()
Gets the name of the state. |
int |
getNoOfFiles()
Gets the number of files required to be transferred in order to start the job. |
boolean |
makeTransition()
Starts the job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Job job
private User user
private WorkStation workstation
private TransitionInfo info
private Phase phase
private FileHandler ftpHandler
private java.lang.String source
private java.lang.String destination
private java.lang.String errorMessage
Constructor Detail |
---|
public StartingState(Job job, User user, WorkStation workstation) throws java.lang.Exception
job
- The job to start.user
- The user who is starting the job.workstation
- The workstation on which the job will start.
java.lang.Exception
- If the information necessary to start the job cannot be obtained.Method Detail |
---|
public java.lang.String getName()
getName
in class JobState
public int getNoOfFiles()
getNoOfFiles
in class JobState
public boolean makeTransition()
makeTransition
in class JobState
public java.lang.String getErrorMessage()
JobState
getErrorMessage
in class JobState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |