|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hdfs.protocol.CacheDirectiveInfo.Builder
public static class CacheDirectiveInfo.Builder
A builder for creating new CacheDirectiveInfo instances.
| Constructor Summary | |
|---|---|
CacheDirectiveInfo.Builder()
Creates an empty builder. |
|
CacheDirectiveInfo.Builder(CacheDirectiveInfo directive)
Creates a builder with all elements set to the same values as the given CacheDirectiveInfo. |
|
| Method Summary | |
|---|---|
CacheDirectiveInfo |
build()
Builds a new CacheDirectiveInfo populated with the set properties. |
CacheDirectiveInfo.Builder |
setExpiration(CacheDirectiveInfo.Expiration expiration)
Sets when the CacheDirective should expire. |
CacheDirectiveInfo.Builder |
setId(Long id)
Sets the id used in this request. |
CacheDirectiveInfo.Builder |
setPath(org.apache.hadoop.fs.Path path)
Sets the path used in this request. |
CacheDirectiveInfo.Builder |
setPool(String pool)
Sets the pool used in this request. |
CacheDirectiveInfo.Builder |
setReplication(Short replication)
Sets the replication used in this request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheDirectiveInfo.Builder()
public CacheDirectiveInfo.Builder(CacheDirectiveInfo directive)
| Method Detail |
|---|
public CacheDirectiveInfo build()
public CacheDirectiveInfo.Builder setId(Long id)
id - The id used in this request.
public CacheDirectiveInfo.Builder setPath(org.apache.hadoop.fs.Path path)
path - The path used in this request.
public CacheDirectiveInfo.Builder setReplication(Short replication)
replication - The replication used in this request.
public CacheDirectiveInfo.Builder setPool(String pool)
pool - The pool used in this request.
public CacheDirectiveInfo.Builder setExpiration(CacheDirectiveInfo.Expiration expiration)
CacheDirectiveInfo.Expiration can specify either an absolute or
relative expiration time.
expiration - when this CacheDirective should expire
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||