[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/common doc/RPC-abstraction.txt src/commdri...
From: |
Jason Cater |
Subject: |
gnue/common doc/RPC-abstraction.txt src/commdri... |
Date: |
Mon, 17 Dec 2001 00:20:17 -0500 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 01/12/17 00:20:17
Modified files:
common/doc : RPC-abstraction.txt
common/src/commdrivers: GCommBase.py
common/src/commdrivers/_helpers: RpcDoc.py
common/src/commdrivers/_test: test.py
common/src/commdrivers/proxy: CommDriver.py
Log message:
syncing machines
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/doc/RPC-abstraction.txt.diff?cvsroot=OldCVS&tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/commdrivers/GCommBase.py.diff?cvsroot=OldCVS&tr1=1.11&tr2=1.12&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/commdrivers/_helpers/RpcDoc.py.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/commdrivers/_test/test.py.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/commdrivers/proxy/CommDriver.py.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: gnue/common/doc/RPC-abstraction.txt
diff -c gnue/common/doc/RPC-abstraction.txt:1.4
gnue/common/doc/RPC-abstraction.txt:1.5
*** gnue/common/doc/RPC-abstraction.txt:1.4 Sun Dec 9 23:41:02 2001
--- gnue/common/doc/RPC-abstraction.txt Mon Dec 17 00:20:16 2001
***************
*** 5,10 ****
--- 5,11 ----
+
Motivation
==========
***************
*** 133,149 ****
How a client works
==================
! Client program needs to use services on Server X.
! As specified by the end-user in its configuration file,
! it will use the XML-RPC adapter.
! The client program gets a GComm interface instance
! by calling GComm.attach(). After attaching,
! How the server works
! ====================
First, some terminology:
--- 134,149 ----
How a client works
==================
! Client program needs to use services on Server X. As specified by the
! end-user in its configuration file, it will use the XML-RPC adapter.
! The client program gets a GComm interface instance by calling
! GComm.attach(). A ClientAdapter is returned.
! How a server works
! ==================
First, some terminology:
***************
*** 156,162 ****
An application makes a call to GComm.bind() with a list of requested
! interfaces and the location of its
A ServerAdapter is loaded from commdrivers for each requested interface.
Currently, each ServerAdapter is forked into a separate process and
--- 156,162 ----
An application makes a call to GComm.bind() with a list of requested
! interfaces and the location of its
A ServerAdapter is loaded from commdrivers for each requested interface.
Currently, each ServerAdapter is forked into a separate process and
Index: gnue/common/src/commdrivers/GCommBase.py
diff -c gnue/common/src/commdrivers/GCommBase.py:1.11
gnue/common/src/commdrivers/GCommBase.py:1.12
*** gnue/common/src/commdrivers/GCommBase.py:1.11 Tue Dec 11 00:31:11 2001
--- gnue/common/src/commdrivers/GCommBase.py Mon Dec 17 00:20:16 2001
***************
*** 48,59 ****
def runMethod(self, method, path, *args, **params):
pass
- def getAttribute(self, attribute):
- pass
-
- def setAttribute(self, attribute):
- pass
-
# Try to shut our services down
def __del__(self):
try:
--- 48,53 ----
***************
*** 62,68 ****
pass
!
##############################################################################
#
# ServerAdapter
--- 56,62 ----
pass
!
##############################################################################
#
# ServerAdapter
***************
*** 99,105 ****
self._attrPath.append(attr)
! print "Creating ProxyObject %s" % string.join(self._attrPath,'.')
try:
self._subobject = params['subobject']
--- 93,99 ----
self._attrPath.append(attr)
! #print "Creating ProxyObject %s" % string.join(self._attrPath,'.')
try:
self._subobject = params['subobject']
Index: gnue/common/src/commdrivers/_helpers/RpcDoc.py
diff -c gnue/common/src/commdrivers/_helpers/RpcDoc.py:1.1
gnue/common/src/commdrivers/_helpers/RpcDoc.py:1.2
*** gnue/common/src/commdrivers/_helpers/RpcDoc.py:1.1 Sun Dec 16 14:56:23 2001
--- gnue/common/src/commdrivers/_helpers/RpcDoc.py Mon Dec 17 00:20:17 2001
***************
*** 26,38 ****
#
# SYNTAX:
#
! # grpc <module> <command> [ <grpc-file> [<output-file>] ]
! # grpc <module> help
! # grpc help
#
import sys, string
def run (interface, command, *arguments):
--- 26,39 ----
#
# SYNTAX:
#
! # grpcdoc <module> <command> [ <grpc-file> [<output-file>] ]
! # grpcdoc <module> help
! # grpcdoc help
#
import sys, string
+ #from gnue.common import __version__
def run (interface, command, *arguments):
Index: gnue/common/src/commdrivers/_test/test.py
diff -c gnue/common/src/commdrivers/_test/test.py:1.3
gnue/common/src/commdrivers/_test/test.py:1.4
*** gnue/common/src/commdrivers/_test/test.py:1.3 Tue Dec 11 00:31:11 2001
--- gnue/common/src/commdrivers/_test/test.py Mon Dec 17 00:20:17 2001
***************
*** 15,22 ****
server = GComm.attach(interface, params)
donutProvider = server.request("DonutPlace")
! print " Donut Plant Operational Status:"
! print donutProvider.Management.Status()
address = 'Jason Cater\n123 Main St\nMemphis, TN 38001'
--- 15,22 ----
server = GComm.attach(interface, params)
donutProvider = server.request("DonutPlace")
! status = donutProvider.Management.Status()
! print " Donut Plant Operational Status:", status
address = 'Jason Cater\n123 Main St\nMemphis, TN 38001'
Index: gnue/common/src/commdrivers/proxy/CommDriver.py
diff -c gnue/common/src/commdrivers/proxy/CommDriver.py:1.3
gnue/common/src/commdrivers/proxy/CommDriver.py:1.4
*** gnue/common/src/commdrivers/proxy/CommDriver.py:1.3 Tue Dec 11 00:31:11 2001
--- gnue/common/src/commdrivers/proxy/CommDriver.py Mon Dec 17 00:20:17 2001
***************
*** 53,59 ****
class ClientAdapter(GCommBase.Client):
def __init__(self, params):
! print "Proxy Client Adapter created"
try:
self._serverproxy = params['_proxy']
except KeyError:
--- 53,59 ----
class ClientAdapter(GCommBase.Client):
def __init__(self, params):
! #print "Proxy Client Adapter created"
try:
self._serverproxy = params['_proxy']
except KeyError:
***************
*** 76,82 ****
class ServerAdapter(GCommBase.Server):
def __init__(self, rpcdef, bindings, params):
! print "Proxy Server Adapter created"
GCommBase.Server.__init__(self, rpcdef, bindings, params)
def raiseException(self, exception, message, event=None):
--- 76,82 ----
class ServerAdapter(GCommBase.Server):
def __init__(self, rpcdef, bindings, params):
! #print "Proxy Server Adapter created"
GCommBase.Server.__init__(self, rpcdef, bindings, params)
def raiseException(self, exception, message, event=None):
***************
*** 109,115 ****
def __call__(self, *args, **params):
! print "Calling %s" % self._adapter
return self._adapter.runMethod(self, string.join(self._attrPath,'.'),
*args, **params)
--- 109,115 ----
def __call__(self, *args, **params):
! #print "Calling %s" % self._adapter
return self._adapter.runMethod(self, string.join(self._attrPath,'.'),
*args, **params)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/common doc/RPC-abstraction.txt src/commdri...,
Jason Cater <=