eu.unicore.hila.common.grid
Class BaseTask
java.lang.Object
eu.unicore.hila.common.BaseResource
eu.unicore.hila.common.grid.BaseTask
- All Implemented Interfaces:
- Progressable, Task, eu.unicore.hila.Resource
- Direct Known Subclasses:
- BaseJob, BaseSimpleTransfer, BaseThirdPartyTransfer
public abstract class BaseTask
- extends eu.unicore.hila.common.BaseResource
- implements Task, Progressable
- Author:
- bjoernh
13.08.2009 10:01:30
Field Summary |
protected eu.unicore.hila.exceptions.HiLAException |
error
|
Fields inherited from class eu.unicore.hila.common.BaseResource |
location |
Constructor Summary |
BaseTask(eu.unicore.hila.Location location)
|
Methods inherited from class eu.unicore.hila.common.BaseResource |
findParentLocationOfType, getChild, getLocation, getMetadata, getName, getParent, ok |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.unicore.hila.grid.Task |
abort, getId |
Methods inherited from interface eu.unicore.hila.Resource |
getChild, getChildren, getLocation, getMetadata, getName, getParent, ok |
error
protected eu.unicore.hila.exceptions.HiLAException error
BaseTask
public BaseTask(eu.unicore.hila.Location location)
- Parameters:
location
-
getError
public eu.unicore.hila.exceptions.HiLAException getError()
- Specified by:
getError
in interface Task
isFinalState
protected boolean isFinalState(TaskStatus _status)
- Deprecated. Use TaskStatus.isFinalState instead.Deprecated in 2.4.0,
should be removed by 2.5.0 at the latest
- Parameters:
_status
-
- Returns:
true
if the current status is final,
false
otherwise.
registerStatusChangeListener
public void registerStatusChangeListener(StatusChangeListener _listener)
- Specified by:
registerStatusChangeListener
in interface Task
- See Also:
Task.registerStatusChangeListener(eu.unicore.hila.grid.StatusChangeListener)
removeStatusChangeListener
public void removeStatusChangeListener(StatusChangeListener _listener)
- Specified by:
removeStatusChangeListener
in interface Task
- See Also:
Task.removeStatusChangeListener(eu.unicore.hila.grid.StatusChangeListener)
block
public TaskStatus block()
throws eu.unicore.hila.exceptions.HiLAException
- Specified by:
block
in interface Task
- Throws:
eu.unicore.hila.exceptions.HiLAException
- See Also:
Task.block()
status
public TaskStatus status()
throws eu.unicore.hila.exceptions.HiLAException
- Specified by:
status
in interface Task
- Throws:
eu.unicore.hila.exceptions.HiLAException
- See Also:
Task.status()
getHistory
public History getHistory()
throws eu.unicore.hila.exceptions.HiLAException
- Specified by:
getHistory
in interface Task
- Throws:
eu.unicore.hila.exceptions.HiLAException
- See Also:
Task.getHistory()
isDone
public boolean isDone()
throws eu.unicore.hila.exceptions.HiLAException
- Specified by:
isDone
in interface Progressable
- Returns:
-
- Throws:
eu.unicore.hila.exceptions.HiLAException
block
public TaskStatus block(long arg0)
throws eu.unicore.hila.exceptions.HiLAException
- Specified by:
block
in interface Task
- Throws:
eu.unicore.hila.exceptions.HiLAException
- See Also:
Task.block(long)
getUnit
public String getUnit()
throws eu.unicore.hila.exceptions.HiLANotImplementedException
- Specified by:
getUnit
in interface Progressable
- Throws:
eu.unicore.hila.exceptions.HiLANotImplementedException
- See Also:
Progressable.getUnit()
notifyListeners
public void notifyListeners(Task _task,
TaskStatus _status)
getCurrent
public long getCurrent()
throws eu.unicore.hila.exceptions.HiLAException
- Specified by:
getCurrent
in interface Progressable
- Throws:
eu.unicore.hila.exceptions.HiLANotImplementedException
eu.unicore.hila.exceptions.HiLAException
- See Also:
Progressable.getCurrent()
getMax
public long getMax()
throws eu.unicore.hila.exceptions.HiLAException
- Specified by:
getMax
in interface Progressable
- Throws:
eu.unicore.hila.exceptions.HiLAException
- See Also:
Progressable.getMax()
setCurrentState
protected void setCurrentState(TaskStatus _status,
eu.unicore.hila.exceptions.HiLAException e)
setCurrentState
protected void setCurrentState(TaskStatus _status)
Copyright © 2010-2013 UNICORE. All Rights Reserved.