org.apache.mesos
Class Log

java.lang.Object
  extended by org.apache.mesos.Log

public class Log
extends Object

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

Log

public Log(int quorum,
           String path,
           Set<String> pids)

Log

public Log(int quorum,
           String path,
           String servers,
           long timeout,
           TimeUnit unit,
           String znode)

Log

public Log(int quorum,
           String path,
           String servers,
           long timeout,
           TimeUnit unit,
           String znode,
           String scheme,
           byte[] credentials)
Method Detail

position

public Log.Position position(byte[] identity)
Returns a position based off of the bytes recovered from Position.identity().


initialize

protected void initialize(int quorum,
                          String path,
                          Set<String> pids)

initialize

protected void initialize(int quorum,
                          String path,
                          String servers,
                          long timeout,
                          TimeUnit unit,
                          String znode)

initialize

protected void initialize(int quorum,
                          String path,
                          String servers,
                          long timeout,
                          TimeUnit unit,
                          String znode,
                          String scheme,
                          byte[] credentials)

finalize

protected void finalize()
Overrides:
finalize in class Object


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.