iteration 4 & last:
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 21 Nov 2006 10:57:00 +0000 (10:57 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 21 Nov 2006 10:57:00 +0000 (10:57 +0000)
commit2696eec3582eb1b1092d0a98c863a040f6aa2af4
tree59a3d6fe3402ca8161be0582c2911c1e40e4b3da
parent7abe61ddbeb47ced44f58073bb1a9af5a7adc31c
iteration 4 & last:

- ForeignNode(s) and ForeignSlice(s) deprecated

- Node and Slice both have a peer_id field that can be used
  for testing locality (peer_is is None)

- associations peer x node and peer x slice not managed in
  a separate table anymore (were peer_node and peer_slice)
  peer_id is defined as a native column instead

- local nodes can be retrieved with
  GetNodes (auth, {'peer_id':None})
  GetNodes (auth, {'hostname':[name1,name2], 'peer_id':None})
or
  GetNodes (auth, None, None, 'local')
  GetNodes (auth, ['name1','name2'] , None, 'local')
- foreign nodes can be retrieved similarly with
  GetNodes (auth, {'hostname':[name1,name2], '~peer_id':None})
or
  GetNodes (auth, ['name1','name2'] , None, 'foreign')

- the 4th argument to GetNodes is named 'scope'.
  It is only experimental by now,  Slices do not have it as of now,
  will decide later whether we provide it for all cached entities

- WARNING :
  Having Nodes and Slices return ALL entities might have impacts on
  other methods; most of which making sense on LOCAL entities only.
  Might need a review.
16 files changed:
PLC/ForeignNodes.py [deleted file]
PLC/ForeignSlices.py [deleted file]
PLC/Methods/AddNode.py
PLC/Methods/AddSliceToNodes.py
PLC/Methods/DeleteSliceFromNodes.py
PLC/Methods/GetForeignNodes.py [deleted file]
PLC/Methods/GetForeignSlices.py [deleted file]
PLC/Methods/GetNodes.py
PLC/Methods/GetSlivers.py
PLC/Methods/RefreshPeer.py
PLC/Nodes.py
PLC/Peers.py
PLC/Slices.py
TestPeers.py
peers-test.mk
planetlab4.sql