|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mesos.Log
public class Log
Provides access to a distributed append only log. The log can be
read from using a Log.Reader and written to using a Log.Writer.
| Nested Class Summary | |
|---|---|
static class |
Log.Entry
Represents an opaque data entry in the Log with a Log.Position. |
static class |
Log.OperationFailedException
An exception that gets thrown when an error occurs while performing a read or write operation. |
static class |
Log.Position
An opaque identifier of a log entry's position within the log. |
static class |
Log.Reader
Provides read access to the Log. |
static class |
Log.Writer
Provides write access to the Log. |
static class |
Log.WriterFailedException
An exception that gets thrown when a writer no longer has the ability to perform operations (e.g., because it was superseded by another writer). |
| Constructor Summary | |
|---|---|
Log(int quorum,
String path,
Set<String> pids)
|
|
Log(int quorum,
String path,
String servers,
long timeout,
TimeUnit unit,
String znode)
|
|
Log(int quorum,
String path,
String servers,
long timeout,
TimeUnit unit,
String znode,
String scheme,
byte[] credentials)
|
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
protected void |
initialize(int quorum,
String path,
Set<String> pids)
|
protected void |
initialize(int quorum,
String path,
String servers,
long timeout,
TimeUnit unit,
String znode)
|
protected void |
initialize(int quorum,
String path,
String servers,
long timeout,
TimeUnit unit,
String znode,
String scheme,
byte[] credentials)
|
Log.Position |
position(byte[] identity)
Returns a position based off of the bytes recovered from Position.identity(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log(int quorum,
String path,
Set<String> pids)
public Log(int quorum,
String path,
String servers,
long timeout,
TimeUnit unit,
String znode)
public Log(int quorum,
String path,
String servers,
long timeout,
TimeUnit unit,
String znode,
String scheme,
byte[] credentials)
| Method Detail |
|---|
public Log.Position position(byte[] identity)
protected void initialize(int quorum,
String path,
Set<String> pids)
protected void initialize(int quorum,
String path,
String servers,
long timeout,
TimeUnit unit,
String znode)
protected void initialize(int quorum,
String path,
String servers,
long timeout,
TimeUnit unit,
String znode,
String scheme,
byte[] credentials)
protected void finalize()
finalize in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||