public class SequentialSearchManager extends Object implements ISearchManager
Modifier and Type | Class and Description |
---|---|
static class |
SequentialSearchManager.SearchContext
Struct for data that remains constant during search.
|
Constructor and Description |
---|
SequentialSearchManager()
Create a new search manager.
|
SequentialSearchManager(boolean up,
boolean down)
Create a new search manager.
|
SequentialSearchManager(boolean up,
boolean down,
boolean forcedsearch)
Create a new search manager.
|
Modifier and Type | Method and Description |
---|---|
Object |
getCacheKey()
Get the cache key.
|
boolean |
isDown()
Get the down flag.
|
boolean |
isForcedSearch()
Get the forcedsearch.
|
boolean |
isUp()
Get the up flag.
|
IIntermediateFuture |
searchServices(IServiceProvider provider,
IVisitDecider decider,
IResultSelector selector,
Map services)
Search for services, starting at the given service provider.
|
void |
setDown(boolean down)
Set the down flag.
|
void |
setForcedSearch(boolean forcedsearch)
Set the forcedsearch.
|
void |
setUp(boolean up)
Set the up flag.
|
public SequentialSearchManager()
public SequentialSearchManager(boolean up, boolean down)
public SequentialSearchManager(boolean up, boolean down, boolean forcedsearch)
public IIntermediateFuture searchServices(IServiceProvider provider, IVisitDecider decider, IResultSelector selector, Map 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 isUp()
public void setUp(boolean up)
up
- The up flag to set.public boolean isDown()
public void setDown(boolean down)
down
- The down to set.public boolean isForcedSearch()
isForcedSearch
in interface ISearchManager
public void setForcedSearch(boolean forcedsearch)
forcedsearch
- The forcedsearch to set.Copyright © 2012. All Rights Reserved.