org.neo4j.kernel.ha.com.master
Class SlavePriorities

java.lang.Object
  extended by org.neo4j.kernel.ha.com.master.SlavePriorities

public abstract class SlavePriorities
extends Object

Factory for common SlavePriority implementations.

Author:
Mattias Persson

Method Summary
static SlavePriority fixed()
           
static SlavePriority givenOrder()
           
static SlavePriority roundRobin()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

givenOrder

public static SlavePriority givenOrder()
Returns:
SlavePriority which returns the slaves in the order that they are given in the slaves array.

roundRobin

public static SlavePriority roundRobin()
Returns:
SlavePriority which returns the slaves in a round robin fashion, more precisely the start index in the array increments with each prioritization, ordered by server id in ascending.

fixed

public static SlavePriority fixed()
Returns:
SlavePriority which returns the slaves in the same fixed order sorted by server id in descending order.


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.