|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bibalex.daf.entities.job.JobState
org.bibalex.daf.entities.job.CheckingInState
public class CheckingInState
This class contains the logic necessary to check in the job. Calling makeTransition method will cause the job to be checked in.
| Field Summary | |
|---|---|
private java.lang.String |
errorMessage
|
private FileHandler |
ftpHandler
|
private TransitionInfo |
info
|
private Job |
job
|
private Phase |
phase
|
private java.lang.String |
serverDir
|
private User |
user
|
private java.lang.String |
workingDir
|
private WorkStation |
workstation
|
| Constructor Summary | |
|---|---|
CheckingInState(Job job,
User user,
WorkStation workstation)
Creates a new instance of CheckingInState. |
|
| 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 check in the job. |
boolean |
makeTransition()
Checks in the job. Notes: This method assumes that the job exists at the machine working directory. |
boolean |
makeTransition(Phase phase)
Checks in the job. Notes: This method assumes that the job exists at the machine working directory. |
void |
setPhase(Phase phase)
Sets the Phase to validate against instead of the default one. |
| 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 java.lang.String workingDir
private java.lang.String serverDir
private FileHandler ftpHandler
private Phase phase
private java.lang.String errorMessage
| Constructor Detail |
|---|
public CheckingInState(Job job,
User user,
WorkStation workstation)
job - The job to check in.user - The user who is checking in the job.workstation - The workstation from which the job will be checked in.| Method Detail |
|---|
public void setPhase(Phase phase)
phase - The Phase object to validate against.public java.lang.String getName()
getName in class JobStatepublic int getNoOfFiles()
getNoOfFiles in class JobStatepublic boolean makeTransition()
makeTransition in class JobStatepublic boolean makeTransition(Phase phase)
Phase object.
phase - The Phase object to validate against.
true if the job has been checked in successfully otherwise false.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 | |||||||||