public class GridFilesystem
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected ReplCache<java.lang.String,byte[]> |
data |
protected int |
default_chunk_size |
protected short |
default_repl_count |
protected ReplCache<java.lang.String,GridFile.Metadata> |
metadata |
构造器和说明 |
---|
GridFilesystem(ReplCache<java.lang.String,byte[]> data,
ReplCache<java.lang.String,GridFile.Metadata> metadata) |
GridFilesystem(ReplCache<java.lang.String,byte[]> data,
ReplCache<java.lang.String,GridFile.Metadata> metadata,
short default_repl_count,
int default_chunk_size)
Creates an instance.
|
限定符和类型 | 方法和说明 |
---|---|
java.io.File |
getFile(java.io.File parent,
java.lang.String child) |
java.io.File |
getFile(java.io.File parent,
java.lang.String child,
int chunk_size) |
java.io.File |
getFile(java.lang.String pathname) |
java.io.File |
getFile(java.lang.String pathname,
int chunk_size) |
java.io.File |
getFile(java.lang.String parent,
java.lang.String child) |
java.io.File |
getFile(java.lang.String parent,
java.lang.String child,
int chunk_size) |
java.io.InputStream |
getInput(java.io.File pathname) |
java.io.InputStream |
getInput(java.lang.String pathname) |
java.io.OutputStream |
getOutput(GridFile file) |
java.io.OutputStream |
getOutput(java.lang.String pathname) |
java.io.OutputStream |
getOutput(java.lang.String pathname,
boolean append) |
java.io.OutputStream |
getOutput(java.lang.String pathname,
boolean append,
short repl_count,
int chunk_size) |
void |
remove(java.lang.String path,
boolean synchronous) |
protected final ReplCache<java.lang.String,byte[]> data
protected final ReplCache<java.lang.String,GridFile.Metadata> metadata
protected final int default_chunk_size
protected final short default_repl_count
public GridFilesystem(ReplCache<java.lang.String,byte[]> data, ReplCache<java.lang.String,GridFile.Metadata> metadata, short default_repl_count, int default_chunk_size)
data
- metadata
- default_chunk_size
- public GridFilesystem(ReplCache<java.lang.String,byte[]> data, ReplCache<java.lang.String,GridFile.Metadata> metadata)
public java.io.File getFile(java.lang.String pathname)
public java.io.File getFile(java.lang.String pathname, int chunk_size)
public java.io.File getFile(java.lang.String parent, java.lang.String child)
public java.io.File getFile(java.lang.String parent, java.lang.String child, int chunk_size)
public java.io.File getFile(java.io.File parent, java.lang.String child)
public java.io.File getFile(java.io.File parent, java.lang.String child, int chunk_size)
public java.io.OutputStream getOutput(java.lang.String pathname) throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutput(java.lang.String pathname, boolean append) throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutput(java.lang.String pathname, boolean append, short repl_count, int chunk_size) throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutput(GridFile file) throws java.io.IOException
java.io.IOException
public java.io.InputStream getInput(java.lang.String pathname) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.io.InputStream getInput(java.io.File pathname) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void remove(java.lang.String path, boolean synchronous)