public class FileSystemSegmentHandle
extends java.lang.Object
implements io.pravega.segmentstore.storage.SegmentHandle
| Constructor and Description |
|---|
FileSystemSegmentHandle(java.lang.String streamSegmentName,
boolean isReadOnly)
Creates a new instance of FileSystem segment handle.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSegmentName() |
boolean |
isReadOnly() |
static FileSystemSegmentHandle |
readHandle(java.lang.String streamSegmentName) |
static FileSystemSegmentHandle |
writeHandle(java.lang.String streamSegmentName) |
public FileSystemSegmentHandle(java.lang.String streamSegmentName,
boolean isReadOnly)
streamSegmentName - Name of the segment.isReadOnly - Whether the segment is read only or not.public java.lang.String getSegmentName()
getSegmentName in interface io.pravega.segmentstore.storage.SegmentHandlepublic boolean isReadOnly()
isReadOnly in interface io.pravega.segmentstore.storage.SegmentHandlepublic static FileSystemSegmentHandle readHandle(java.lang.String streamSegmentName)
public static FileSystemSegmentHandle writeHandle(java.lang.String streamSegmentName)