|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileOptions
Various options for the capture file. These options change the runtime properties of the open capture file and affect performance and functionality of the capture file API.
| Nested Class Summary | |
|---|---|
static class |
FileOptions.FileProperty
Various properties that can be applied to capture files. |
static class |
FileOptions.MemoryModel
Options for changing the memory model used by the implementation. |
| Method Summary | |
|---|---|
int |
getBufferSize()
Returns the current prefetch buffer size. |
java.util.Set<FileOptions.FileProperty> |
getFileProperties()
Gets the immutable set of currently set properties. |
java.nio.channels.FileChannel.MapMode |
getMemoryMapMode()
|
FileOptions.MemoryModel |
getMemoryModel()
Gets the current active memory model. |
void |
setBufferSize(int size)
Changes the size of the prefetch buffer for the current MemoryModel. |
void |
setFileProperty(FileOptions.FileProperty property)
Sets a new property on the file. |
void |
setMemoryMapMode(java.nio.channels.FileChannel.MapMode mode)
Sets the memory mapping mode for the FileOptions.MemoryModel.MappedFile mode. |
void |
setMemoryModel(FileOptions.MemoryModel model)
Changes the current memory model to the one specified. |
| Method Detail |
|---|
void setMemoryModel(FileOptions.MemoryModel model)
model - the model to change toFileOptions.MemoryModel.ByteArray,
FileOptions.MemoryModel.DirectBuffer,
FileOptions.MemoryModel.MappedFileFileOptions.MemoryModel getMemoryModel()
FileOptions.MemoryModel.ByteArray,
FileOptions.MemoryModel.DirectBuffer,
FileOptions.MemoryModel.MappedFile
void setMemoryMapMode(java.nio.channels.FileChannel.MapMode mode)
throws java.lang.IllegalArgumentException
FileOptions.MemoryModel.MappedFile mode.
If the model is not of the MappedFile type, illegalArgumentException is thrown.
mode - mode to set
java.lang.IllegalArgumentException - thrown if model is not of MappedFilejava.nio.channels.FileChannel.MapMode getMemoryMapMode()
void setBufferSize(int size)
size - new prefetch buffer size#ByteArray,
#DirectBuffer,
#MappedFileint getBufferSize()
void setFileProperty(FileOptions.FileProperty property)
property - property to setjava.util.Set<FileOptions.FileProperty> getFileProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||