public class NormalFile extends RepoFile
Constructor and Description |
---|
NormalFile() |
Modifier and Type | Method and Description |
---|---|
Set<FileChunk> |
getFileChunks() |
long |
getLength()
Gets the file size in bytes.
|
String |
getSha1()
Gets the SHA-1 of the file.
|
boolean |
isInProgress()
Is this file in progress of being synced?
|
void |
setInProgress(boolean inProgress) |
void |
setLength(long length) |
void |
setSha1(String sha) |
getFile, getLastModified, getLastSyncFromRepositoryId, getLocalRevision, getName, getParent, getPath, getPathList, setLastModified, setLastSyncFromRepositoryId, setLocalRevision, setName, setParent
equals, getChanged, getCreated, getId, hashCode, setChanged, setCreated, toString_getProperties, toString
public NormalFile()
public long getLength()
It reflects the File.length
property.
public void setLength(long length)
public boolean isInProgress()
If yes, it is ignored in change-sets in order to prevent inconsistent data to propagate further.
TODO We should later implement a mechanism that parks all modifications locally (not in the DB, but in the meta-directory) before applying them to the file in one transaction.
true
, if it is currently in progress of being synced; false
otherwise.public void setInProgress(boolean inProgress)
public Set<FileChunk> getFileChunks()
Copyright © 2013–2019. All rights reserved.