|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.fuse.DeepFuse
org.basex.fuse.DeepFS
public final class DeepFS
DeepFS: The XQuery Filesystem Database-side implementation of DeepFS.
| Field Summary | |
|---|---|
int |
backingstoreID
Index backing store. |
Data |
data
Data reference. |
int |
dirID
Index References. |
int |
fileID
Index References. |
GUI |
gui
Data reference. |
int |
modeID
Index References. |
int |
mountpointID
Index mount point. |
int |
suffID
Index References. |
int |
timeID
Index References. |
int |
unknownID
Index References. |
| Fields inherited from interface org.basex.data.DataText |
|---|
ATT, ATT1, ATT2, BACKING, BACKINGSTORE, COM1, COM2, COMM, CONTENT, DATAATV, DATAFTX, DATAINFO, DATATBL, DATATMP, DATATXT, DBATVINDEX, DBCHOPPED, DBENCODING, DBENTITY, DBFNAME, DBFSIZE, DBFTCS, DBFTDC, DBFTSTEM, DBFTXINDEX, DBFZINDEX, DBHEIGHT, DBLASTID, DBNDOCS, DBSIZE, DBSTORAGE, DBTIME, DBTXTINDEX, DBUPTODATE, DBWRDINDEX, DEEPFS, DIR, E_AMP, E_CR, E_GT, E_LT, E_NL, E_QU, E_TAB, ELEM1, ELEM2, ELEM3, ELEM4, FILE, IDBSTORAGE, ISTORAGE, MODE, MOUNT, MOUNTPOINT, MTIME, NAME, NOBACKING, NOTMOUNTED, PI, PI1, PI2, RESULT, RESULTS, S_DEEPFS, S_MTIME, S_NAME, S_SIZE, S_SUFFIX, SIZE, STORAGE, SUFFIX, TABLEATS, TABLEDIST, TABLEKIND, TABLEKINDS, TABLENS, TABLEPRE, TABLEPREF, TABLESIZE, TABLEURI, TEXT, UNKNOWN |
| Constructor Summary | |
|---|---|
DeepFS(Data d)
Constructor. |
|
DeepFS(java.lang.String dbname,
boolean fuse)
Constructor for DeepShell and java only test cases (no mount). |
|
| Method Summary | |
|---|---|
int |
access(java.lang.String path,
int mode)
Check file access permissions. |
int |
bmap(java.lang.String path,
long blocksize,
long idx)
Map block index within file to block index within device. |
int |
chmod(java.lang.String path,
int mode)
Change the permission bits of a file. |
int |
chown(java.lang.String path,
int uid,
int gid)
Change the owner and group of a file. |
int |
create(java.lang.String path,
int mode)
Creates a new regular file. |
int |
destroy()
Clean up filesystem. |
int |
fgetattr(java.lang.String path)
Get attributes from an open file. |
int |
flush(java.lang.String path)
Possibly flush cached data. |
int |
fsync(java.lang.String path)
Synchronize file contents. |
int |
fsyncdir(java.lang.String path)
Synchronize directory contents. |
int |
ftruncate(java.lang.String path,
long off)
Change the size of an open file. |
int |
getattr(java.lang.String path)
Resolves path and returns id. id serves as index into stat array in native fuse implementation. |
int |
getxattr(java.lang.String path)
Get extended attributes. |
boolean |
isDir(int pre)
Checks if the specified node is a directory. |
boolean |
isFile(int pre)
Checks if the specified node is a file. |
void |
launch(int pre)
Opens the file which is defined by the specified pre value. |
int |
link(java.lang.String name1,
java.lang.String name2)
Create a hard link to a file. |
int |
listxattr(java.lang.String path)
List extended attributes. |
int |
lock(java.lang.String path,
int cmd)
Perform POSIX file locking operation. |
int |
mkdir(java.lang.String path,
int mode)
Creates a new directory. |
int |
mknod(java.lang.String path,
int mode,
int dev)
Create a file node. |
byte[] |
name(int pre)
Returns the name of a file. |
int |
nativeMount(java.lang.String mp,
java.lang.String bs)
Mount database as FUSE. |
void |
nativeShutDown()
Tell DeepFS that BaseX will shutdown. |
int |
nativeUnlink(java.lang.String pathname)
Unlink file in backing store. |
int |
open(java.lang.String path)
File open operation. |
int |
opendir(java.lang.String path)
Open directory. |
byte[] |
path(int pre)
Returns the absolute file path. |
byte[] |
read(java.lang.String path,
int length,
int offset)
Read data from an open file. |
java.lang.String |
readdir(java.lang.String path,
int offset)
Read directory. |
java.lang.String |
readlink(java.lang.String path)
Read the target of a symbolic link. |
int |
release(java.lang.String path)
Release an open file. |
int |
releasedir(java.lang.String path)
Release directory. |
int |
removexattr(java.lang.String path)
Remove extended attributes. |
int |
rename(java.lang.String from,
java.lang.String to)
Rename a file. |
int |
rmdir(java.lang.String path)
Remove a directory file. |
int |
setxattr(java.lang.String path)
Set extended attributes. |
byte[] |
size(int pre)
Returns the size of a file. |
int |
statfs(java.lang.String path)
Get file system statistics. |
int |
symlink(java.lang.String from,
java.lang.String to)
Make symbolic link to a file. |
int |
truncate(java.lang.String path,
long off)
Change the size of a file. |
int |
unlink(java.lang.String path)
Remove a file. |
int |
utimens(java.lang.String path)
Change the access and modification times of a file with nanosecond resolution. |
int |
write(java.lang.String path,
int length,
int offset,
byte[] mydata)
Write data to an open file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public GUI gui
public Data data
public int fileID
public int dirID
public int suffID
public int timeID
public int modeID
public int unknownID
public int mountpointID
public int backingstoreID
| Constructor Detail |
|---|
public DeepFS(Data d)
d - data reference
public DeepFS(java.lang.String dbname,
boolean fuse)
dbname - name of initially empty database.fuse - property value to be set for Prop.fuse| Method Detail |
|---|
public int nativeMount(java.lang.String mp,
java.lang.String bs)
mp - path where to mount BaseX.bs - path to backing storage root of this instance.
public int nativeUnlink(java.lang.String pathname)
pathname - to file to delete
public void nativeShutDown()
public boolean isFile(int pre)
pre - pre value
public boolean isDir(int pre)
pre - pre value
public byte[] path(int pre)
pre - pre value
public byte[] name(int pre)
pre - pre value
public byte[] size(int pre)
pre - pre value
public void launch(int pre)
pre - pre valuepublic int destroy()
DeepFuse
destroy in class DeepFuse
public int mkdir(java.lang.String path,
int mode)
mkdir in class DeepFusepath - to directory to be createdmode - of directory
public int create(java.lang.String path,
int mode)
create in class DeepFusepath - to the file to be createdmode - of regular file
public int getattr(java.lang.String path)
getattr in class DeepFusepath - to be resolved
public int unlink(java.lang.String path)
DeepFuse
unlink in class DeepFusepath - to file to be removed
public int opendir(java.lang.String path)
DeepFuse
opendir in class DeepFusepath - name of the file
public int rmdir(java.lang.String path)
DeepFuse
rmdir in class DeepFusepath - to file to be removed
public java.lang.String readdir(java.lang.String path,
int offset)
DeepFuse
readdir in class DeepFusepath - name of the directory to readoffset - of directory entry requested
public int rename(java.lang.String from,
java.lang.String to)
DeepFuse
rename in class DeepFusefrom - path to file to be renamedto - new name
public int access(java.lang.String path,
int mode)
DeepFuse
access in class DeepFusepath - name of the filemode - permission to check
public int bmap(java.lang.String path,
long blocksize,
long idx)
DeepFuse
bmap in class DeepFusepath - name of the fileblocksize - block sizeidx - block index
public int chmod(java.lang.String path,
int mode)
DeepFuse
chmod in class DeepFusepath - name of the filemode - permissions to be set
public int chown(java.lang.String path,
int uid,
int gid)
DeepFuse
chown in class DeepFusepath - name of the fileuid - ownergid - group
public int fgetattr(java.lang.String path)
DeepFuse
fgetattr in class DeepFusepath - name of the file
public int flush(java.lang.String path)
DeepFuse
flush in class DeepFusepath - name of the file
public int fsync(java.lang.String path)
DeepFuse
fsync in class DeepFusepath - name of the file
public int fsyncdir(java.lang.String path)
DeepFuse
fsyncdir in class DeepFusepath - name of the file
public int ftruncate(java.lang.String path,
long off)
DeepFuse
ftruncate in class DeepFusepath - name of the fileoff - new file size
public int getxattr(java.lang.String path)
DeepFuse
getxattr in class DeepFusepath - name of the file
public int link(java.lang.String name1,
java.lang.String name2)
DeepFuse
link in class DeepFusename1 - link sourcename2 - link target
public int listxattr(java.lang.String path)
DeepFuse
listxattr in class DeepFusepath - name of the file
public int lock(java.lang.String path,
int cmd)
DeepFuse
lock in class DeepFusepath - name of the filecmd - locking command id
public int mknod(java.lang.String path,
int mode,
int dev)
DeepFuse
mknod in class DeepFusepath - name of the file to be created.mode - specifies both the permissions to use and the type of node to
be created.dev - If the file type is S_IFCHR or S_IFBLK then dev specifies the
major and minor numbers of the newly created device special file;
otherwise it is ignored.
public int open(java.lang.String path)
DeepFuse
open in class DeepFusepath - name of the file
public byte[] read(java.lang.String path,
int length,
int offset)
DeepFuse
read in class DeepFusepath - name of the filelength - number of bytes to readoffset - from which to read
public java.lang.String readlink(java.lang.String path)
DeepFuse
readlink in class DeepFusepath - to the link
public int release(java.lang.String path)
DeepFuse
release in class DeepFusepath - name of the file
public int releasedir(java.lang.String path)
DeepFuse
releasedir in class DeepFusepath - name of the file
public int removexattr(java.lang.String path)
DeepFuse
removexattr in class DeepFusepath - name of the file
public int setxattr(java.lang.String path)
DeepFuse
setxattr in class DeepFusepath - name of the file
public int statfs(java.lang.String path)
DeepFuse
statfs in class DeepFusepath - name of the file
public int symlink(java.lang.String from,
java.lang.String to)
DeepFuse
symlink in class DeepFusefrom - link sourceto - link target
public int truncate(java.lang.String path,
long off)
DeepFuse
truncate in class DeepFusepath - name of the fileoff - size to be set
public int utimens(java.lang.String path)
DeepFuse
utimens in class DeepFusepath - name of the file
public int write(java.lang.String path,
int length,
int offset,
byte[] mydata)
DeepFuse
write in class DeepFusepath - name of the filelength - number of bytes to writeoffset - from which to writemydata - buffer from which to write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||