Just committed some bug fixes and additions to the P2P code:
1) Implement DefineAtom activity that makes sure local and remote
types are the same when they are linked to the same Java class. Much
more work remains to deal with type incompatibilities and cache
synchronization (update for existing atoms is done on disk only, so
loaded atoms in the cache become invalid). But at least, this ensures
that HGDB types inferred from identical Java classes are correctly
treated as equivalent.
2) A new version of Activity.send method to accept HGPeerIdentity
instead of Object as target
3) Should try to work only with HGPeerIdentity at the level activities
instead of untype Object - perhaps change the content of REPLY_TO for
that too.
4) HyperGraphPeer.getConnectedPeers() returns a set of HGPeerIdentity
instead of a List of RemotePeer.
5) Added StorageGraph interface abstracting the core interface of the
HGStore. Consequently, some changes on on APIs that were using the
Subgraph class. Subgraph.java itself was removed.
6) Fixed some bugs in the scheduler: did not remove finished
activities and did not order properly activities with empty queues.
7) Some adjustements to SubgraphManager needed by define atom.
Boris
--
"Frozen brains tell no tales."
-- Buckethead