public class ParallelSearchManager extends Object implements ISearchManager
Constructor and Description |
---|
ParallelSearchManager()
Create a new search manager.
|
ParallelSearchManager(boolean up,
boolean down)
Create a new search manager.
|
ParallelSearchManager(boolean up,
boolean down,
boolean forcedsearch)
Create a new search manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addOpenCall(TerminableIntermediateFuture<IService> ret,
ITerminableIntermediateFuture<IService> oc) |
Object |
getCacheKey()
Get the cache key.
|
boolean |
isForcedSearch()
Get the forcedsearch.
|
void |
removeOpenCall(TerminableIntermediateFuture<IService> ret,
ITerminableIntermediateFuture<IService> oc) |
ITerminableIntermediateFuture<IService> |
searchServices(IServiceProvider provider,
IVisitDecider decider,
IResultSelector selector,
Map<Class<?>,Collection<IService>> services)
Search for services, starting at the given service provider.
|
void |
setForcedSearch(boolean forcedsearch)
Set the forcedsearch.
|
public ParallelSearchManager()
public ParallelSearchManager(boolean up, boolean down)
public ParallelSearchManager(boolean up, boolean down, boolean forcedsearch)
public ITerminableIntermediateFuture<IService> searchServices(IServiceProvider provider, IVisitDecider decider, IResultSelector selector, Map<Class<?>,Collection<IService>> services)
searchServices
in interface ISearchManager
provider
- The service provider to start the search at.decider
- The visit decider to select nodes and terminate the search.selector
- The result selector to select matching services and produce the final result.services
- The local services of the provider (class->list of services).public Object getCacheKey()
getCacheKey
in interface ISearchManager
public boolean isForcedSearch()
isForcedSearch
in interface ISearchManager
public void setForcedSearch(boolean forcedsearch)
forcedsearch
- The forcedsearch to set.public void addOpenCall(TerminableIntermediateFuture<IService> ret, ITerminableIntermediateFuture<IService> oc)
public void removeOpenCall(TerminableIntermediateFuture<IService> ret, ITerminableIntermediateFuture<IService> oc)
Copyright © 2013. All Rights Reserved.