org.infinispan.io
Class GridFilesystem
java.lang.Object
org.infinispan.io.GridFilesystem
public class GridFilesystem
- extends Object
Entry point for GridFile and GridInputStream / GridOutputStream
- Author:
- Bela Ban
Method Summary |
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,
int chunk_size)
|
void |
remove(String path,
boolean synchronous)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected final Cache<String,byte[]> data
metadata
protected final Cache<String,GridFile.Metadata> metadata
default_chunk_size
protected final int default_chunk_size
GridFilesystem
public GridFilesystem(Cache<String,byte[]> data,
Cache<String,GridFile.Metadata> metadata,
int default_chunk_size)
- Creates an instance. The data and metadata caches should already have been setup and started
- Parameters:
data
- metadata
- default_chunk_size
-
GridFilesystem
public GridFilesystem(Cache<String,byte[]> data,
Cache<String,GridFile.Metadata> metadata)
getFile
public File getFile(String pathname)
getFile
public File getFile(String pathname,
int chunk_size)
getFile
public File getFile(String parent,
String child)
getFile
public File getFile(String parent,
String child,
int chunk_size)
getFile
public File getFile(File parent,
String child)
getFile
public File getFile(File parent,
String child,
int chunk_size)
getOutput
public OutputStream getOutput(String pathname)
throws IOException
- Throws:
IOException
getOutput
public OutputStream getOutput(String pathname,
boolean append)
throws IOException
- Throws:
IOException
getOutput
public OutputStream getOutput(String pathname,
boolean append,
int chunk_size)
throws IOException
- Throws:
IOException
getOutput
public OutputStream getOutput(GridFile file)
throws IOException
- Throws:
IOException
getInput
public InputStream getInput(String pathname)
throws FileNotFoundException
- Throws:
FileNotFoundException
getInput
public InputStream getInput(File pathname)
throws FileNotFoundException
- Throws:
FileNotFoundException
remove
public void remove(String path,
boolean synchronous)
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.