public class GridFilesystem extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ReplCache<String,byte[]> |
data |
protected int |
default_chunk_size |
protected short |
default_repl_count |
protected ReplCache<String,GridFile.Metadata> |
metadata |
| Constructor and Description |
|---|
GridFilesystem(ReplCache<String,byte[]> data,
ReplCache<String,GridFile.Metadata> metadata) |
GridFilesystem(ReplCache<String,byte[]> data,
ReplCache<String,GridFile.Metadata> metadata,
short default_repl_count,
int default_chunk_size)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getFile(File parent,
String child) |
File |
getFile(File parent,
String child,
int chunk_size) |
File |
getFile(String pathname) |
File |
getFile(String pathname,
int chunk_size) |
File |
getFile(String parent,
String child) |
File |
getFile(String parent,
String child,
int chunk_size) |
InputStream |
getInput(File pathname) |
InputStream |
getInput(String pathname) |
OutputStream |
getOutput(GridFile file) |
OutputStream |
getOutput(String pathname) |
OutputStream |
getOutput(String pathname,
boolean append) |
OutputStream |
getOutput(String pathname,
boolean append,
short repl_count,
int chunk_size) |
void |
remove(String path,
boolean synchronous) |
protected final ReplCache<String,GridFile.Metadata> metadata
protected final int default_chunk_size
protected final short default_repl_count
public GridFilesystem(ReplCache<String,byte[]> data, ReplCache<String,GridFile.Metadata> metadata, short default_repl_count, int default_chunk_size)
data - metadata - default_chunk_size - public GridFilesystem(ReplCache<String,byte[]> data, ReplCache<String,GridFile.Metadata> metadata)
public OutputStream getOutput(String pathname) throws IOException
IOExceptionpublic OutputStream getOutput(String pathname, boolean append) throws IOException
IOExceptionpublic OutputStream getOutput(String pathname, boolean append, short repl_count, int chunk_size) throws IOException
IOExceptionpublic OutputStream getOutput(GridFile file) throws IOException
IOExceptionpublic InputStream getInput(String pathname) throws FileNotFoundException
FileNotFoundExceptionpublic InputStream getInput(File pathname) throws FileNotFoundException
FileNotFoundExceptionpublic void remove(String path, boolean synchronous)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.