Class SpaceCentricTypedTask

java.lang.Object
org.duracloud.common.queue.task.SpaceCentricTypedTask
Direct Known Subclasses:
TypedTask

public abstract class SpaceCentricTypedTask extends Object
Contains the base information necessary to handle tasks.
Author:
Bill Branan Date: 10/24/13
  • Field Details

  • Constructor Details

    • SpaceCentricTypedTask

      public SpaceCentricTypedTask()
  • Method Details

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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
    • addProperty

      protected void addProperty(Task task, String propName, String propValue)