test_dimc_service.py File Reference

(Revision 63, commited at 2008-09-09)

An example of using a DIM service. More...

Go to the source code of this file.

Namespaces

namespace  test_dimc_service

Data Structures

class  DimTask
 Creates 3 services and registeres to them. More...

Functions

def test_dimc_service::usage

Variables

tuple test_dimc_service::client_names = ("task1",)
list test_dimc_service::client_names = sys.argv[2:]
tuple test_dimc_service::task = DimTask(task_name, client_names, updates=10/DimTask.DELAY)
string test_dimc_service::task_name = "task1"
list test_dimc_service::task_name = sys.argv[1]


Detailed Description

An example of using a DIM service.

This file contains an example for using a DIM service from python. A DimTask object is at the same time the DIM service and client. Like for the DIM functions there are several steps needed to be taken:

  1. server creates a service
  2. server start 'serving' (dis_start_serving() )
  3. server updates the service
  4. client registers to a service
  5. client wait to be updated

Author:
Radu Stoica (Radu.Stoica@cern.ch)

Definition in file test_dimc_service.py.


Generated on 5 Feb 2014 for PyDIM by  doxygen 1.4.7