GNDMS 0.6.0
RESTful verison of GNDMS
|
Public Member Functions | |
void | markerArrived (final Marker marker) |
void | setCurrentFile (String currentFile) |
Sets file of the transfar state to currentFile. | |
String | getWid () |
void | setWid (String wid) |
String | getGORFXId () |
void | setGORFXId (String gorfxid) |
Private Attributes | |
String | gorfxId = "" |
String | wid = "" |
User: mjorra, Date: 11.10.2008, Time: 18:47:42
A persistent marker listener which updates the progress of a task.
The maximum progress is the number of files to transfer hence one progress step is the completed transfer of a single file.
void de.zib.gndms.taskflows.filetransfer.server.logic.TaskPersistentMarkerListener.setCurrentFile | ( | String | currentFile | ) |
Sets file of the transfar state to currentFile.
Additionally the current ftp args of the state are resetted. The new state is written to the database immediately.
Reimplemented from de.zib.gndms.taskflows.filetransfer.server.network.PersistentMarkerListener.
{ super.setCurrentFile( currentFile ); final Session session = getDao().beginSession(); try { Task task = getTaskling().getTask(session); task.setProgress(task.getProgress() + 1); session.success(); } finally { session.finish(); } }