Package com.sun.corba.se.impl.orb
Class ParserTable.TestIIOPPrimaryToContactInfo
java.lang.Object
com.sun.corba.se.impl.orb.ParserTable.TestIIOPPrimaryToContactInfo
- All Implemented Interfaces:
IIOPPrimaryToContactInfo
- Enclosing class:
- ParserTable
public static final class ParserTable.TestIIOPPrimaryToContactInfo
extends Object
implements IIOPPrimaryToContactInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext(ContactInfo primary, ContactInfo previous, List contactInfos) next(ContactInfo primary, ContactInfo previous, List contactInfos) voidreset(ContactInfo primary)
-
Constructor Details
-
TestIIOPPrimaryToContactInfo
public TestIIOPPrimaryToContactInfo()
-
-
Method Details
-
reset
- Specified by:
resetin interfaceIIOPPrimaryToContactInfo- Parameters:
primary- - clear any state relating to primary.
-
hasNext
- Specified by:
hasNextin interfaceIIOPPrimaryToContactInfo- Parameters:
primary- - the key.previous- - if null return true. Otherwise, find previous incontactInfosand if anotherContactInfofollows it in the list then return true. Otherwise false.contactInfos- - the list of replicas associated with the primary.
-
next
- Specified by:
nextin interfaceIIOPPrimaryToContactInfo- Parameters:
primary- - the key.previous- - if null then map primary to failover. If failover is empty then map primary to primary and return primary. 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 theContactInfofollowing previous to primary and return thatContactInfo.
-