public class InodeFile extends Inode
Constructor and Description |
---|
InodeFile(String name,
int id,
int parentId,
long blockSizeByte,
long creationTimeMs) |
compareTo, equals, getCreationTimeMs, getId, getName, getParentId, hashCode, isDirectory, isFile, isPinned, reverseId, setName, setParentId, setPinned
writeElement
public InodeFile(String name, int id, int parentId, long blockSizeByte, long creationTimeMs)
public void addBlock(BlockInfo blockInfo) throws BlockInfoException
BlockInfoException
public void addLocation(int blockIndex, long workerId, NetAddress workerAddress) throws BlockInfoException
BlockInfoException
public ClientFileInfo generateClientFileInfo(String path)
generateClientFileInfo
in class Inode
public long getBlockIdBasedOnOffset(long offset)
public List<NetAddress> getBlockLocations(int blockIndex) throws BlockInfoException
BlockInfoException
public long getBlockSizeByte()
public String getUfsPath()
public ClientBlockInfo getClientBlockInfo(int blockIndex) throws BlockInfoException
BlockInfoException
public List<ClientBlockInfo> getClientBlockInfos()
public int getDependencyId()
public long getLength()
public long getNewBlockId()
public int getNumberOfBlocks()
public boolean hasCheckpointed()
public boolean isCache()
public boolean isComplete()
public boolean isFullyInMemory()
public void removeLocation(int blockIndex, long workerId) throws BlockInfoException
BlockInfoException
public void setCache(boolean cache)
public void setUfsPath(String ufsPath)
public void setComplete()
public void setComplete(boolean complete)
public void setDependencyId(int dependencyId)
public void setLength(long length) throws SuspectedFileSizeException, BlockInfoException
public void writeImage(com.fasterxml.jackson.databind.ObjectWriter objWriter, DataOutputStream dos) throws IOException
IOException
Copyright © 2014. All rights reserved.