Class CreatePipelineCommand

java.lang.Object
org.apache.hadoop.ozone.protocol.commands.SCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto>
org.apache.hadoop.ozone.protocol.commands.CreatePipelineCommand
All Implemented Interfaces:
org.apache.hadoop.hdds.server.events.IdentifiableEventPayload

public class CreatePipelineCommand extends SCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto>
Asks datanode to create a pipeline.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreatePipelineCommand(long cmdId, org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType type, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor factor, List<org.apache.hadoop.hdds.protocol.DatanodeDetails> datanodeList, List<Integer> priorityList)
     
    CreatePipelineCommand(org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType type, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor factor, List<org.apache.hadoop.hdds.protocol.DatanodeDetails> datanodeList)
     
    CreatePipelineCommand(org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType type, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor factor, List<org.apache.hadoop.hdds.protocol.DatanodeDetails> datanodeList, org.apache.hadoop.hdds.protocol.DatanodeDetails suggestedLeader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor
     
    getFromProtobuf(org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto createPipelineProto)
     
    List<org.apache.hadoop.hdds.protocol.DatanodeDetails>
     
    org.apache.hadoop.hdds.scm.pipeline.PipelineID
     
     
    org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto
    Gets the protobuf message of this object.
    org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType
     
    org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.SCMCommandProto.Type
    Returns the type of this command.
     

    Methods inherited from class org.apache.hadoop.ozone.protocol.commands.SCMCommand

    contributesToQueueSize, getDeadline, getEncodedToken, getId, getTerm, hasExpired, setDeadline, setEncodedToken, setTerm

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CreatePipelineCommand

      public CreatePipelineCommand(org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType type, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor factor, List<org.apache.hadoop.hdds.protocol.DatanodeDetails> datanodeList)
    • CreatePipelineCommand

      public CreatePipelineCommand(org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType type, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor factor, List<org.apache.hadoop.hdds.protocol.DatanodeDetails> datanodeList, org.apache.hadoop.hdds.protocol.DatanodeDetails suggestedLeader)
    • CreatePipelineCommand

      public CreatePipelineCommand(long cmdId, org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType type, org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor factor, List<org.apache.hadoop.hdds.protocol.DatanodeDetails> datanodeList, List<Integer> priorityList)
  • Method Details

    • getType

      public org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.SCMCommandProto.Type getType()
      Returns the type of this command.
      Specified by:
      getType in class SCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto>
      Returns:
      Type
    • getProto

      public org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto getProto()
      Description copied from class: SCMCommand
      Gets the protobuf message of this object.
      Specified by:
      getProto in class SCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto>
      Returns:
      A protobuf message.
    • getFromProtobuf

      public static CreatePipelineCommand getFromProtobuf(org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto createPipelineProto)
    • getPipelineID

      public org.apache.hadoop.hdds.scm.pipeline.PipelineID getPipelineID()
    • getNodeList

      public List<org.apache.hadoop.hdds.protocol.DatanodeDetails> getNodeList()
    • getPriorityList

      public List<Integer> getPriorityList()
    • getReplicationType

      public org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType getReplicationType()
    • getFactor

      public org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor getFactor()
    • toString

      public String toString()
      Overrides:
      toString in class SCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto>