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
ConstructorsConstructorDescriptionCreatePipelineCommand(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 TypeMethodDescriptionorg.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactorstatic CreatePipelineCommandgetFromProtobuf(org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto createPipelineProto) List<org.apache.hadoop.hdds.protocol.DatanodeDetails> org.apache.hadoop.hdds.scm.pipeline.PipelineIDorg.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProtogetProto()Gets the protobuf message of this object.org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationTypeorg.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.SCMCommandProto.TypegetType()Returns the type of this command.toString()Methods inherited from class org.apache.hadoop.ozone.protocol.commands.SCMCommand
contributesToQueueSize, getDeadline, getEncodedToken, getId, getTerm, hasExpired, setDeadline, setEncodedToken, setTerm
-
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:
getTypein classSCMCommand<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:SCMCommandGets the protobuf message of this object.- Specified by:
getProtoin classSCMCommand<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
-
getPriorityList
-
getReplicationType
public org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationType getReplicationType() -
getFactor
public org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor getFactor() -
toString
- Overrides:
toStringin classSCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.CreatePipelineCommandProto>
-