public class FilelistenerWriteTrx extends Object implements IFilelistenerWriteTrx
Constructor and Description |
---|
FilelistenerWriteTrx(IBucketWriteTrx pPageTrx,
ISession pSession) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort all modifications of the exclusive write transaction.
|
void |
addEmptyFile(String pRelativePath)
Add an empty file in case of ENTRY_CREATE event.
|
void |
addFile(File pFile,
String pRelativePath)
Add a new file to the system
|
void |
close()
Close this transaction
|
void |
commit()
Non-blocking commit in TT
|
void |
commitBlocked()
Blocking commit in TT
|
boolean |
fileExists(String pRelativePath)
The returned array consists of all the relative paths there are in the storage.
|
int |
getCount() |
String[] |
getFilePaths()
The returned array consists of all the relative paths there are in the storage.
|
File |
getFullFile(String pRelativePath)
This method allows you to get a full file using the node key of the
header
|
boolean |
isClosed()
Check whether or not this transaction has been closed
|
void |
removeFile(String pRelativePath)
Remove file from desired path
|
public FilelistenerWriteTrx(IBucketWriteTrx pPageTrx, ISession pSession) throws TTException
TTException
public String[] getFilePaths()
getFilePaths
in interface IFilelistenerReadTrx
public int getCount()
getCount
in interface IFilelistenerReadTrx
getCount
in interface IFilelistenerWriteTrx
public boolean fileExists(String pRelativePath)
fileExists
in interface IFilelistenerReadTrx
public File getFullFile(String pRelativePath) throws TTIOException, IOException
getFullFile
in interface IFilelistenerReadTrx
TTIOException
IOException
public void close() throws TTIOException
close
in interface IFilelistenerReadTrx
TTIOException
public boolean isClosed()
isClosed
in interface IFilelistenerReadTrx
public void addEmptyFile(String pRelativePath) throws TTException, IOException
addEmptyFile
in interface IFilelistenerWriteTrx
TTException
IOException
public void addFile(File pFile, String pRelativePath) throws TTException, IOException
addFile
in interface IFilelistenerWriteTrx
TTException
IOException
public void removeFile(String pRelativePath) throws TTException
removeFile
in interface IFilelistenerWriteTrx
TTException
- if node couldn't be removedpublic void commit() throws TTException
commit
in interface IFilelistenerWriteTrx
TTException
- if this revision couldn't be commitedpublic void commitBlocked() throws TTException
commitBlocked
in interface IFilelistenerWriteTrx
TTException
- if this revision couldn't be commitedpublic void abort() throws TTException
abort
in interface IFilelistenerWriteTrx
TTIOException
- if this revision couldn't be abortedTTException
Copyright © 2013. All Rights Reserved.