public class ServiceRankingResultListener<S> extends Object implements IIntermediateResultListener<S>
| Constructor and Description |
|---|
ServiceRankingResultListener(IResultListener<Collection<Tuple2<S,Double>>> scorelistener,
IServiceRanker<S> ranker,
IRankingSearchTerminationDecider<S> decider)
Create a new ranker.
|
ServiceRankingResultListener(IServiceRanker<S> ranker,
IRankingSearchTerminationDecider<S> decider,
IResultListener<Collection<S>> listener)
Create a new ranker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionOccurred(Exception exception)
Called when exception occurs.
|
void |
finished()
Declare that the future is finished.
|
void |
intermediateResultAvailable(S result)
Process intermediate results for ranking.
|
boolean |
isFinished()
Get the finished.
|
void |
resultAvailable(Collection<S> result)
Called when result is available.
|
public ServiceRankingResultListener(IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider, IResultListener<Collection<S>> listener)
public ServiceRankingResultListener(IResultListener<Collection<Tuple2<S,Double>>> scorelistener, IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider)
public void intermediateResultAvailable(S result)
intermediateResultAvailable in interface IIntermediateResultListener<S>result - The result.public void resultAvailable(Collection<S> result)
resultAvailable in interface IFunctionalResultListener<Collection<S>>resultAvailable in interface IIntermediateResultListener<S>result - The final result.public void exceptionOccurred(Exception exception)
exceptionOccurred in interface IFunctionalExceptionListenerexception - The exception.public void finished()
IIntermediateResultListenerfinished in interface IIntermediateResultListener<S>public boolean isFinished()
Copyright © 2015. All Rights Reserved.