qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject [09/10] git commit: add dynamic node lifetime policies
Date Tue, 28 Oct 2014 19:00:28 GMT
add dynamic node lifetime policies


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/91e3627e
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/91e3627e
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/91e3627e

Branch: refs/heads/master
Commit: 91e3627e55fce8e852074414e045f7ff5b9e0a8c
Parents: e7af2e1
Author: Robert Gemmell <robbie@apache.org>
Authored: Tue Oct 28 18:44:31 2014 +0000
Committer: Robert Gemmell <robbie@apache.org>
Committed: Tue Oct 28 18:44:42 2014 +0000

----------------------------------------------------------------------
 .../testpeer/describedtypes/DeleteOnClose.java  | 54 ++++++++++++++++++++
 .../describedtypes/DeleteOnNoLinks.java         | 54 ++++++++++++++++++++
 .../DeleteOnNoLinksOrMessages.java              | 54 ++++++++++++++++++++
 .../describedtypes/DeleteOnNoMessages.java      | 54 ++++++++++++++++++++
 .../describedtypes/generate-described-types.xsl |  2 +-
 5 files changed, 217 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnClose.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnClose.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnClose.java
new file mode 100644
index 0000000..51c49de
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnClose.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.jms.test.testpeer.describedtypes;
+
+import org.apache.qpid.jms.test.testpeer.ListDescribedType;
+import org.apache.qpid.proton.amqp.Symbol;
+import org.apache.qpid.proton.amqp.UnsignedLong;
+
+/**
+ * Generated by generate-described-types.xsl, which resides in this package.
+ */
+public class DeleteOnClose extends ListDescribedType
+{
+    public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:delete-on-close:list");
+    public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000002bL);
+
+
+
+    public DeleteOnClose(Object... fields)
+    {
+        super(0);
+        int i = 0;
+        for(Object field : fields)
+        {
+            getFields()[i++] = field;
+        }
+    }
+
+    @Override
+    public Symbol getDescriptor()
+    {
+        return DESCRIPTOR_SYMBOL;
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinks.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinks.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinks.java
new file mode 100644
index 0000000..e5aa8c7
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinks.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.jms.test.testpeer.describedtypes;
+
+import org.apache.qpid.jms.test.testpeer.ListDescribedType;
+import org.apache.qpid.proton.amqp.Symbol;
+import org.apache.qpid.proton.amqp.UnsignedLong;
+
+/**
+ * Generated by generate-described-types.xsl, which resides in this package.
+ */
+public class DeleteOnNoLinks extends ListDescribedType
+{
+    public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:delete-on-no-links:list");
+    public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000002cL);
+
+
+
+    public DeleteOnNoLinks(Object... fields)
+    {
+        super(0);
+        int i = 0;
+        for(Object field : fields)
+        {
+            getFields()[i++] = field;
+        }
+    }
+
+    @Override
+    public Symbol getDescriptor()
+    {
+        return DESCRIPTOR_SYMBOL;
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinksOrMessages.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinksOrMessages.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinksOrMessages.java
new file mode 100644
index 0000000..11a711f
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinksOrMessages.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.jms.test.testpeer.describedtypes;
+
+import org.apache.qpid.jms.test.testpeer.ListDescribedType;
+import org.apache.qpid.proton.amqp.Symbol;
+import org.apache.qpid.proton.amqp.UnsignedLong;
+
+/**
+ * Generated by generate-described-types.xsl, which resides in this package.
+ */
+public class DeleteOnNoLinksOrMessages extends ListDescribedType
+{
+    public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:delete-on-no-links-or-messages:list");
+    public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000002eL);
+
+
+
+    public DeleteOnNoLinksOrMessages(Object... fields)
+    {
+        super(0);
+        int i = 0;
+        for(Object field : fields)
+        {
+            getFields()[i++] = field;
+        }
+    }
+
+    @Override
+    public Symbol getDescriptor()
+    {
+        return DESCRIPTOR_SYMBOL;
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoMessages.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoMessages.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoMessages.java
new file mode 100644
index 0000000..aeea691
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoMessages.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.jms.test.testpeer.describedtypes;
+
+import org.apache.qpid.jms.test.testpeer.ListDescribedType;
+import org.apache.qpid.proton.amqp.Symbol;
+import org.apache.qpid.proton.amqp.UnsignedLong;
+
+/**
+ * Generated by generate-described-types.xsl, which resides in this package.
+ */
+public class DeleteOnNoMessages extends ListDescribedType
+{
+    public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:delete-on-no-messages:list");
+    public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000002dL);
+
+
+
+    public DeleteOnNoMessages(Object... fields)
+    {
+        super(0);
+        int i = 0;
+        for(Object field : fields)
+        {
+            getFields()[i++] = field;
+        }
+    }
+
+    @Override
+    public Symbol getDescriptor()
+    {
+        return DESCRIPTOR_SYMBOL;
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
index d467b37..21b438f 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
@@ -40,7 +40,7 @@
           </xsl:call-template>
         </xsl:if>
 
-        <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 'delivery-state'
or @provides = 'source' or @provides = 'target' or @name = 'declare' or @name = 'discharge'
or @name = 'error'">
+        <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 'delivery-state'
or @provides = 'source' or @provides = 'target' or @name = 'declare' or @name = 'discharge'
or @name = 'error' or @provides = 'lifetime-policy'">
           <xsl:variable name="classname"><xsl:call-template name="dashToCamel"><xsl:with-param
name="input" select="@name"/></xsl:call-template></xsl:variable>
 
           <xsl:call-template name="typeClass">


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


Mime
View raw message