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 StringCONTENT_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 StringgetContentId()voidreadTask(Task task)Reads the information stored in a Task and sets data in the SpaceCentricTypedTaskvoidsetContentId(String contentId)TaskwriteTask()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:SpaceCentricTypedTaskReads the information stored in a Task and sets data in the SpaceCentricTypedTask- Overrides:
readTaskin classSpaceCentricTypedTask
-
writeTask
public Task writeTask()
Description copied from class:SpaceCentricTypedTaskWrites all of the information in the SpaceCentricTypedTask into a Task- Overrides:
writeTaskin classSpaceCentricTypedTask- Returns:
- a Task based on the information stored in this SpaceCentricTypedTask
-
-