tachyon
Class InodeFile

java.lang.Object
  extended by tachyon.Inode
      extended by tachyon.InodeFile
All Implemented Interfaces:
Comparable<Inode>

public class InodeFile
extends Inode

Tachyon file system's file representation in master.


Field Summary
static long UNINITIAL_VALUE
           
 
Fields inherited from class tachyon.Inode
TYPE
 
Constructor Summary
InodeFile(String name, int id, int parentId)
           
 
Method Summary
 void addLocation(long workerId, NetAddress workerAddress)
           
 String getCheckpointPath()
           
 long getLength()
           
 List<NetAddress> getLocations()
           
 boolean hasCheckpointed()
           
 boolean isCache()
           
 boolean isInMemory()
           
 boolean isPin()
           
 boolean isReady()
           
 void removeLocation(long workerId)
           
 void setCache(boolean cache)
           
 void setCheckpointPath(String checkpointPath)
           
 void setLength(long length)
           
 void setPin(boolean pin)
           
 String toString()
           
 
Methods inherited from class tachyon.Inode
compareTo, equals, getCreationTimeMs, getId, getInodeType, getName, getParentId, hashCode, isDirectory, isFile, reverseId, setName, setParentId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNINITIAL_VALUE

public static final long UNINITIAL_VALUE
See Also:
Constant Field Values
Constructor Detail

InodeFile

public InodeFile(String name,
                 int id,
                 int parentId)
Method Detail

getLength

public long getLength()

setLength

public void setLength(long length)
               throws SuspectedFileSizeException
Throws:
SuspectedFileSizeException

isReady

public boolean isReady()

toString

public String toString()
Overrides:
toString in class Inode

setCheckpointPath

public void setCheckpointPath(String checkpointPath)

getCheckpointPath

public String getCheckpointPath()

addLocation

public void addLocation(long workerId,
                        NetAddress workerAddress)

removeLocation

public void removeLocation(long workerId)

getLocations

public List<NetAddress> getLocations()
                              throws IOException
Throws:
IOException

isInMemory

public boolean isInMemory()

setPin

public void setPin(boolean pin)

isPin

public boolean isPin()

setCache

public void setCache(boolean cache)

isCache

public boolean isCache()

hasCheckpointed

public boolean hasCheckpointed()


Copyright © 2013. All Rights Reserved.