org.apache.hadoop.hbase.zookeeper.lock
Class ZKInterProcessLockBase.ZNodeComparator

java.lang.Object
  extended by org.apache.hadoop.hbase.zookeeper.lock.ZKInterProcessLockBase.ZNodeComparator
All Implemented Interfaces:
Comparator<String>
Enclosing class:
ZKInterProcessLockBase

protected static class ZKInterProcessLockBase.ZNodeComparator
extends Object
implements Comparator<String>


Field Summary
static ZKInterProcessLockBase.ZNodeComparator COMPARATOR
           
 
Method Summary
 int compare(String zNode1, String zNode2)
           
static long getChildSequenceId(String childZNode)
          Parses sequenceId from the znode name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

COMPARATOR

public static final ZKInterProcessLockBase.ZNodeComparator COMPARATOR
Method Detail

getChildSequenceId

public static long getChildSequenceId(String childZNode)
Parses sequenceId from the znode name. Zookeeper documentation states: The sequence number is always fixed length of 10 digits, 0 padded


compare

public int compare(String zNode1,
                   String zNode2)
Specified by:
compare in interface Comparator<String>


Copyright © 2015 The Apache Software Foundation. All rights reserved.