TurtleDB
A mini distributed database system
|
Classes | |
class | HttpQueryProcessor |
class | SiteInfo |
Public Member Functions | |
HttpCommunicator () | |
void | addSiteInfo (String name, String url) |
QueryProcessor | getQueryProcessor (Relation query) |
QueryProcessor | getQueryProcessor (QueryPlan qp) |
void | run () |
Protected Member Functions | |
void | sendQuery (String site_name, Relation r) throws Communicator.QueryExecutionException |
void | sendQuery (String site_name, Set< Relation > rels) throws Communicator.QueryExecutionException |
String | sendData (URL url, String data) throws IOException |
String | postData (String destination_url, String payload) throws IOException |
Protected Attributes | |
Map< String, SiteInfo > | m_siteInfo |
Engine | m_engine |
Definition at line 24 of file HttpCommunicator.java.
Definition at line 31 of file HttpCommunicator.java.
void ca.uqac.dim.turtledb.HttpCommunicator.addSiteInfo | ( | String | name, |
String | url | ||
) |
Definition at line 37 of file HttpCommunicator.java.
QueryProcessor ca.uqac.dim.turtledb.HttpCommunicator.getQueryProcessor | ( | Relation | query | ) | [virtual] |
Implements ca.uqac.dim.turtledb.Communicator.
Definition at line 140 of file HttpCommunicator.java.
Implements ca.uqac.dim.turtledb.Communicator.
Definition at line 147 of file HttpCommunicator.java.
String ca.uqac.dim.turtledb.HttpCommunicator.postData | ( | String | destination_url, |
String | payload | ||
) | throws IOException [protected] |
Sends a string of data through an TCP connection at a given URL:port using an HTTP POST request
host | The destination host |
location | The location on the host (i.e. the page name) |
payload | The data to send |
IOException |
Definition at line 106 of file HttpCommunicator.java.
Listen to the connection for any incoming messages
Definition at line 192 of file HttpCommunicator.java.
String ca.uqac.dim.turtledb.HttpCommunicator.sendData | ( | URL | url, |
String | data | ||
) | throws IOException [protected] |
Sends a string of data through an TCP connection at a given URL:port
destination_url | The destination URL |
data | The data to send |
IOException |
Definition at line 76 of file HttpCommunicator.java.
void ca.uqac.dim.turtledb.HttpCommunicator.sendQuery | ( | String | site_name, |
Relation | r | ||
) | throws Communicator.QueryExecutionException [protected] |
Definition at line 43 of file HttpCommunicator.java.
void ca.uqac.dim.turtledb.HttpCommunicator.sendQuery | ( | String | site_name, |
Set< Relation > | rels | ||
) | throws Communicator.QueryExecutionException [protected] |
Definition at line 63 of file HttpCommunicator.java.
Engine ca.uqac.dim.turtledb.HttpCommunicator.m_engine [protected] |
Definition at line 29 of file HttpCommunicator.java.
Map<String,SiteInfo> ca.uqac.dim.turtledb.HttpCommunicator.m_siteInfo [protected] |
Definition at line 27 of file HttpCommunicator.java.