RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
RappCloud.ServiceController.ServiceControllerAsync.ServiceControllerAsync Class Reference
Inheritance diagram for RappCloud.ServiceController.ServiceControllerAsync.ServiceControllerAsync:
Collaboration diagram for RappCloud.ServiceController.ServiceControllerAsync.ServiceControllerAsync:

Public Member Functions

def __init__
 Constructor. More...
 
def run_job
 Run the service. More...
 
- Public Member Functions inherited from RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase
def __init__
 Constructor. More...
 
def basename
 Return the basename of input filepath. More...
 
def handle_exception
 Handles exceptions and return an error message that complies to the Exception caught. More...
 
def is_json
 Check if it is a json string. More...
 
def post_request
 General member method to perform a .post request to the. More...
 
def run_job
 

Private Member Functions

def _worker_exec
 

Private Attributes

 __threadPool
 

Additional Inherited Members

- Public Attributes inherited from RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase
 session_
 

Detailed Description

Synchronous service controller class implementation. 

Definition at line 37 of file ServiceControllerAsync.py.

Constructor & Destructor Documentation

def RappCloud.ServiceController.ServiceControllerAsync.ServiceControllerAsync.__init__ (   self,
  service,
  max_workers = 8 
)

Constructor.

Parameters
serviceService - Service instance.
max_workers- Number of maximum workers to spawn

Definition at line 40 of file ServiceControllerAsync.py.

Member Function Documentation

def RappCloud.ServiceController.ServiceControllerAsync.ServiceControllerAsync._worker_exec (   self,
  msg,
  url,
  clb = None 
)
private

Definition at line 65 of file ServiceControllerAsync.py.

def RappCloud.ServiceController.ServiceControllerAsync.ServiceControllerAsync.run_job (   self,
  msg,
  url,
  clb = None 
)

Run the service.

Submit callback function to the worker thread and return the future.

Parameters
clbFunction - Callback function to execute on arrival of the response.
Returns
_future - The future.

Definition at line 52 of file ServiceControllerAsync.py.

Member Data Documentation

RappCloud.ServiceController.ServiceControllerAsync.ServiceControllerAsync.__threadPool
private

Definition at line 47 of file ServiceControllerAsync.py.


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