public class CentralizedCommunicator extends Communicator
| Modifier and Type | Class and Description |
|---|---|
protected class |
CentralizedCommunicator.CentralizedQueryProcessor |
Communicator.QueryExecutionException| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Relation> |
m_results |
protected java.util.Map<java.lang.String,Engine> |
m_sites |
protected static int |
MAX_LOOPS |
| Constructor and Description |
|---|
CentralizedCommunicator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSite(Engine e) |
QueryProcessor |
getQueryProcessor(QueryPlan qp) |
QueryProcessor |
getQueryProcessor(Relation query) |
QueryProcessor |
getQueryProcessor(Relation query,
java.lang.String site) |
Engine |
getSite(java.lang.String name) |
protected boolean |
loop()
Iterates through one loop of communication and processing
between sites.
|
void |
run() |
protected java.util.Map<java.lang.String,Engine> m_sites
protected java.util.List<Relation> m_results
protected static final int MAX_LOOPS
public void run()
public void addSite(Engine e)
public Engine getSite(java.lang.String name)
protected boolean loop()
public QueryProcessor getQueryProcessor(Relation query)
getQueryProcessor in class Communicatorpublic QueryProcessor getQueryProcessor(Relation query, java.lang.String site)
public QueryProcessor getQueryProcessor(QueryPlan qp)
getQueryProcessor in class CommunicatorCopyright © Sylvain HallĂ©. All Rights Reserved.