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 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:
      getType in class SCMCommand<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: SCMCommand
      Gets the protobuf message of this object.
      Specified by:
      getProto in class SCMCommand<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

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