public static final class ParserTable.TestIIOPPrimaryToContactInfo extends Object implements IIOPPrimaryToContactInfo
| Constructor and Description |
|---|
TestIIOPPrimaryToContactInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext(ContactInfo primary,
ContactInfo previous,
List contactInfos) |
ContactInfo |
next(ContactInfo primary,
ContactInfo previous,
List contactInfos) |
void |
reset(ContactInfo primary) |
public void reset(ContactInfo primary)
reset in interface IIOPPrimaryToContactInfoprimary - - clear any state relating to primary.public boolean hasNext(ContactInfo primary, ContactInfo previous, List contactInfos)
hasNext in interface IIOPPrimaryToContactInfoprimary - - the key.previous - - if null return true. Otherwise, find previous in
contactInfos and if another ContactInfo
follows it in the list then return true. Otherwise false.contactInfos - - the list of replicas associated with the
primary.public ContactInfo next(ContactInfo primary, ContactInfo previous, List contactInfos)
next in interface IIOPPrimaryToContactInfoprimary - - 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 the ContactInfo following
previous to primary and return that ContactInfo.Copyright © 2018 JBoss by Red Hat. All rights reserved.