org.apache.hadoop.util.IntrusiveCollection.Element@Private
public final class CacheDirective
extends java.lang.Object
implements org.apache.hadoop.util.IntrusiveCollection.Element
| Constructor | Description |
|---|---|
CacheDirective(long id,
java.lang.String path,
short replication,
long expiryTime) |
|
CacheDirective(org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo info) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addBytesCached(long bytes) |
|
void |
addBytesNeeded(long bytes) |
|
void |
addFilesCached(long files) |
|
void |
addFilesNeeded(long files) |
|
boolean |
equals(java.lang.Object o) |
|
long |
getBytesCached() |
|
long |
getBytesNeeded() |
|
long |
getExpiryTime() |
|
java.lang.String |
getExpiryTimeString() |
|
long |
getFilesCached() |
|
long |
getFilesNeeded() |
|
long |
getId() |
|
org.apache.hadoop.util.IntrusiveCollection.Element |
getNext(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list) |
|
java.lang.String |
getPath() |
|
CachePool |
getPool() |
|
org.apache.hadoop.util.IntrusiveCollection.Element |
getPrev(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list) |
|
short |
getReplication() |
|
int |
hashCode() |
|
void |
insertInternal(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list,
org.apache.hadoop.util.IntrusiveCollection.Element prev,
org.apache.hadoop.util.IntrusiveCollection.Element next) |
|
boolean |
isInList(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list) |
|
void |
removeInternal(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list) |
|
void |
resetStatistics() |
Resets the byte and file statistics being tracked by this CacheDirective.
|
void |
setNext(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list,
org.apache.hadoop.util.IntrusiveCollection.Element next) |
|
void |
setPrev(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list,
org.apache.hadoop.util.IntrusiveCollection.Element prev) |
|
org.apache.hadoop.hdfs.protocol.CacheDirectiveEntry |
toEntry() |
|
org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo |
toInfo() |
Returns a
CacheDirectiveInfo based on this CacheDirective. |
org.apache.hadoop.hdfs.protocol.CacheDirectiveStats |
toStats() |
|
java.lang.String |
toString() |
public CacheDirective(org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo info)
public CacheDirective(long id,
java.lang.String path,
short replication,
long expiryTime)
public long getId()
public java.lang.String getPath()
public short getReplication()
public CachePool getPool()
public long getExpiryTime()
public java.lang.String getExpiryTimeString()
public org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo toInfo()
CacheDirectiveInfo based on this CacheDirective.
This always sets an absolute expiry time, never a relative TTL.
public org.apache.hadoop.hdfs.protocol.CacheDirectiveStats toStats()
public org.apache.hadoop.hdfs.protocol.CacheDirectiveEntry toEntry()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void resetStatistics()
public long getBytesNeeded()
public void addBytesNeeded(long bytes)
public long getBytesCached()
public void addBytesCached(long bytes)
public long getFilesNeeded()
public void addFilesNeeded(long files)
public long getFilesCached()
public void addFilesCached(long files)
public void insertInternal(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list,
org.apache.hadoop.util.IntrusiveCollection.Element prev,
org.apache.hadoop.util.IntrusiveCollection.Element next)
insertInternal in interface org.apache.hadoop.util.IntrusiveCollection.Elementpublic void setPrev(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list,
org.apache.hadoop.util.IntrusiveCollection.Element prev)
setPrev in interface org.apache.hadoop.util.IntrusiveCollection.Elementpublic void setNext(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list,
org.apache.hadoop.util.IntrusiveCollection.Element next)
setNext in interface org.apache.hadoop.util.IntrusiveCollection.Elementpublic void removeInternal(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list)
removeInternal in interface org.apache.hadoop.util.IntrusiveCollection.Elementpublic org.apache.hadoop.util.IntrusiveCollection.Element getPrev(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list)
getPrev in interface org.apache.hadoop.util.IntrusiveCollection.Elementpublic org.apache.hadoop.util.IntrusiveCollection.Element getNext(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list)
getNext in interface org.apache.hadoop.util.IntrusiveCollection.Elementpublic boolean isInList(org.apache.hadoop.util.IntrusiveCollection<? extends org.apache.hadoop.util.IntrusiveCollection.Element> list)
isInList in interface org.apache.hadoop.util.IntrusiveCollection.ElementCopyright © 2008–2025 Apache Software Foundation. All rights reserved.