Class TransportReplicationAction.ConcreteShardRequest<R extends TransportRequest>

    • Constructor Detail

      • ConcreteShardRequest

        public ConcreteShardRequest​(java.util.function.Supplier<R> requestSupplier)
      • ConcreteShardRequest

        public ConcreteShardRequest​(R request,
                                    java.lang.String targetAllocationID,
                                    long primaryTerm)
    • Method Detail

      • setParentTask

        public void setParentTask​(java.lang.String parentTaskNode,
                                  long parentTaskId)
        Description copied from interface: TaskAwareRequest
        Set a reference to task that caused this task to be run.
      • createTask

        public Task createTask​(long id,
                               java.lang.String type,
                               java.lang.String action,
                               TaskId parentTaskId,
                               java.util.Map<java.lang.String,​java.lang.String> headers)
        Description copied from interface: TaskAwareRequest
        Returns the task object that should be used to keep track of the processing of the request. A request can override this method and return null to avoid being tracked by the task manager.
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: TaskAwareRequest
        Returns optional description of the request to be displayed by the task manager
      • getRequest

        public R getRequest()
      • getTargetAllocationID

        public java.lang.String getTargetAllocationID()
      • getPrimaryTerm

        public long getPrimaryTerm()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object