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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RefreshVolumeUsageCommandgetFromProtobuf(org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.RefreshVolumeUsageCommandProto refreshVolumeUsageProto) org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.RefreshVolumeUsageCommandProtogetProto()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
-
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:
getTypein classSCMCommand<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:SCMCommandGets the protobuf message of this object.- Specified by:
getProtoin classSCMCommand<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
- Overrides:
toStringin classSCMCommand<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.RefreshVolumeUsageCommandProto>
-