warehouse::client::ClientCollectionHandler Class Reference

List of all members.

Public Member Functions

def __init__
def close
def push_data
def query
def subscribe_to_insertion

Public Attributes

 close_collection_srv
 collection_name
 db_name
 msg_type
 msg_type_name
 notify_cb
 pkg_type_name
 publisher
 pull_srv
 push_condition
 query_condition
 query_srv
 subscriber

Private Member Functions

def _handle_notify
def _handle_pull

Detailed Description

A handler for client connections to a collection in the warehouse.

Definition at line 36 of file client.py.


Member Function Documentation

def warehouse::client::ClientCollectionHandler::__init__ (   self,
  db_name,
  collection_name,
  msg,
  indexed_fields 
)
Constructor

Definition at line 41 of file client.py.

def warehouse::client::ClientCollectionHandler::_handle_notify (   self,
  msg 
) [private]
Handles data insertion notifications.

Definition at line 173 of file client.py.

def warehouse::client::ClientCollectionHandler::_handle_pull (   self,
  msg,
  result 
) [private]
Handle a pull from a query. This funciton is only used internally

Definition at line 185 of file client.py.

def warehouse::client::ClientCollectionHandler::close (   self  ) 

Definition at line 109 of file client.py.

def warehouse::client::ClientCollectionHandler::push_data (   self,
  msg 
)
Push data into a collection
@param msg : The new data to insert into the database

Definition at line 117 of file client.py.

def warehouse::client::ClientCollectionHandler::query (   self,
  conditions 
)
Query a collection for data
@param conditions : Conditions for the query
@return a list of matching entries

Definition at line 140 of file client.py.

def warehouse::client::ClientCollectionHandler::subscribe_to_insertion (   self,
  cb 
)
Register a function callback that is triggered whenever new data is inserted into the collection
@param cb: The callback

Definition at line 132 of file client.py.


Member Data Documentation

Definition at line 85 of file client.py.

Definition at line 46 of file client.py.

Definition at line 45 of file client.py.

Definition at line 68 of file client.py.

Definition at line 49 of file client.py.

Definition at line 54 of file client.py.

Definition at line 48 of file client.py.

Definition at line 105 of file client.py.

Definition at line 82 of file client.py.

Definition at line 51 of file client.py.

Definition at line 52 of file client.py.

Definition at line 78 of file client.py.

Definition at line 107 of file client.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines


warehouse
Author(s): Nate Koenig, Bhaskara Marthi
autogenerated on Fri Jan 11 10:09:03 2013