Repository: qpid-jms Updated Branches: refs/heads/master de9672305 -> 7b601d237
add transaction related files generated by existing XSL Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/ead083b9 Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/ead083b9 Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/ead083b9 Branch: refs/heads/master Commit: ead083b9c91d0d219d9a07819b9ae52c56e8e2be Parents: de96723 Author: Robert Gemmell <[email protected]> Authored: Tue Oct 28 17:34:02 2014 +0000 Committer: Robert Gemmell <[email protected]> Committed: Tue Oct 28 17:34:02 2014 +0000 ---------------------------------------------------------------------- .../testpeer/describedtypes/Coordinator.java | 61 ++++++++++++++++++++ .../test/testpeer/describedtypes/Declared.java | 61 ++++++++++++++++++++ 2 files changed, 122 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/ead083b9/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java new file mode 100644 index 0000000..0a8c322 --- /dev/null +++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java @@ -0,0 +1,61 @@ +/* + * 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 Coordinator extends ListDescribedType +{ + public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:coordinator:list"); + public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x0000000000000030L); + + + private static final int FIELD_CAPABILITIES = 0; + + public Coordinator(Object... fields) + { + super(1); + int i = 0; + for(Object field : fields) + { + getFields()[i++] = field; + } + } + + @Override + public Symbol getDescriptor() + { + return DESCRIPTOR_SYMBOL; + } + + public Coordinator setCapabilities(Object o) + { + getFields()[FIELD_CAPABILITIES] = o; + return this; + } + +} + http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/ead083b9/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java new file mode 100644 index 0000000..4d08175 --- /dev/null +++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java @@ -0,0 +1,61 @@ +/* + * 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 Declared extends ListDescribedType +{ + public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:declared:list"); + public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x0000000000000033L); + + + private static final int FIELD_TXN_ID = 0; + + public Declared(Object... fields) + { + super(1); + int i = 0; + for(Object field : fields) + { + getFields()[i++] = field; + } + } + + @Override + public Symbol getDescriptor() + { + return DESCRIPTOR_SYMBOL; + } + + public Declared setTxnId(Object o) + { + getFields()[FIELD_TXN_ID] = o; + return this; + } + +} + --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
