| Package | Description |
|---|---|
| org.apache.mesos |
| Modifier and Type | Field and Description |
|---|---|
Log.Position |
Log.Entry.position
The position of this entry.
|
| Modifier and Type | Method and Description |
|---|---|
Log.Position |
Log.Writer.append(byte[] data,
long timeout,
TimeUnit unit)
Attempts to append to the log with the specified data returning
the new end position of the log if successful.
|
Log.Position |
Log.Reader.beginning()
Returns the beginning position of the log (might be out of date
with respect to another replica).
|
Log.Position |
Log.Reader.ending()
Returns the ending position of the log (might be out of date
with respect to another replica).
|
Log.Position |
Log.position(byte[] identity)
Returns a position based off of the bytes recovered from
Position.identity().
|
Log.Position |
Log.Writer.truncate(Log.Position to,
long timeout,
TimeUnit unit)
Attempts to truncate the log (from the beginning to the
specified position exclusive) If the position is invalid, an
Log.WriterFailedException will get thrown. |
| Modifier and Type | Method and Description |
|---|---|
int |
Log.Position.compareTo(Log.Position that) |
List<Log.Entry> |
Log.Reader.read(Log.Position from,
Log.Position to,
long timeout,
TimeUnit unit)
Attempts to read from the log between the specified positions
(inclusive).
|
Log.Position |
Log.Writer.truncate(Log.Position to,
long timeout,
TimeUnit unit)
Attempts to truncate the log (from the beginning to the
specified position exclusive) If the position is invalid, an
Log.WriterFailedException will get thrown. |
| Constructor and Description |
|---|
Log.Entry(Log.Position position,
byte[] data)
Creates a log entry.
|
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.