Class RefreshVolumeUsageCommand

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

public class RefreshVolumeUsageCommand extends SCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.RefreshVolumeUsageCommandProto>
Asks datanode to refresh disk usage info immediately.
  • Constructor Details

    • RefreshVolumeUsageCommand

      public RefreshVolumeUsageCommand()
  • 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.RefreshVolumeUsageCommandProto>
      Returns:
      Type
    • getProto

      public org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.RefreshVolumeUsageCommandProto 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.RefreshVolumeUsageCommandProto>
      Returns:
      A protobuf message.
    • getFromProtobuf

      public static RefreshVolumeUsageCommand getFromProtobuf(org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.RefreshVolumeUsageCommandProto refreshVolumeUsageProto)
    • toString

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