diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-10-13 00:06:05 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-10-13 00:06:05 +0000 |
commit | ae1e4261cf8a63b87fa07ebf607ce3da625fe274 (patch) | |
tree | 9e409c2ed6853c77d6c36f4e4beb9667278e09b9 /java/src/IceGrid/TreeNode/ReplicaGroup.java | |
parent | DbEnv editor + cleanup (diff) | |
download | ice-ae1e4261cf8a63b87fa07ebf607ce3da625fe274.tar.bz2 ice-ae1e4261cf8a63b87fa07ebf607ce3da625fe274.tar.xz ice-ae1e4261cf8a63b87fa07ebf607ce3da625fe274.zip |
Fixed IceGrid build; replicated adapter is now replica group
Diffstat (limited to 'java/src/IceGrid/TreeNode/ReplicaGroup.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/ReplicaGroup.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/java/src/IceGrid/TreeNode/ReplicaGroup.java b/java/src/IceGrid/TreeNode/ReplicaGroup.java new file mode 100755 index 00000000000..2c5432a17c3 --- /dev/null +++ b/java/src/IceGrid/TreeNode/ReplicaGroup.java @@ -0,0 +1,50 @@ +// **********************************************************************
+//
+// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+package IceGrid.TreeNode;
+
+import IceGrid.ReplicaGroupDescriptor;
+import IceGrid.Model;
+import IceGrid.Utils;
+
+class ReplicaGroup extends EditableLeaf
+{
+ static public ReplicaGroupDescriptor
+ copyDescriptor(ReplicaGroupDescriptor d)
+ {
+ return (ReplicaGroupDescriptor)d.clone();
+ }
+
+ ReplicaGroup(boolean brandNew,
+ ReplicaGroupDescriptor descriptor,
+ Model model)
+ {
+ //
+ // Make the assumption that app variables can't be used in
+ // the descriptor.id
+ //
+
+ super(brandNew, descriptor.id, model);
+ rebuild(descriptor);
+ }
+
+ void rebuild(ReplicaGroupDescriptor descriptor)
+ {
+ _descriptor = descriptor;
+ //
+ // And that's it since there is no children
+ //
+ }
+
+ public Object getDescriptor()
+ {
+ return _descriptor;
+ }
+
+ private ReplicaGroupDescriptor _descriptor;
+}
|