bin/cluster.rb in nitro-0.1.2 vs bin/cluster.rb in nitro-0.2.0
- old
+ new
@@ -1,15 +1,12 @@
-# = Cluster
+# code:
+# * George Moschovitis <gm@navel.gr>
#
-# TODO: use Sync instead of Monitor
-#
-# code:: gmosx
-#
# (c) 2004 Navel, all rights reserved.
-# $Id: cluster.rb 74 2004-10-18 11:30:20Z gmosx $
+# $Id: cluster.rb 104 2004-10-22 13:35:03Z gmosx $
-$:.unshift "nitro/lib"
+$:.unshift "lib"
require "drb"
require "monitor"
require "n/application"
@@ -19,20 +16,24 @@
module N
# = Cluster
#
-# A Cluster is a collection of servers. The cluster synchronizes the
-# servers and distributes the state. An older version used a polling
-# system, ie: the servers polled the cluster to obtain the state. This
-# version uses a push system, ie when the state is changed a delta
-# is pushed to the clients.
+# A Cluster manages the state of a collection of servers. The cluster
+# synchronizes the servers and distributes the state. An older version
+# used a polling system, ie: the servers polled the cluster to
+# obtain the state. This version uses a push system, ie when the
+# state is changed a delta is pushed to the clients.
#
+# TODO: use Sync instead of Monitor
+#
class Cluster < N::Application
# = CHash ClusterHash
#
+ # The CHash 'endpoint' resides in the Cluster server
+ #
class CHash < Hash
attr :mon
# drbobject for this hash (local)
attr_accessor :ldrb
@@ -108,9 +109,11 @@
end
end
# = SHash ServerHash
+ #
+ # The SHash 'endpoint' resides in the App server
#
class SHash < Hash
attr :mon
# drbobject for this hash (local)