Package org.duracloud.common.queue.task
Class SpaceCentricTypedTask
- java.lang.Object
-
- org.duracloud.common.queue.task.SpaceCentricTypedTask
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCOUNT_PROPstatic StringNAstatic StringSPACE_ID_PROPstatic StringSTORE_ID_PROP
-
Constructor Summary
Constructors Constructor Description SpaceCentricTypedTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddProperty(Task task, String propName, String propValue)StringgetAccount()The unique identifier for the account, ie the account's subdomain.intgetAttempts()StringgetSpaceId()StringgetStoreId()voidreadTask(Task task)Reads the information stored in a Task and sets data in the SpaceCentricTypedTaskvoidsetAccount(String account)voidsetSpaceId(String spaceId)voidsetStoreId(String storeId)StringtoString()TaskwriteTask()Writes all of the information in the SpaceCentricTypedTask into a Task
-
-
-
Field Detail
-
ACCOUNT_PROP
public static final String ACCOUNT_PROP
- See Also:
- Constant Field Values
-
STORE_ID_PROP
public static final String STORE_ID_PROP
- See Also:
- Constant Field Values
-
SPACE_ID_PROP
public static final String SPACE_ID_PROP
- See Also:
- Constant Field Values
-
NA
public static final String NA
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccount
public String getAccount()
The unique identifier for the account, ie the account's subdomain.- Returns:
-
setAccount
public void setAccount(String account)
-
getStoreId
public String getStoreId()
-
setStoreId
public void setStoreId(String storeId)
-
getSpaceId
public String getSpaceId()
-
setSpaceId
public void setSpaceId(String spaceId)
-
getAttempts
public int getAttempts()
-
readTask
public void readTask(Task task)
Reads the information stored in a Task and sets data in the SpaceCentricTypedTask- Parameters:
task-
-
writeTask
public Task writeTask()
Writes all of the information in the SpaceCentricTypedTask into a Task- Returns:
- a Task based on the information stored in this SpaceCentricTypedTask
-
-