public class BasicResultSelector<T> extends Object implements IResultSelector
Constructor and Description |
---|
BasicResultSelector()
Create a type result listener.
|
BasicResultSelector(IRemoteFilter filter)
Create a type result listener.
|
BasicResultSelector(IRemoteFilter filter,
boolean oneresult)
Create a type result listener.
|
BasicResultSelector(IRemoteFilter filter,
boolean oneresult,
boolean remote)
Create a type result listener.
|
Modifier and Type | Method and Description |
---|---|
IService[] |
generateServiceArray(Map<Class<?>,Collection<IService>> servicemap)
Get all services of the map as linear collection.
|
Object |
getCacheKey()
Get the cache key.
|
IRemoteFilter |
getFilter()
Get the filter.
|
boolean |
isFinished(Collection<IService> results)
Test if the search result is sufficient to stop the search.
|
boolean |
isOneResult()
Get the oneresult.
|
IFuture<Collection<IService>> |
selectServices(Map<Class<?>,Collection<IService>> servicemap)
Called for each searched service provider node.
|
void |
setFilter(IRemoteFilter filter)
Set the filter.
|
void |
setOneResult(boolean oneresult)
Set the oneresult.
|
String |
toString()
Get the string representation.
|
public BasicResultSelector()
public BasicResultSelector(IRemoteFilter filter)
public BasicResultSelector(IRemoteFilter filter, boolean oneresult)
public BasicResultSelector(IRemoteFilter filter, boolean oneresult, boolean remote)
public IFuture<Collection<IService>> selectServices(Map<Class<?>,Collection<IService>> servicemap)
selectServices
in interface IResultSelector
services
- The provided services (class->list of services).results
- The collection to which results should be added.public IService[] generateServiceArray(Map<Class<?>,Collection<IService>> servicemap)
public boolean isFinished(Collection<IService> results)
isFinished
in interface IResultSelector
results
- The collection of selected services.public Object getCacheKey()
getCacheKey
in interface IResultSelector
public IRemoteFilter getFilter()
public void setFilter(IRemoteFilter filter)
filter
- The filter to set.public boolean isOneResult()
public void setOneResult(boolean oneresult)
oneresult
- The oneresult to set.Copyright © 2013. All Rights Reserved.