org.apache.hadoop.hdfs.server.protocol
Class RemoteEditLog

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.protocol.RemoteEditLog
All Implemented Interfaces:
Comparable<RemoteEditLog>

public class RemoteEditLog
extends Object
implements Comparable<RemoteEditLog>


Field Summary
static com.google.common.base.Function<RemoteEditLog,Long> GET_START_TXID
          Guava Function which applies getStartTxId()
 
Constructor Summary
RemoteEditLog()
           
RemoteEditLog(long startTxId, long endTxId)
           
RemoteEditLog(long startTxId, long endTxId, boolean inProgress)
           
 
Method Summary
 int compareTo(RemoteEditLog log)
           
 boolean equals(Object o)
           
 long getEndTxId()
           
 long getStartTxId()
           
 int hashCode()
           
 boolean isInProgress()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GET_START_TXID

public static final com.google.common.base.Function<RemoteEditLog,Long> GET_START_TXID
Guava Function which applies getStartTxId()

Constructor Detail

RemoteEditLog

public RemoteEditLog()

RemoteEditLog

public RemoteEditLog(long startTxId,
                     long endTxId)

RemoteEditLog

public RemoteEditLog(long startTxId,
                     long endTxId,
                     boolean inProgress)
Method Detail

getStartTxId

public long getStartTxId()

getEndTxId

public long getEndTxId()

isInProgress

public boolean isInProgress()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(RemoteEditLog log)
Specified by:
compareTo in interface Comparable<RemoteEditLog>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014 Apache Software Foundation. All Rights Reserved.