|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hdfs.protocol.CacheDirectiveStats.Builder
public static class CacheDirectiveStats.Builder
| 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 |
|---|
public CacheDirectiveStats.Builder()
| Method Detail |
|---|
public CacheDirectiveStats build()
public CacheDirectiveStats.Builder setBytesNeeded(long bytesNeeded)
bytesNeeded - The bytes needed.
public CacheDirectiveStats.Builder setBytesCached(long bytesCached)
bytesCached - The bytes cached.
public CacheDirectiveStats.Builder setFilesNeeded(long filesNeeded)
filesNeeded - The number of files needed
public CacheDirectiveStats.Builder setFilesCached(long filesCached)
filesCached - The number of files cached.
public CacheDirectiveStats.Builder setHasExpired(boolean hasExpired)
hasExpired - if this directive has expired
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||