Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7AFFB10A6D for ; Wed, 2 Oct 2013 18:09:15 +0000 (UTC) Received: (qmail 46989 invoked by uid 500); 2 Oct 2013 18:09:13 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 46960 invoked by uid 500); 2 Oct 2013 18:09:12 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 46941 invoked by uid 99); 2 Oct 2013 18:09:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2013 18:09:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2013 18:08:58 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id AA2412388A5E; Wed, 2 Oct 2013 18:08:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1528583 [3/5] - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp: ./ Commands/ OpenWire/ OpenWire/V10/ Date: Wed, 02 Oct 2013 18:08:32 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131002180835.AA2412388A5E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerIdMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerIdMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerIdMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerIdMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,124 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for ConsumerId + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for ConsumerId + /// + class ConsumerIdMarshaller : BaseDataStreamMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ConsumerId(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ConsumerId.ID_CONSUMERID; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + ConsumerId info = (ConsumerId)o; + info.ConnectionId = TightUnmarshalString(dataIn, bs); + info.SessionId = TightUnmarshalLong(wireFormat, dataIn, bs); + info.Value = TightUnmarshalLong(wireFormat, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + ConsumerId info = (ConsumerId)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalString1(info.ConnectionId, bs); + rc += TightMarshalLong1(wireFormat, info.SessionId, bs); + rc += TightMarshalLong1(wireFormat, info.Value, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + ConsumerId info = (ConsumerId)o; + TightMarshalString2(info.ConnectionId, dataOut, bs); + TightMarshalLong2(wireFormat, info.SessionId, dataOut, bs); + TightMarshalLong2(wireFormat, info.Value, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + ConsumerId info = (ConsumerId)o; + info.ConnectionId = LooseUnmarshalString(dataIn); + info.SessionId = LooseUnmarshalLong(wireFormat, dataIn); + info.Value = LooseUnmarshalLong(wireFormat, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + ConsumerId info = (ConsumerId)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalString(info.ConnectionId, dataOut); + LooseMarshalLong(wireFormat, info.SessionId, dataOut); + LooseMarshalLong(wireFormat, info.Value, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerIdMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerInfoMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerInfoMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerInfoMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerInfoMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,245 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for ConsumerInfo + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for ConsumerInfo + /// + class ConsumerInfoMarshaller : BaseCommandMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ConsumerInfo(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ConsumerInfo.ID_CONSUMERINFO; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + ConsumerInfo info = (ConsumerInfo)o; + info.ConsumerId = (ConsumerId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); + info.Browser = bs.ReadBoolean(); + info.Destination = (ActiveMQDestination) TightUnmarshalCachedObject(wireFormat, dataIn, bs); + info.PrefetchSize = dataIn.ReadInt32(); + info.MaximumPendingMessageLimit = dataIn.ReadInt32(); + info.DispatchAsync = bs.ReadBoolean(); + info.Selector = TightUnmarshalString(dataIn, bs); + info.ClientId = TightUnmarshalString(dataIn, bs); + info.SubscriptionName = TightUnmarshalString(dataIn, bs); + info.NoLocal = bs.ReadBoolean(); + info.Exclusive = bs.ReadBoolean(); + info.Retroactive = bs.ReadBoolean(); + info.Priority = dataIn.ReadByte(); + + if (bs.ReadBoolean()) { + short size = dataIn.ReadInt16(); + BrokerId[] value = new BrokerId[size]; + for( int i=0; i < size; i++ ) { + value[i] = (BrokerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs); + } + info.BrokerPath = value; + } + else { + info.BrokerPath = null; + } + info.AdditionalPredicate = (BooleanExpression) TightUnmarshalNestedObject(wireFormat, dataIn, bs); + info.NetworkSubscription = bs.ReadBoolean(); + info.OptimizedAcknowledge = bs.ReadBoolean(); + info.NoRangeAcks = bs.ReadBoolean(); + + if (bs.ReadBoolean()) { + short size = dataIn.ReadInt16(); + ConsumerId[] value = new ConsumerId[size]; + for( int i=0; i < size; i++ ) { + value[i] = (ConsumerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs); + } + info.NetworkConsumerPath = value; + } + else { + info.NetworkConsumerPath = null; + } + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + ConsumerInfo info = (ConsumerInfo)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConsumerId, bs); + bs.WriteBoolean(info.Browser); + rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs); + bs.WriteBoolean(info.DispatchAsync); + rc += TightMarshalString1(info.Selector, bs); + rc += TightMarshalString1(info.ClientId, bs); + rc += TightMarshalString1(info.SubscriptionName, bs); + bs.WriteBoolean(info.NoLocal); + bs.WriteBoolean(info.Exclusive); + bs.WriteBoolean(info.Retroactive); + rc += TightMarshalObjectArray1(wireFormat, info.BrokerPath, bs); + rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.AdditionalPredicate, bs); + bs.WriteBoolean(info.NetworkSubscription); + bs.WriteBoolean(info.OptimizedAcknowledge); + bs.WriteBoolean(info.NoRangeAcks); + rc += TightMarshalObjectArray1(wireFormat, info.NetworkConsumerPath, bs); + + return rc + 9; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + ConsumerInfo info = (ConsumerInfo)o; + TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConsumerId, dataOut, bs); + bs.ReadBoolean(); + TightMarshalCachedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs); + dataOut.Write(info.PrefetchSize); + dataOut.Write(info.MaximumPendingMessageLimit); + bs.ReadBoolean(); + TightMarshalString2(info.Selector, dataOut, bs); + TightMarshalString2(info.ClientId, dataOut, bs); + TightMarshalString2(info.SubscriptionName, dataOut, bs); + bs.ReadBoolean(); + bs.ReadBoolean(); + bs.ReadBoolean(); + dataOut.Write(info.Priority); + TightMarshalObjectArray2(wireFormat, info.BrokerPath, dataOut, bs); + TightMarshalNestedObject2(wireFormat, (DataStructure)info.AdditionalPredicate, dataOut, bs); + bs.ReadBoolean(); + bs.ReadBoolean(); + bs.ReadBoolean(); + TightMarshalObjectArray2(wireFormat, info.NetworkConsumerPath, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + ConsumerInfo info = (ConsumerInfo)o; + info.ConsumerId = (ConsumerId) LooseUnmarshalCachedObject(wireFormat, dataIn); + info.Browser = dataIn.ReadBoolean(); + info.Destination = (ActiveMQDestination) LooseUnmarshalCachedObject(wireFormat, dataIn); + info.PrefetchSize = dataIn.ReadInt32(); + info.MaximumPendingMessageLimit = dataIn.ReadInt32(); + info.DispatchAsync = dataIn.ReadBoolean(); + info.Selector = LooseUnmarshalString(dataIn); + info.ClientId = LooseUnmarshalString(dataIn); + info.SubscriptionName = LooseUnmarshalString(dataIn); + info.NoLocal = dataIn.ReadBoolean(); + info.Exclusive = dataIn.ReadBoolean(); + info.Retroactive = dataIn.ReadBoolean(); + info.Priority = dataIn.ReadByte(); + + if (dataIn.ReadBoolean()) { + short size = dataIn.ReadInt16(); + BrokerId[] value = new BrokerId[size]; + for( int i=0; i < size; i++ ) { + value[i] = (BrokerId) LooseUnmarshalNestedObject(wireFormat,dataIn); + } + info.BrokerPath = value; + } + else { + info.BrokerPath = null; + } + info.AdditionalPredicate = (BooleanExpression) LooseUnmarshalNestedObject(wireFormat, dataIn); + info.NetworkSubscription = dataIn.ReadBoolean(); + info.OptimizedAcknowledge = dataIn.ReadBoolean(); + info.NoRangeAcks = dataIn.ReadBoolean(); + + if (dataIn.ReadBoolean()) { + short size = dataIn.ReadInt16(); + ConsumerId[] value = new ConsumerId[size]; + for( int i=0; i < size; i++ ) { + value[i] = (ConsumerId) LooseUnmarshalNestedObject(wireFormat,dataIn); + } + info.NetworkConsumerPath = value; + } + else { + info.NetworkConsumerPath = null; + } + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + ConsumerInfo info = (ConsumerInfo)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConsumerId, dataOut); + dataOut.Write(info.Browser); + LooseMarshalCachedObject(wireFormat, (DataStructure)info.Destination, dataOut); + dataOut.Write(info.PrefetchSize); + dataOut.Write(info.MaximumPendingMessageLimit); + dataOut.Write(info.DispatchAsync); + LooseMarshalString(info.Selector, dataOut); + LooseMarshalString(info.ClientId, dataOut); + LooseMarshalString(info.SubscriptionName, dataOut); + dataOut.Write(info.NoLocal); + dataOut.Write(info.Exclusive); + dataOut.Write(info.Retroactive); + dataOut.Write(info.Priority); + LooseMarshalObjectArray(wireFormat, info.BrokerPath, dataOut); + LooseMarshalNestedObject(wireFormat, (DataStructure)info.AdditionalPredicate, dataOut); + dataOut.Write(info.NetworkSubscription); + dataOut.Write(info.OptimizedAcknowledge); + dataOut.Write(info.NoRangeAcks); + LooseMarshalObjectArray(wireFormat, info.NetworkConsumerPath, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ConsumerInfoMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ControlCommandMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ControlCommandMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ControlCommandMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ControlCommandMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,114 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for ControlCommand + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for ControlCommand + /// + class ControlCommandMarshaller : BaseCommandMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ControlCommand(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ControlCommand.ID_CONTROLCOMMAND; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + ControlCommand info = (ControlCommand)o; + info.Command = TightUnmarshalString(dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + ControlCommand info = (ControlCommand)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalString1(info.Command, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + ControlCommand info = (ControlCommand)o; + TightMarshalString2(info.Command, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + ControlCommand info = (ControlCommand)o; + info.Command = LooseUnmarshalString(dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + ControlCommand info = (ControlCommand)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalString(info.Command, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ControlCommandMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataArrayResponseMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataArrayResponseMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataArrayResponseMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataArrayResponseMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,136 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for DataArrayResponse + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for DataArrayResponse + /// + class DataArrayResponseMarshaller : ResponseMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new DataArrayResponse(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return DataArrayResponse.ID_DATAARRAYRESPONSE; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + DataArrayResponse info = (DataArrayResponse)o; + + if (bs.ReadBoolean()) { + short size = dataIn.ReadInt16(); + DataStructure[] value = new DataStructure[size]; + for( int i=0; i < size; i++ ) { + value[i] = (DataStructure) TightUnmarshalNestedObject(wireFormat,dataIn, bs); + } + info.Data = value; + } + else { + info.Data = null; + } + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + DataArrayResponse info = (DataArrayResponse)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalObjectArray1(wireFormat, info.Data, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + DataArrayResponse info = (DataArrayResponse)o; + TightMarshalObjectArray2(wireFormat, info.Data, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + DataArrayResponse info = (DataArrayResponse)o; + + if (dataIn.ReadBoolean()) { + short size = dataIn.ReadInt16(); + DataStructure[] value = new DataStructure[size]; + for( int i=0; i < size; i++ ) { + value[i] = (DataStructure) LooseUnmarshalNestedObject(wireFormat,dataIn); + } + info.Data = value; + } + else { + info.Data = null; + } + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + DataArrayResponse info = (DataArrayResponse)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalObjectArray(wireFormat, info.Data, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataArrayResponseMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataResponseMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataResponseMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataResponseMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataResponseMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,114 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for DataResponse + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for DataResponse + /// + class DataResponseMarshaller : ResponseMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new DataResponse(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return DataResponse.ID_DATARESPONSE; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + DataResponse info = (DataResponse)o; + info.Data = (DataStructure) TightUnmarshalNestedObject(wireFormat, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + DataResponse info = (DataResponse)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.Data, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + DataResponse info = (DataResponse)o; + TightMarshalNestedObject2(wireFormat, (DataStructure)info.Data, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + DataResponse info = (DataResponse)o; + info.Data = (DataStructure) LooseUnmarshalNestedObject(wireFormat, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + DataResponse info = (DataResponse)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalNestedObject(wireFormat, (DataStructure)info.Data, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DataResponseMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DestinationInfoMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DestinationInfoMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DestinationInfoMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DestinationInfoMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,155 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for DestinationInfo + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for DestinationInfo + /// + class DestinationInfoMarshaller : BaseCommandMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new DestinationInfo(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return DestinationInfo.ID_DESTINATIONINFO; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + DestinationInfo info = (DestinationInfo)o; + info.ConnectionId = (ConnectionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); + info.Destination = (ActiveMQDestination) TightUnmarshalCachedObject(wireFormat, dataIn, bs); + info.OperationType = dataIn.ReadByte(); + info.Timeout = TightUnmarshalLong(wireFormat, dataIn, bs); + + if (bs.ReadBoolean()) { + short size = dataIn.ReadInt16(); + BrokerId[] value = new BrokerId[size]; + for( int i=0; i < size; i++ ) { + value[i] = (BrokerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs); + } + info.BrokerPath = value; + } + else { + info.BrokerPath = null; + } + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + DestinationInfo info = (DestinationInfo)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConnectionId, bs); + rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs); + rc += TightMarshalLong1(wireFormat, info.Timeout, bs); + rc += TightMarshalObjectArray1(wireFormat, info.BrokerPath, bs); + + return rc + 1; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + DestinationInfo info = (DestinationInfo)o; + TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConnectionId, dataOut, bs); + TightMarshalCachedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs); + dataOut.Write(info.OperationType); + TightMarshalLong2(wireFormat, info.Timeout, dataOut, bs); + TightMarshalObjectArray2(wireFormat, info.BrokerPath, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + DestinationInfo info = (DestinationInfo)o; + info.ConnectionId = (ConnectionId) LooseUnmarshalCachedObject(wireFormat, dataIn); + info.Destination = (ActiveMQDestination) LooseUnmarshalCachedObject(wireFormat, dataIn); + info.OperationType = dataIn.ReadByte(); + info.Timeout = LooseUnmarshalLong(wireFormat, dataIn); + + if (dataIn.ReadBoolean()) { + short size = dataIn.ReadInt16(); + BrokerId[] value = new BrokerId[size]; + for( int i=0; i < size; i++ ) { + value[i] = (BrokerId) LooseUnmarshalNestedObject(wireFormat,dataIn); + } + info.BrokerPath = value; + } + else { + info.BrokerPath = null; + } + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + DestinationInfo info = (DestinationInfo)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConnectionId, dataOut); + LooseMarshalCachedObject(wireFormat, (DataStructure)info.Destination, dataOut); + dataOut.Write(info.OperationType); + LooseMarshalLong(wireFormat, info.Timeout, dataOut); + LooseMarshalObjectArray(wireFormat, info.BrokerPath, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DestinationInfoMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DiscoveryEventMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DiscoveryEventMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DiscoveryEventMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DiscoveryEventMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,119 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for DiscoveryEvent + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for DiscoveryEvent + /// + class DiscoveryEventMarshaller : BaseDataStreamMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new DiscoveryEvent(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return DiscoveryEvent.ID_DISCOVERYEVENT; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + DiscoveryEvent info = (DiscoveryEvent)o; + info.ServiceName = TightUnmarshalString(dataIn, bs); + info.BrokerName = TightUnmarshalString(dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + DiscoveryEvent info = (DiscoveryEvent)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalString1(info.ServiceName, bs); + rc += TightMarshalString1(info.BrokerName, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + DiscoveryEvent info = (DiscoveryEvent)o; + TightMarshalString2(info.ServiceName, dataOut, bs); + TightMarshalString2(info.BrokerName, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + DiscoveryEvent info = (DiscoveryEvent)o; + info.ServiceName = LooseUnmarshalString(dataIn); + info.BrokerName = LooseUnmarshalString(dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + DiscoveryEvent info = (DiscoveryEvent)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalString(info.ServiceName, dataOut); + LooseMarshalString(info.BrokerName, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/DiscoveryEventMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ExceptionResponseMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ExceptionResponseMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ExceptionResponseMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ExceptionResponseMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,114 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for ExceptionResponse + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for ExceptionResponse + /// + class ExceptionResponseMarshaller : ResponseMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ExceptionResponse(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ExceptionResponse.ID_EXCEPTIONRESPONSE; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + ExceptionResponse info = (ExceptionResponse)o; + info.Exception = TightUnmarshalBrokerError(wireFormat, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + ExceptionResponse info = (ExceptionResponse)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalBrokerError1(wireFormat, info.Exception, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + ExceptionResponse info = (ExceptionResponse)o; + TightMarshalBrokerError2(wireFormat, info.Exception, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + ExceptionResponse info = (ExceptionResponse)o; + info.Exception = LooseUnmarshalBrokerError(wireFormat, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + ExceptionResponse info = (ExceptionResponse)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalBrokerError(wireFormat, info.Exception, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/ExceptionResponseMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/FlushCommandMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/FlushCommandMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/FlushCommandMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/FlushCommandMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,100 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for FlushCommand + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for FlushCommand + /// + class FlushCommandMarshaller : BaseCommandMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new FlushCommand(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return FlushCommand.ID_FLUSHCOMMAND; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + base.LooseMarshal(wireFormat, o, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/FlushCommandMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/IntegerResponseMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/IntegerResponseMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/IntegerResponseMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/IntegerResponseMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,112 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for IntegerResponse + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for IntegerResponse + /// + class IntegerResponseMarshaller : ResponseMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new IntegerResponse(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return IntegerResponse.ID_INTEGERRESPONSE; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + IntegerResponse info = (IntegerResponse)o; + info.Result = dataIn.ReadInt32(); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 4; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + IntegerResponse info = (IntegerResponse)o; + dataOut.Write(info.Result); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + IntegerResponse info = (IntegerResponse)o; + info.Result = dataIn.ReadInt32(); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + IntegerResponse info = (IntegerResponse)o; + + base.LooseMarshal(wireFormat, o, dataOut); + dataOut.Write(info.Result); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/IntegerResponseMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalQueueAckMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalQueueAckMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalQueueAckMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalQueueAckMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,119 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for JournalQueueAck + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for JournalQueueAck + /// + class JournalQueueAckMarshaller : BaseDataStreamMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new JournalQueueAck(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return JournalQueueAck.ID_JOURNALQUEUEACK; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + JournalQueueAck info = (JournalQueueAck)o; + info.Destination = (ActiveMQDestination) TightUnmarshalNestedObject(wireFormat, dataIn, bs); + info.MessageAck = (MessageAck) TightUnmarshalNestedObject(wireFormat, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + JournalQueueAck info = (JournalQueueAck)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.Destination, bs); + rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.MessageAck, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + JournalQueueAck info = (JournalQueueAck)o; + TightMarshalNestedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs); + TightMarshalNestedObject2(wireFormat, (DataStructure)info.MessageAck, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + JournalQueueAck info = (JournalQueueAck)o; + info.Destination = (ActiveMQDestination) LooseUnmarshalNestedObject(wireFormat, dataIn); + info.MessageAck = (MessageAck) LooseUnmarshalNestedObject(wireFormat, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + JournalQueueAck info = (JournalQueueAck)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalNestedObject(wireFormat, (DataStructure)info.Destination, dataOut); + LooseMarshalNestedObject(wireFormat, (DataStructure)info.MessageAck, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalQueueAckMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTopicAckMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTopicAckMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTopicAckMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTopicAckMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,139 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for JournalTopicAck + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for JournalTopicAck + /// + class JournalTopicAckMarshaller : BaseDataStreamMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new JournalTopicAck(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return JournalTopicAck.ID_JOURNALTOPICACK; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + JournalTopicAck info = (JournalTopicAck)o; + info.Destination = (ActiveMQDestination) TightUnmarshalNestedObject(wireFormat, dataIn, bs); + info.MessageId = (MessageId) TightUnmarshalNestedObject(wireFormat, dataIn, bs); + info.MessageSequenceId = TightUnmarshalLong(wireFormat, dataIn, bs); + info.SubscritionName = TightUnmarshalString(dataIn, bs); + info.ClientId = TightUnmarshalString(dataIn, bs); + info.TransactionId = (TransactionId) TightUnmarshalNestedObject(wireFormat, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + JournalTopicAck info = (JournalTopicAck)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.Destination, bs); + rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.MessageId, bs); + rc += TightMarshalLong1(wireFormat, info.MessageSequenceId, bs); + rc += TightMarshalString1(info.SubscritionName, bs); + rc += TightMarshalString1(info.ClientId, bs); + rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.TransactionId, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + JournalTopicAck info = (JournalTopicAck)o; + TightMarshalNestedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs); + TightMarshalNestedObject2(wireFormat, (DataStructure)info.MessageId, dataOut, bs); + TightMarshalLong2(wireFormat, info.MessageSequenceId, dataOut, bs); + TightMarshalString2(info.SubscritionName, dataOut, bs); + TightMarshalString2(info.ClientId, dataOut, bs); + TightMarshalNestedObject2(wireFormat, (DataStructure)info.TransactionId, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + JournalTopicAck info = (JournalTopicAck)o; + info.Destination = (ActiveMQDestination) LooseUnmarshalNestedObject(wireFormat, dataIn); + info.MessageId = (MessageId) LooseUnmarshalNestedObject(wireFormat, dataIn); + info.MessageSequenceId = LooseUnmarshalLong(wireFormat, dataIn); + info.SubscritionName = LooseUnmarshalString(dataIn); + info.ClientId = LooseUnmarshalString(dataIn); + info.TransactionId = (TransactionId) LooseUnmarshalNestedObject(wireFormat, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + JournalTopicAck info = (JournalTopicAck)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalNestedObject(wireFormat, (DataStructure)info.Destination, dataOut); + LooseMarshalNestedObject(wireFormat, (DataStructure)info.MessageId, dataOut); + LooseMarshalLong(wireFormat, info.MessageSequenceId, dataOut); + LooseMarshalString(info.SubscritionName, dataOut); + LooseMarshalString(info.ClientId, dataOut); + LooseMarshalNestedObject(wireFormat, (DataStructure)info.TransactionId, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTopicAckMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTraceMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTraceMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTraceMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTraceMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,114 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for JournalTrace + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for JournalTrace + /// + class JournalTraceMarshaller : BaseDataStreamMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new JournalTrace(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return JournalTrace.ID_JOURNALTRACE; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + JournalTrace info = (JournalTrace)o; + info.Message = TightUnmarshalString(dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + JournalTrace info = (JournalTrace)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalString1(info.Message, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + JournalTrace info = (JournalTrace)o; + TightMarshalString2(info.Message, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + JournalTrace info = (JournalTrace)o; + info.Message = LooseUnmarshalString(dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + JournalTrace info = (JournalTrace)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalString(info.Message, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTraceMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTransactionMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTransactionMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTransactionMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTransactionMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,123 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for JournalTransaction + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for JournalTransaction + /// + class JournalTransactionMarshaller : BaseDataStreamMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new JournalTransaction(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return JournalTransaction.ID_JOURNALTRANSACTION; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + JournalTransaction info = (JournalTransaction)o; + info.TransactionId = (TransactionId) TightUnmarshalNestedObject(wireFormat, dataIn, bs); + info.Type = dataIn.ReadByte(); + info.WasPrepared = bs.ReadBoolean(); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + JournalTransaction info = (JournalTransaction)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.TransactionId, bs); + bs.WriteBoolean(info.WasPrepared); + + return rc + 1; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + JournalTransaction info = (JournalTransaction)o; + TightMarshalNestedObject2(wireFormat, (DataStructure)info.TransactionId, dataOut, bs); + dataOut.Write(info.Type); + bs.ReadBoolean(); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + JournalTransaction info = (JournalTransaction)o; + info.TransactionId = (TransactionId) LooseUnmarshalNestedObject(wireFormat, dataIn); + info.Type = dataIn.ReadByte(); + info.WasPrepared = dataIn.ReadBoolean(); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + JournalTransaction info = (JournalTransaction)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalNestedObject(wireFormat, (DataStructure)info.TransactionId, dataOut); + dataOut.Write(info.Type); + dataOut.Write(info.WasPrepared); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/JournalTransactionMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/KeepAliveInfoMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/KeepAliveInfoMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/KeepAliveInfoMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/KeepAliveInfoMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,100 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for KeepAliveInfo + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for KeepAliveInfo + /// + class KeepAliveInfoMarshaller : BaseCommandMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new KeepAliveInfo(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return KeepAliveInfo.ID_KEEPALIVEINFO; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + base.LooseMarshal(wireFormat, o, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/KeepAliveInfoMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/LastPartialCommandMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/LastPartialCommandMarshaller.cs?rev=1528583&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/LastPartialCommandMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/LastPartialCommandMarshaller.cs Wed Oct 2 18:08:31 2013 @@ -0,0 +1,100 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for LastPartialCommand + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; + +namespace Apache.NMS.ActiveMQ.OpenWire.V10 +{ + /// + /// Marshalling code for Open Wire Format for LastPartialCommand + /// + class LastPartialCommandMarshaller : PartialCommandMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new LastPartialCommand(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return LastPartialCommand.ID_LASTPARTIALCOMMAND; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + base.LooseMarshal(wireFormat, o, dataOut); + } + } +} Propchange: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V10/LastPartialCommandMarshaller.cs ------------------------------------------------------------------------------ svn:eol-style = native