Package org.apache.hadoop.hdfs.protocol
Class CacheDirectiveStats.Builder
java.lang.Object
org.apache.hadoop.hdfs.protocol.CacheDirectiveStats.Builder
- Enclosing class:
- CacheDirectiveStats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new CacheDirectiveStats populated with the set properties.setBytesCached(long bytesCached) Sets the bytes cached by this directive.setBytesNeeded(long bytesNeeded) Sets the bytes needed by this directive.setFilesCached(long filesCached) Sets the files cached by this directive.setFilesNeeded(long filesNeeded) Sets the files needed by this directive.setHasExpired(boolean hasExpired) Sets whether this directive has expired.
-
Constructor Details
-
Builder
public Builder()Creates an empty builder.
-
-
Method Details
-
build
Builds a new CacheDirectiveStats populated with the set properties.- Returns:
- New CacheDirectiveStats.
-
setBytesNeeded
Sets the bytes needed by this directive.- Parameters:
bytesNeeded- The bytes needed.- Returns:
- This builder, for call chaining.
-
setBytesCached
Sets the bytes cached by this directive.- Parameters:
bytesCached- The bytes cached.- Returns:
- This builder, for call chaining.
-
setFilesNeeded
Sets the files needed by this directive.- Parameters:
filesNeeded- The number of files needed- Returns:
- This builder, for call chaining.
-
setFilesCached
Sets the files cached by this directive.- Parameters:
filesCached- The number of files cached.- Returns:
- This builder, for call chaining.
-
setHasExpired
Sets whether this directive has expired.- Parameters:
hasExpired- if this directive has expired- Returns:
- This builder, for call chaining.
-