|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mesos.Log.Reader
public static class Log.Reader
Provides read access to the Log. This class is safe for
use from multiple threads and for the life of the log regardless
of any exceptions thrown from its methods.
| Constructor Summary | |
|---|---|
Log.Reader(Log log)
|
|
| Method Summary | |
|---|---|
Log.Position |
beginning()
Returns the beginning position of the log (might be out of date with respect to another replica). |
Log.Position |
ending()
Returns the ending position of the log (might be out of date with respect to another replica). |
protected void |
finalize()
|
protected void |
initialize(Log log)
|
List<Log.Entry> |
read(Log.Position from,
Log.Position to,
long timeout,
TimeUnit unit)
Attempts to read from the log between the specified positions (inclusive). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log.Reader(Log log)
| Method Detail |
|---|
public List<Log.Entry> read(Log.Position from,
Log.Position to,
long timeout,
TimeUnit unit)
throws TimeoutException,
Log.OperationFailedException
TimeoutException
Log.OperationFailedExceptionpublic Log.Position beginning()
public Log.Position ending()
protected void initialize(Log log)
protected void finalize()
finalize in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||