|
||||||||||
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.UploadingState
public class UploadingState
This class contains the logic necessary to upload the job. Calling makeTransition method will cause the job to be uploaded.
Field Summary | |
---|---|
private java.lang.String |
destination
|
private java.lang.String |
errorMessage
|
private FileHandler |
ftpHandler
|
private TransitionInfo |
info
|
private Job |
job
|
private int |
noOfFiles
|
private Phase |
phase
|
private java.lang.String |
source
|
private boolean |
uploadWholeFolder
|
private User |
user
|
private WorkStation |
workstation
|
Constructor Summary | |
---|---|
UploadingState(Job job,
User user,
WorkStation workstation,
boolean uploadWholeFolder)
Creates a new instance of UploadingState. |
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 upload the job. |
boolean |
makeTransition()
Uploads the job from the user's workstation to the server. Note: Uploading the job is recorded in the database. |
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 int noOfFiles
private boolean uploadWholeFolder
private java.lang.String errorMessage
Constructor Detail |
---|
public UploadingState(Job job, User user, WorkStation workstation, boolean uploadWholeFolder) throws java.lang.Exception
job
- The job to upload.user
- The user who is uploading the job.workstation
- The workstation from which the job will be uploaded.uploadWholeFolder
- True to upload the whole folder. False to upload the folders matching the phase definition.
java.lang.Exception
- If the information necessary to upload 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 |