qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject [02/10] git commit: add some more delivery state types
Date Tue, 28 Oct 2014 19:00:21 GMT
add some more delivery state types


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

Branch: refs/heads/master
Commit: c227b29ffe8522f53681d08c8977e8db80d3b95c
Parents: ead083b
Author: Robert Gemmell <robbie@apache.org>
Authored: Tue Oct 28 17:35:42 2014 +0000
Committer: Robert Gemmell <robbie@apache.org>
Committed: Tue Oct 28 17:35:42 2014 +0000

----------------------------------------------------------------------
 .../test/testpeer/describedtypes/Received.java  | 68 ++++++++++++++++++++
 .../describedtypes/TransactionalState.java      | 68 ++++++++++++++++++++
 .../testpeer/describedtypes/generate-frames.xsl |  2 +-
 3 files changed, 137 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/c227b29f/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
new file mode 100644
index 0000000..c43ad52
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
@@ -0,0 +1,68 @@
+/*
+ * 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-frames.xsl, which resides in this package.
+ */
+public class Received extends ListDescribedType
+{
+    public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:received:list");
+    public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x0000000000000023L);
+
+
+    private static final int FIELD_SECTION_NUMBER = 0;
+    private static final int FIELD_SECTION_OFFSET = 1;
+
+    public Received(Object... fields)
+    {
+        super(2);
+        int i = 0;
+        for(Object field : fields)
+        {
+            getFields()[i++] = field;
+        }
+    }
+
+    @Override
+    public Symbol getDescriptor()
+    {
+        return DESCRIPTOR_SYMBOL;
+    }
+
+    public Received setSectionNumber(Object o)
+    {
+        getFields()[FIELD_SECTION_NUMBER] = o;
+        return this;
+    }
+
+    public Received setSectionOffset(Object o)
+    {
+        getFields()[FIELD_SECTION_OFFSET] = o;
+        return this;
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/c227b29f/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
new file mode 100644
index 0000000..4f3463f
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
@@ -0,0 +1,68 @@
+/*
+ * 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-frames.xsl, which resides in this package.
+ */
+public class TransactionalState extends ListDescribedType
+{
+    public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:transactional-state:list");
+    public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x0000000000000034L);
+
+
+    private static final int FIELD_TXN_ID = 0;
+    private static final int FIELD_OUTCOME = 1;
+
+    public TransactionalState(Object... fields)
+    {
+        super(2);
+        int i = 0;
+        for(Object field : fields)
+        {
+            getFields()[i++] = field;
+        }
+    }
+
+    @Override
+    public Symbol getDescriptor()
+    {
+        return DESCRIPTOR_SYMBOL;
+    }
+
+    public TransactionalState setTxnId(Object o)
+    {
+        getFields()[FIELD_TXN_ID] = o;
+        return this;
+    }
+
+    public TransactionalState setOutcome(Object o)
+    {
+        getFields()[FIELD_OUTCOME] = o;
+        return this;
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/c227b29f/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
index 75e3b65..2614c4d 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
@@ -40,7 +40,7 @@
           </xsl:call-template>
         </xsl:if>
 
-        <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 'source' or
@provides = 'target'">
+        <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 'delivery-state'
or @provides = 'source' or @provides = 'target'">
           <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