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

java.lang.Object
  extended by com.caucho.cloud.topology.TriadDispatcher<X>
      extended by com.caucho.cloud.topology.TriadDispatcherDouble<X>

public class TriadDispatcherDouble<X>
extends TriadDispatcher<X>

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


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

Constructor Detail

TriadDispatcherDouble

public TriadDispatcherDouble(X valueA,
                             X valueB)
Method Detail

getA

public X getA()
Returns the member A.

Overrides:
getA in class TriadDispatcher<X>

getB

public X getB()
Returns the member B.

Overrides:
getB in class TriadDispatcher<X>

primary

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

Overrides:
primary in class TriadDispatcher<X>

secondary

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

Overrides:
secondary in class TriadDispatcher<X>

tertiary

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

Overrides:
tertiary in class TriadDispatcher<X>