org.apache.hadoop.hdfs.protocol
Class CacheDirectiveStats.Builder

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

public static class CacheDirectiveStats.Builder
extends Object


Constructor Summary
CacheDirectiveStats.Builder()
          Creates an empty builder.
 
Method Summary
 CacheDirectiveStats build()
          Builds a new CacheDirectiveStats populated with the set properties.
 CacheDirectiveStats.Builder setBytesCached(long bytesCached)
          Sets the bytes cached by this directive.
 CacheDirectiveStats.Builder setBytesNeeded(long bytesNeeded)
          Sets the bytes needed by this directive.
 CacheDirectiveStats.Builder setFilesCached(long filesCached)
          Sets the files cached by this directive.
 CacheDirectiveStats.Builder setFilesNeeded(long filesNeeded)
          Sets the files needed by this directive.
 CacheDirectiveStats.Builder setHasExpired(boolean hasExpired)
          Sets whether this directive has expired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheDirectiveStats.Builder

public CacheDirectiveStats.Builder()
Creates an empty builder.

Method Detail

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.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.