qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oru...@apache.org
Subject svn commit: r1559958 - in /qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java: org/apache/qpid/server/store/berkeleydb/replication/RemoteReplicationNode.java resources/js/qpid/management/virtualhost/bdb_ha/show.js
Date Tue, 21 Jan 2014 10:07:08 GMT
Author: orudyy
Date: Tue Jan 21 10:07:08 2014
New Revision: 1559958

URL: http://svn.apache.org/r1559958
Log:
QPID-5413: Add getAttributeNames method into RemoteReplicationNode in order to produce json
representation of the node with correct attributes

Modified:
    qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/replication/RemoteReplicationNode.java
    qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js

Modified: qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/replication/RemoteReplicationNode.java
URL: http://svn.apache.org/viewvc/qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/replication/RemoteReplicationNode.java?rev=1559958&r1=1559957&r2=1559958&view=diff
==============================================================================
--- qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/replication/RemoteReplicationNode.java
(original)
+++ qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/replication/RemoteReplicationNode.java
Tue Jan 21 10:07:08 2014
@@ -158,7 +158,27 @@ public class RemoteReplicationNode exten
     @Override
     public Object getAttribute(String name)
     {
-        if (ROLE.equals(name))
+        if (ReplicationNode.ID.equals(name))
+        {
+            return getId();
+        }
+        else if (ReplicationNode.LIFETIME_POLICY.equals(name))
+        {
+            return getLifetimePolicy();
+        }
+        else if (ReplicationNode.DURABLE.equals(name))
+        {
+            return isDurable();
+        }
+        else if(STATE.equals(name))
+        {
+            return getActualState();
+        }
+        else if(TIME_TO_LIVE.equals(name))
+        {
+            return getLifetimePolicy();
+        }
+        else if (ROLE.equals(name))
         {
             return _role;
         }
@@ -227,4 +247,9 @@ public class RemoteReplicationNode exten
         }
     }
 
+    @Override
+    public Collection<String> getAttributeNames()
+    {
+        return ReplicationNode.AVAILABLE_ATTRIBUTES;
+    }
 }

Modified: qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js
URL: http://svn.apache.org/viewvc/qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js?rev=1559958&r1=1559957&r2=1559958&view=diff
==============================================================================
--- qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js
(original)
+++ qpid/branches/java-broker-bdb-ha/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhost/bdb_ha/show.js
Tue Jan 21 10:07:08 2014
@@ -162,7 +162,7 @@ define(["dojo/_base/xhr",
          { name: 'Name', field: 'name', width: '50%' },
          { name: 'Value', field: 'value', width: '50%' }
         ],
-        null, null, null, true );
+        null, null, null, false );
 
     this.replicationParametersGrid = new UpdatableStore([],
         findNode("replicationParameters", containerNode),



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message