com.caucho.cloud.topology
Class TriadDispatcher<X>

java.lang.Object
  extended by com.caucho.cloud.topology.TriadDispatcher<X>
Direct Known Subclasses:
TriadDispatcherDouble, TriadDispatcherSingle, TriadDispatcherTriple

public class TriadDispatcher<X>
extends java.lang.Object

Selects one of the triad members, given the triad owner.


Constructor Summary
TriadDispatcher()
           
 
Method Summary
 X getA()
          Returns member A
 X getB()
          Returns member B
 X getC()
          Returns member C
 X primary(TriadOwner owner)
          Returns the primary server.
 X secondary(TriadOwner owner)
          Returns the secondary server.
 X tertiary(TriadOwner owner)
          Returns the tertiary server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriadDispatcher

public TriadDispatcher()
Method Detail

getA

public X getA()
Returns member A


getB

public X getB()
Returns member B


getC

public X getC()
Returns member C


primary

public X primary(TriadOwner owner)
Returns the primary server.


secondary

public X secondary(TriadOwner owner)
Returns the secondary server.


tertiary

public X tertiary(TriadOwner owner)
Returns the tertiary server.