Package org.jgroups.blocks
Class GridFilesystem
java.lang.Object
org.jgroups.blocks.GridFilesystem
Entry point for GridFile and GridInputStream / GridOutputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final shortprotected final ReplCache<String, GridFile.Metadata> -
Constructor Summary
ConstructorsConstructorDescriptionGridFilesystem(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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
-
Field Details
-
data
-
metadata
-
default_chunk_size
protected final int default_chunk_size -
default_repl_count
protected final short default_repl_count
-
-
Constructor Details
-
GridFilesystem
public GridFilesystem(ReplCache<String, byte[]> data, ReplCache<String, GridFile.Metadata> metadata, short default_repl_count, 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
-
-
Method Details
-
getFile
-
getFile
-
getFile
-
getFile
-
getFile
-
getFile
-
getOutput
- Throws:
IOException
-
getOutput
- Throws:
IOException
-
getOutput
public OutputStream getOutput(String pathname, boolean append, short repl_count, int chunk_size) throws IOException - Throws:
IOException
-
getOutput
- Throws:
IOException
-
getInput
- Throws:
FileNotFoundException
-
getInput
- Throws:
FileNotFoundException
-
remove
-