Class CacheDirectiveStats.Builder

java.lang.Object
org.apache.hadoop.hdfs.protocol.CacheDirectiveStats.Builder
Enclosing class:
CacheDirectiveStats

public static class CacheDirectiveStats.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
      Creates an empty builder.
  • Method Details

    • build

      public CacheDirectiveStats build()
      Builds a new CacheDirectiveStats populated with the set properties.
      Returns:
      New CacheDirectiveStats.
    • setBytesNeeded

      public CacheDirectiveStats.Builder setBytesNeeded(long bytesNeeded)
      Sets the bytes needed by this directive.
      Parameters:
      bytesNeeded - The bytes needed.
      Returns:
      This builder, for call chaining.
    • setBytesCached

      public CacheDirectiveStats.Builder setBytesCached(long bytesCached)
      Sets the bytes cached by this directive.
      Parameters:
      bytesCached - The bytes cached.
      Returns:
      This builder, for call chaining.
    • setFilesNeeded

      public CacheDirectiveStats.Builder setFilesNeeded(long filesNeeded)
      Sets the files needed by this directive.
      Parameters:
      filesNeeded - The number of files needed
      Returns:
      This builder, for call chaining.
    • setFilesCached

      public CacheDirectiveStats.Builder setFilesCached(long filesCached)
      Sets the files cached by this directive.
      Parameters:
      filesCached - The number of files cached.
      Returns:
      This builder, for call chaining.
    • setHasExpired

      public CacheDirectiveStats.Builder setHasExpired(boolean hasExpired)
      Sets whether this directive has expired.
      Parameters:
      hasExpired - if this directive has expired
      Returns:
      This builder, for call chaining.