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

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

public class TriadDispatcherTriple<X>
extends TriadDispatcher<X>

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


Constructor Summary
TriadDispatcherTriple(X valueA, X valueB, X valueC)
           
 
Method Summary
 X getA()
          Returns the member A.
 X getB()
          Returns the member B.
 X getC()
          Returns the member C.
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriadDispatcherTriple

public TriadDispatcherTriple(X valueA,
                             X valueB,
                             X valueC)
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>

getC

public X getC()
Returns the member C.

Overrides:
getC 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>