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 String
ACCOUNT_PROP
static String
NA
static String
SPACE_ID_PROP
static String
STORE_ID_PROP
-
Constructor Summary
Constructors Constructor Description SpaceCentricTypedTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addProperty(Task task, String propName, String propValue)
String
getAccount()
The unique identifier for the account, ie the account's subdomain.int
getAttempts()
String
getSpaceId()
String
getStoreId()
void
readTask(Task task)
Reads the information stored in a Task and sets data in the SpaceCentricTypedTaskvoid
setAccount(String account)
void
setSpaceId(String spaceId)
void
setStoreId(String storeId)
String
toString()
Task
writeTask()
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
-
-