org.sblim.slp.internal.ua

Class ResultTable

Implemented Interfaces:
Iterator

public class ResultTable
extends java.lang.Object
implements Iterator

ResultTable

Method Summary

void
addException(Exception pE)
addException
void
addExceptions(Iterator pExceptionItr)
addExceptions
void
addExceptions(ReplyMessage pReplyMsg)
addExceptions
void
addResults(Iterator pResItr)
addResults
void
addResults(ReplyMessage pReplyMsg)
addResults
int
getTotalResponses()
getTotalResponses
boolean
hasMoreExceptions()
boolean
hasNext()
Object
next()
Object
nextException()
void
registerRequester(DatagramRequester pReq)
ResultTable has to know which Requesters provide results.
void
remove()
void
unregisterRequester(DatagramRequester pReq)
If the Requester's sequence is completed, Requester has to be unregistered otherwise hasNext() will block.

Method Details

addException

public void addException(Exception pE)
addException
Parameters:
pE -

addExceptions

public void addExceptions(Iterator pExceptionItr)
addExceptions
Parameters:
pExceptionItr -

addExceptions

public void addExceptions(ReplyMessage pReplyMsg)
addExceptions
Parameters:
pReplyMsg -

addResults

public void addResults(Iterator pResItr)
addResults
Parameters:
pResItr -

addResults

public void addResults(ReplyMessage pReplyMsg)
addResults
Parameters:
pReplyMsg -

getTotalResponses

public int getTotalResponses()
getTotalResponses
Returns:
int

hasMoreExceptions

public boolean hasMoreExceptions()
Returns:
next element in Exception table

hasNext

public boolean hasNext()
Returns:
true if there are results or exceptions to read
See Also:
java.util.Iterator.hasNext()

next

public Object next()
            throws NoSuchElementException
Returns:
a result or an Exception
See Also:
java.util.Iterator.next()

nextException

public Object nextException()
            throws NoSuchElementException
Returns:
next element in Exception table

registerRequester

public void registerRequester(DatagramRequester pReq)
ResultTable has to know which Requesters provide results. Requester have to be registered before hasNext() is called.
Parameters:
pReq -

remove

public void remove()

unregisterRequester

public void unregisterRequester(DatagramRequester pReq)
If the Requester's sequence is completed, Requester has to be unregistered otherwise hasNext() will block.
Parameters:
pReq -

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.