Class ClosePipelineCommand
java.lang.Object
org.apache.hadoop.ozone.protocol.commands.SCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineCommandProto>
org.apache.hadoop.ozone.protocol.commands.ClosePipelineCommand
- All Implemented Interfaces:
org.apache.hadoop.hdds.server.events.IdentifiableEventPayload
public class ClosePipelineCommand
extends SCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineCommandProto>
Asks datanode to close a pipeline.
-
Constructor Summary
ConstructorsConstructorDescriptionClosePipelineCommand(long cmdId, org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID) ClosePipelineCommand(org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClosePipelineCommandgetFromProtobuf(org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineCommandProto createPipelineProto) org.apache.hadoop.hdds.scm.pipeline.PipelineIDorg.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineCommandProtogetProto()Gets the protobuf message of this object.org.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
-
ClosePipelineCommand
public ClosePipelineCommand(org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID) -
ClosePipelineCommand
public ClosePipelineCommand(long cmdId, org.apache.hadoop.hdds.scm.pipeline.PipelineID pipelineID)
-
-
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.ClosePipelineCommandProto>- Returns:
- Type
-
getProto
public org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineCommandProto getProto()Description copied from class:SCMCommandGets the protobuf message of this object.- Specified by:
getProtoin classSCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineCommandProto>- Returns:
- A protobuf message.
-
getFromProtobuf
public static ClosePipelineCommand getFromProtobuf(org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineCommandProto createPipelineProto) -
getPipelineID
public org.apache.hadoop.hdds.scm.pipeline.PipelineID getPipelineID() -
toString
- Overrides:
toStringin classSCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.ClosePipelineCommandProto>
-