org.apache.hadoop.hdfs.protocol
Class CacheDirectiveInfo

java.lang.Object
  extended by org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo

@InterfaceStability.Evolving
@InterfaceAudience.Public
public class CacheDirectiveInfo
extends Object

Describes a path-based cache directive.


Nested Class Summary
static class CacheDirectiveInfo.Builder
          A builder for creating new CacheDirectiveInfo instances.
static class CacheDirectiveInfo.Expiration
          Denotes a relative or absolute expiration time for a CacheDirective.
 
Method Summary
 boolean equals(Object o)
           
 CacheDirectiveInfo.Expiration getExpiration()
           
 Long getId()
           
 org.apache.hadoop.fs.Path getPath()
           
 String getPool()
           
 Short getReplication()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public Long getId()
Returns:
The ID of this directive.

getPath

public org.apache.hadoop.fs.Path getPath()
Returns:
The path used in this request.

getReplication

public Short getReplication()
Returns:
The number of times the block should be cached.

getPool

public String getPool()
Returns:
The pool used in this request.

getExpiration

public CacheDirectiveInfo.Expiration getExpiration()
Returns:
When this directive expires.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All Rights Reserved.