Package com.sun.corba.se.impl.transport
Class CorbaContactInfoListIteratorImpl
java.lang.Object
com.sun.corba.se.impl.transport.CorbaContactInfoListIteratorImpl
- All Implemented Interfaces:
ContactInfoListIterator,CorbaContactInfoListIterator,Iterator
- Direct Known Subclasses:
SocketFactoryContactInfoListIteratorImpl
public class CorbaContactInfoListIteratorImpl
extends Object
implements CorbaContactInfoListIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CorbaContactInfoListprotected Iteratorprotected CorbaContactInfoprotected RuntimeExceptionprotected booleanprotected Listprotected ORBprotected CorbaContactInfoprotected ContactInfoprotected IIOPPrimaryToContactInfoprotected CorbaContactInfo -
Constructor Summary
ConstructorsConstructorDescriptionCorbaContactInfoListIteratorImpl(ORB orb, CorbaContactInfoList corbaContactInfoList, ContactInfo primaryContactInfo, List listOfContactInfos) -
Method Summary
Modifier and TypeMethodDescriptionThe underlying list for this iterator.The exception to report to the presentation block.booleanhasNext()next()voidremove()voidreportAddrDispositionRetry(CorbaContactInfo contactInfo, short disposition) booleanreportException(ContactInfo contactInfo, RuntimeException ex) Used to report information to the iterator to be used in future invocations.voidreportRedirect(CorbaContactInfo contactInfo, IOR forwardedIOR) voidreportSuccess(ContactInfo contactInfo) Used to report information to the iterator to be used in future invocations.voidupdateEffectiveTargetIOR(IOR newIOR) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
orb
-
contactInfoList
-
successContactInfo
-
failureContactInfo
-
failureException
-
effectiveTargetIORIterator
-
previousContactInfo
-
isAddrDispositionRetry
protected boolean isAddrDispositionRetry -
-
primaryContactInfo
-
listOfContactInfos
-
-
Constructor Details
-
CorbaContactInfoListIteratorImpl
public CorbaContactInfoListIteratorImpl(ORB orb, CorbaContactInfoList corbaContactInfoList, ContactInfo primaryContactInfo, List listOfContactInfos)
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
getContactInfoList
Description copied from interface:ContactInfoListIteratorThe underlying list for this iterator.- Specified by:
getContactInfoListin interfaceContactInfoListIterator- Returns:
- The underlying list for this iterator.
-
reportSuccess
Description copied from interface:ContactInfoListIteratorUsed to report information to the iterator to be used in future invocations.- Specified by:
reportSuccessin interfaceContactInfoListIterator- Parameters:
contactInfo- TheContactInfoobtained from this iterator which resulted in a successful invocation.
-
reportException
Description copied from interface:ContactInfoListIteratorUsed to report information to the iterator to be used in future invocations.- Specified by:
reportExceptionin interfaceContactInfoListIterator- Parameters:
contactInfo- TheContactInfoin effect when an invocation exception occurs.ex- TheRuntimeException.- Returns:
- Returns true if the request should be retried.
-
getFailureException
Description copied from interface:ContactInfoListIteratorThe exception to report to the presentation block.- Specified by:
getFailureExceptionin interfaceContactInfoListIterator- Returns:
- If the iterator reaches the end before the invocation
is successful one returns this exception (previously reported to
the iterator via
ContactInfoListIterator.reportException(com.sun.corba.se.pept.transport.ContactInfo, java.lang.RuntimeException)).
-
reportAddrDispositionRetry
- Specified by:
reportAddrDispositionRetryin interfaceCorbaContactInfoListIterator
-
reportRedirect
- Specified by:
reportRedirectin interfaceCorbaContactInfoListIterator
-
updateEffectiveTargetIOR
-