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

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

public class TriadDispatcherSingle<X>
extends TriadDispatcher<X>

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


Constructor Summary
TriadDispatcherSingle(X valueA)
           
 
Method Summary
 X getA()
          Returns the member A.
 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 com.caucho.cloud.topology.TriadDispatcher
getB, getC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriadDispatcherSingle

public TriadDispatcherSingle(X valueA)
Method Detail

getA

public X getA()
Returns the member A.

Overrides:
getA 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 secondary server.

Overrides:
secondary in class TriadDispatcher<X>

tertiary

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

Overrides:
tertiary in class TriadDispatcher<X>