TurtleDB
A mini distributed database system
ca.uqac.dim.turtledb.HttpCommunicator Class Reference
Inheritance diagram for ca.uqac.dim.turtledb.HttpCommunicator:
Collaboration diagram for ca.uqac.dim.turtledb.HttpCommunicator:

List of all members.

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, SiteInfom_siteInfo
Engine m_engine

Detailed Description

Definition at line 24 of file HttpCommunicator.java.


Constructor & Destructor Documentation


Member Function Documentation

void ca.uqac.dim.turtledb.HttpCommunicator.addSiteInfo ( String  name,
String  url 
)

Definition at line 37 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

Parameters:
hostThe destination host
locationThe location on the host (i.e. the page name)
payloadThe data to send
Returns:
The response returned by the destination (if any)
Exceptions:
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

Parameters:
destination_urlThe destination URL
dataThe data to send
Returns:
The response returned by the destination (if any)
Exceptions:
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.


Member Data Documentation

Definition at line 27 of file HttpCommunicator.java.


The documentation for this class was generated from the following file: