Package com.sun.corba.ee.impl.orb
Class ParserTable.TestIIOPPrimaryToContactInfo
- java.lang.Object
-
- com.sun.corba.ee.impl.orb.ParserTable.TestIIOPPrimaryToContactInfo
-
- All Implemented Interfaces:
IIOPPrimaryToContactInfo
- Enclosing class:
- ParserTable
public static final class ParserTable.TestIIOPPrimaryToContactInfo extends java.lang.Object implements IIOPPrimaryToContactInfo
-
-
Constructor Summary
Constructors Constructor Description TestIIOPPrimaryToContactInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext(ContactInfo primary, ContactInfo previous, java.util.List contactInfos)
ContactInfo
next(ContactInfo primary, ContactInfo previous, java.util.List contactInfos)
void
reset(ContactInfo primary)
-
-
-
Method Detail
-
reset
public void reset(ContactInfo primary)
- Specified by:
reset
in interfaceIIOPPrimaryToContactInfo
- Parameters:
primary
- - clear any state relating to primary.
-
hasNext
public boolean hasNext(ContactInfo primary, ContactInfo previous, java.util.List contactInfos)
- Specified by:
hasNext
in interfaceIIOPPrimaryToContactInfo
- Parameters:
primary
- the key.previous
- if null return true. Otherwise, find previous incontactInfos
and if anotherContactInfo
follows it in the list then return true. Otherwise false.contactInfos
- the list of replicas associated with the primary.- Returns:
- if there is another
-
next
public ContactInfo next(ContactInfo primary, ContactInfo previous, java.util.List contactInfos)
- Specified by:
next
in interfaceIIOPPrimaryToContactInfo
- Parameters:
primary
- the key.previous
- if null then map primary to failover. If failover is empty then map primary to firstContactInfo
in contactInfos and mapped entry. If failover is non-empty then return failover. If previous is non-null that indicates that the previous failed. Therefore, find previous in contactInfos. Map theContactInfo
following previous to primary and return thatContactInfo
.contactInfos
- the list of replicas associated with the primary.- Returns:
- the next ContactInfo
-
-