类 AbstractBulkRequest

java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractBulkRequest
直接已知子类:
DropFolderRequest, PutObjectsRequest, RestoreObjectsRequest

public abstract class AbstractBulkRequest extends GenericRequest
Abstract class for request parameters of bulk tasks
  • 字段详细资料

    • listener

      protected TaskProgressListener listener
    • taskThreadNum

      protected int taskThreadNum
    • taskQueueNum

      protected int taskQueueNum
    • taskProgressInterval

      protected int taskProgressInterval
  • 构造器详细资料

    • AbstractBulkRequest

      public AbstractBulkRequest()
    • AbstractBulkRequest

      public AbstractBulkRequest(String bucketName)
  • 方法详细资料

    • getProgressListener

      public TaskProgressListener getProgressListener()
      Obtain the progress listener of the bulk task.
      返回:
      Progress listener
    • setProgressListener

      public void setProgressListener(TaskProgressListener listener)
      Set the progress listener of the bulk task.
      参数:
      listener - Progress listener
    • getTaskThreadNum

      public int getTaskThreadNum()
      Obtain the maximum number of concurrent bulk tasks. The default value is 10.
      返回:
      Maximum number of threads
    • setTaskThreadNum

      public void setTaskThreadNum(int taskThreadNum)
      Set the maximum number of concurrent bulk tasks. The default value is 10.
      参数:
      taskThreadNum - Maximum number of threads
    • getTaskQueueNum

      public int getTaskQueueNum()
      Obtain the queue length of the bulk task. The default value is 20000.
      返回:
      Length of the task queue
    • setTaskQueueNum

      public void setTaskQueueNum(int taskQueueNum)
      Set the task queue length of the thread pool in the bulk task. The default value is 20000.
      参数:
      taskQueueNum - Length of the task queue
    • getProgressInterval

      public int getProgressInterval()
      Obtain the callback threshold of the task progress listener. The default value is 50.
      返回:
      Callback threshold of the task progress listener
    • setProgressInterval

      public void setProgressInterval(int taskProgressInterval)
      Set the callback threshold of the task progress listener. The default value is 50.
      参数:
      taskProgressInterval - Callback threshold of the task progress listener