[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/common/doc RPC-abstraction.txt
From: |
Jason Cater |
Subject: |
gnue/common/doc RPC-abstraction.txt |
Date: |
Mon, 03 Dec 2001 00:03:40 -0500 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 01/12/03 00:03:40
Modified files:
common/doc : RPC-abstraction.txt
Log message:
synching machines
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/doc/RPC-abstraction.txt.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gnue/common/doc/RPC-abstraction.txt
diff -c gnue/common/doc/RPC-abstraction.txt:1.1
gnue/common/doc/RPC-abstraction.txt:1.2
*** gnue/common/doc/RPC-abstraction.txt:1.1 Sun Dec 2 19:41:49 2001
--- gnue/common/doc/RPC-abstraction.txt Mon Dec 3 00:03:40 2001
***************
*** 48,57 ****
This design only exposes services. It does not try to emulate Object
management for transports that do not support Object management natively.
! Such a design is far too complicated of a task for GNUe to embark upon.
! If objects are used in a non-object transport, a simple reference passing
! mechanism will be used and all objects will be maintained/accessed by
! the server.
Design Considerations
--- 48,58 ----
This design only exposes services. It does not try to emulate Object
management for transports that do not support Object management natively.
! Such a design is far too complicated of a task for GNUe to embark upon
! (and would be a futile exercise as there are plenty of existing Object
! management tools.) If objects are used in a non-object transport, a
! simple reference passing mechanism will be used and all objects will be
! maintained/accessed by the server.
Design Considerations
***************
*** 147,159 ****
it will use the XML-RPC adapter.
The client program gets a GComm interface instance
! by calling GComm
Example IDL:
! Module DonutPlant {
Module Management {
--- 148,163 ----
it will use the XML-RPC adapter.
The client program gets a GComm interface instance
! by calling GComm.attach()
+ Simple Example
+ ==============
+
Example IDL:
! Module DonutProvider {
Module Management {
***************
*** 165,180 ****
Module Factory {
! module BakingFactory {
! string Flavor
! string kitchenLocation
integer requestDelivery(string address)
}
! BakingFactory getDonutBakery (String flavor)
}
--- 169,184 ----
Module Factory {
! module BakingUnit {
! string flavor
! string unitLocation
integer requestDelivery(string address)
}
! BakingUnit getDonutBakery (string flavor)
}
***************
*** 193,206 ****
print "Donut Plant Operational Status:"
! print server.DonutPlant.Management.Status()
address = 'Jason Cater\n123 Main St\nMemphis, TN 38001"
! glazedBakery = server.DonutPlant.Factory.getDonutBakery('glazed yeast')
! print "Sending %s donuts to Jason Cater" % glazedBakery.get_Flavor()
! print "Kitchen in use:", glazedBakery.get_kitchenLocation()
print "Success: ", glazedBakery.requestDelivery(address)
--- 197,210 ----
print "Donut Plant Operational Status:"
! print server.DonutProvider.Management.Status()
address = 'Jason Cater\n123 Main St\nMemphis, TN 38001"
! glazedBakery = server.DonutProvider.Factory.getDonutBakery('glazed yeast')
! print "Sending %s donuts to Jason Cater" % glazedBakery.get_flavor()
! print "Kitchen in use:", glazedBakery.get_unitLocation()
print "Success: ", glazedBakery.requestDelivery(address)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/common/doc RPC-abstraction.txt,
Jason Cater <=