public class BasicResultSelector 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 servicemap)
Get all services of the map as linear collection.
|
Object |
getCacheKey()
Get the cache key.
|
IRemoteFilter |
getFilter()
Get the filter.
|
boolean |
isFinished(Collection results)
Test if the search result is sufficient to stop the search.
|
boolean |
isOneResult()
Get the oneresult.
|
IFuture<List<IService>> |
selectServices(Map 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<List<IService>> selectServices(Map 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 servicemap)
public boolean isFinished(Collection 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 © 2012. All Rights Reserved.