Package org.duracloud.common.queue.task
Class TypedTask
- java.lang.Object
-
- org.duracloud.common.queue.task.SpaceCentricTypedTask
-
- org.duracloud.common.queue.task.TypedTask
-
- Direct Known Subclasses:
NoopTask
public abstract class TypedTask extends SpaceCentricTypedTask
Contains the base information necessary for tasks working with content items.- Author:
- Daniel Bernstein Date: 05/02/2014
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTENT_ID_PROP
-
Fields inherited from class org.duracloud.common.queue.task.SpaceCentricTypedTask
ACCOUNT_PROP, NA, SPACE_ID_PROP, STORE_ID_PROP
-
-
Constructor Summary
Constructors Constructor Description TypedTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentId()
void
readTask(Task task)
Reads the information stored in a Task and sets data in the SpaceCentricTypedTaskvoid
setContentId(String contentId)
Task
writeTask()
Writes all of the information in the SpaceCentricTypedTask into a Task-
Methods inherited from class org.duracloud.common.queue.task.SpaceCentricTypedTask
addProperty, getAccount, getAttempts, getSpaceId, getStoreId, setAccount, setSpaceId, setStoreId, toString
-
-
-
-
Field Detail
-
CONTENT_ID_PROP
public static final String CONTENT_ID_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentId
public String getContentId()
-
setContentId
public void setContentId(String contentId)
-
readTask
public void readTask(Task task)
Description copied from class:SpaceCentricTypedTask
Reads the information stored in a Task and sets data in the SpaceCentricTypedTask- Overrides:
readTask
in classSpaceCentricTypedTask
-
writeTask
public Task writeTask()
Description copied from class:SpaceCentricTypedTask
Writes all of the information in the SpaceCentricTypedTask into a Task- Overrides:
writeTask
in classSpaceCentricTypedTask
- Returns:
- a Task based on the information stored in this SpaceCentricTypedTask
-
-