From 6dacb8eced531c5e3e6ef5ef29ec7065efaed443 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 10 Jan 2006 12:24:16 +0000 Subject: [PATCH] Removed old cruft git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367582 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/OpenWire.Core/AbstractCommand.cs | 82 -- .../AbstractCommandMarshaller.cs | 104 -- .../src/OpenWire.Core/ActiveMQDestination.cs | 443 ------- .../src/OpenWire.Core/ActiveMQQueue.cs | 29 - .../src/OpenWire.Core/ActiveMQTempQueue.cs | 29 - .../src/OpenWire.Core/ActiveMQTempTopic.cs | 28 - .../src/OpenWire.Core/ActiveMQTopic.cs | 29 - openwire-dotnet/src/OpenWire.Core/Command.cs | 9 - .../Commands/ActiveMQBytesMessage.cs | 37 - .../Commands/ActiveMQMapMessage.cs | 37 - .../OpenWire.Core/Commands/ActiveMQMessage.cs | 37 - .../Commands/ActiveMQObjectMessage.cs | 37 - .../Commands/ActiveMQStreamMessage.cs | 37 - .../Commands/ActiveMQTextMessage.cs | 37 - .../src/OpenWire.Core/Commands/BaseCommand.cs | 62 - .../src/OpenWire.Core/Commands/BrokerId.cs | 44 - .../src/OpenWire.Core/Commands/BrokerInfo.cs | 65 -- .../OpenWire.Core/Commands/ConnectionError.cs | 51 - .../OpenWire.Core/Commands/ConnectionId.cs | 44 - .../OpenWire.Core/Commands/ConnectionInfo.cs | 72 -- .../src/OpenWire.Core/Commands/ConsumerId.cs | 58 - .../OpenWire.Core/Commands/ConsumerInfo.cs | 128 --- .../OpenWire.Core/Commands/ControlCommand.cs | 44 - .../Commands/DataArrayResponse.cs | 44 - .../OpenWire.Core/Commands/DataResponse.cs | 44 - .../OpenWire.Core/Commands/DestinationInfo.cs | 72 -- .../OpenWire.Core/Commands/DiscoveryEvent.cs | 51 - .../Commands/ExceptionResponse.cs | 44 - .../OpenWire.Core/Commands/FlushCommand.cs | 37 - .../OpenWire.Core/Commands/IntegerResponse.cs | 44 - .../OpenWire.Core/Commands/JournalQueueAck.cs | 51 - .../OpenWire.Core/Commands/JournalTopicAck.cs | 79 -- .../OpenWire.Core/Commands/JournalTrace.cs | 44 - .../Commands/JournalTransaction.cs | 58 - .../OpenWire.Core/Commands/KeepAliveInfo.cs | 37 - .../Commands/LocalTransactionId.cs | 51 - .../src/OpenWire.Core/Commands/Message.cs | 212 ---- .../src/OpenWire.Core/Commands/MessageAck.cs | 86 -- .../OpenWire.Core/Commands/MessageDispatch.cs | 65 -- .../src/OpenWire.Core/Commands/MessageId.cs | 58 - .../src/OpenWire.Core/Commands/ProducerId.cs | 58 - .../OpenWire.Core/Commands/ProducerInfo.cs | 58 - .../src/OpenWire.Core/Commands/RemoveInfo.cs | 44 - .../Commands/RemoveSubscriptionInfo.cs | 58 - .../src/OpenWire.Core/Commands/Response.cs | 44 - .../src/OpenWire.Core/Commands/SessionId.cs | 51 - .../src/OpenWire.Core/Commands/SessionInfo.cs | 44 - .../OpenWire.Core/Commands/ShutdownInfo.cs | 37 - .../Commands/SubscriptionInfo.cs | 65 -- .../OpenWire.Core/Commands/TransactionId.cs | 37 - .../OpenWire.Core/Commands/TransactionInfo.cs | 58 - .../OpenWire.Core/Commands/WireFormatInfo.cs | 58 - .../OpenWire.Core/Commands/XATransactionId.cs | 58 - .../src/OpenWire.Core/DataStructure.cs | 11 - .../src/OpenWire.Core/Destination.cs | 10 - .../src/OpenWire.Core/DestinationFilter.cs | 18 - .../IO/ActiveMQBytesMessageMarshaller.cs | 38 - .../IO/ActiveMQDestinationMarshaller.cs | 40 - .../IO/ActiveMQMapMessageMarshaller.cs | 38 - .../IO/ActiveMQMessageMarshaller.cs | 38 - .../IO/ActiveMQObjectMessageMarshaller.cs | 38 - .../IO/ActiveMQQueueMarshaller.cs | 38 - .../IO/ActiveMQStreamMessageMarshaller.cs | 38 - .../IO/ActiveMQTempDestinationMarshaller.cs | 34 - .../IO/ActiveMQTempQueueMarshaller.cs | 38 - .../IO/ActiveMQTempTopicMarshaller.cs | 38 - .../IO/ActiveMQTextMessageMarshaller.cs | 38 - .../IO/ActiveMQTopicMarshaller.cs | 38 - .../OpenWire.Core/IO/BaseCommandMarshaller.cs | 42 - .../OpenWire.Core/IO/BrokerIdMarshaller.cs | 44 - .../OpenWire.Core/IO/BrokerInfoMarshaller.cs | 50 - .../IO/CommandMarshallerRegistry.cs | 1017 ----------------- .../IO/ConnectionErrorMarshaller.cs | 46 - .../IO/ConnectionIdMarshaller.cs | 44 - .../IO/ConnectionInfoMarshaller.cs | 52 - .../OpenWire.Core/IO/ConsumerIdMarshaller.cs | 48 - .../IO/ConsumerInfoMarshaller.cs | 68 -- .../IO/ControlCommandMarshaller.cs | 44 - .../IO/DataArrayResponseMarshaller.cs | 44 - .../IO/DataResponseMarshaller.cs | 44 - .../IO/DestinationInfoMarshaller.cs | 52 - .../IO/DiscoveryEventMarshaller.cs | 46 - .../IO/ExceptionResponseMarshaller.cs | 44 - .../IO/FlushCommandMarshaller.cs | 38 - .../IO/IntegerResponseMarshaller.cs | 44 - .../IO/JournalQueueAckMarshaller.cs | 46 - .../IO/JournalTopicAckMarshaller.cs | 54 - .../IO/JournalTraceMarshaller.cs | 44 - .../IO/JournalTransactionMarshaller.cs | 48 - .../IO/KeepAliveInfoMarshaller.cs | 38 - .../IO/LocalTransactionIdMarshaller.cs | 46 - .../OpenWire.Core/IO/MessageAckMarshaller.cs | 56 - .../IO/MessageDispatchMarshaller.cs | 50 - .../OpenWire.Core/IO/MessageIdMarshaller.cs | 48 - .../src/OpenWire.Core/IO/MessageMarshaller.cs | 88 -- .../OpenWire.Core/IO/ProducerIdMarshaller.cs | 48 - .../IO/ProducerInfoMarshaller.cs | 48 - .../OpenWire.Core/IO/RemoveInfoMarshaller.cs | 44 - .../IO/RemoveSubscriptionInfoMarshaller.cs | 48 - .../OpenWire.Core/IO/ResponseMarshaller.cs | 44 - .../OpenWire.Core/IO/SessionIdMarshaller.cs | 46 - .../OpenWire.Core/IO/SessionInfoMarshaller.cs | 44 - .../IO/ShutdownInfoMarshaller.cs | 38 - .../IO/SubscriptionInfoMarshaller.cs | 50 - .../IO/TransactionIdMarshaller.cs | 34 - .../IO/TransactionInfoMarshaller.cs | 48 - .../IO/WireFormatInfoMarshaller.cs | 48 - .../IO/XATransactionIdMarshaller.cs | 48 - .../src/OpenWire.Core/OpenWire.Core.build | 32 - openwire-dotnet/src/OpenWire.Core/Queue.cs | 14 - .../src/OpenWire.Core/TemporaryQueue.cs | 10 - .../src/OpenWire.Core/TemporaryTopic.cs | 10 - openwire-dotnet/src/OpenWire.Core/Topic.cs | 14 - .../src/OpenWire.Core/TransactionConstants.cs | 66 -- .../OpenWire.Core/Transport/FutureResponse.cs | 44 - .../src/OpenWire.Core/Transport/Transport.cs | 24 - 116 files changed, 6870 deletions(-) delete mode 100755 openwire-dotnet/src/OpenWire.Core/AbstractCommand.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/AbstractCommandMarshaller.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/ActiveMQDestination.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/ActiveMQQueue.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/ActiveMQTempQueue.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/ActiveMQTempTopic.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/ActiveMQTopic.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/Command.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQBytesMessage.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQMapMessage.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQMessage.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQObjectMessage.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQStreamMessage.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQTextMessage.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/BaseCommand.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/BrokerId.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/BrokerInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ConnectionError.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ConnectionId.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ConnectionInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ConsumerId.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ConsumerInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ControlCommand.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/DataArrayResponse.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/DataResponse.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/DestinationInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/DiscoveryEvent.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ExceptionResponse.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/FlushCommand.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/IntegerResponse.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/JournalQueueAck.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/JournalTopicAck.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/JournalTrace.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/JournalTransaction.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/KeepAliveInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/LocalTransactionId.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/Message.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/MessageAck.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/MessageDispatch.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/MessageId.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ProducerId.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ProducerInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/RemoveInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/RemoveSubscriptionInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/Response.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/SessionId.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/SessionInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/ShutdownInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/SubscriptionInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/TransactionId.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/TransactionInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/WireFormatInfo.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/Commands/XATransactionId.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/DataStructure.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/Destination.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/DestinationFilter.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQBytesMessageMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQDestinationMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQMapMessageMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQMessageMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQObjectMessageMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQQueueMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQStreamMessageMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempDestinationMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempQueueMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempTopicMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTextMessageMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTopicMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/BaseCommandMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/BrokerIdMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/BrokerInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/CommandMarshallerRegistry.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ConnectionErrorMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ConnectionIdMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ConnectionInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ConsumerIdMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ConsumerInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ControlCommandMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/DataArrayResponseMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/DataResponseMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/DestinationInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/DiscoveryEventMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ExceptionResponseMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/FlushCommandMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/IntegerResponseMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/JournalQueueAckMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/JournalTopicAckMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/JournalTraceMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/JournalTransactionMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/KeepAliveInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/LocalTransactionIdMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/MessageAckMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/MessageDispatchMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/MessageIdMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/MessageMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ProducerIdMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ProducerInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/RemoveInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/RemoveSubscriptionInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ResponseMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/SessionIdMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/SessionInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/ShutdownInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/SubscriptionInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/TransactionIdMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/TransactionInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/WireFormatInfoMarshaller.cs delete mode 100644 openwire-dotnet/src/OpenWire.Core/IO/XATransactionIdMarshaller.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/OpenWire.Core.build delete mode 100755 openwire-dotnet/src/OpenWire.Core/Queue.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/TemporaryQueue.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/TemporaryTopic.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/Topic.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/TransactionConstants.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/Transport/FutureResponse.cs delete mode 100755 openwire-dotnet/src/OpenWire.Core/Transport/Transport.cs diff --git a/openwire-dotnet/src/OpenWire.Core/AbstractCommand.cs b/openwire-dotnet/src/OpenWire.Core/AbstractCommand.cs deleted file mode 100755 index 856866b952..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/AbstractCommand.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System; -using OpenWire.Core; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for AbstractCommand. - /// - public abstract class AbstractCommand : Command { - - protected AbstractCommand() { - } - - public virtual byte GetCommandType() { - return 0; - } - - public static String GetCommandTypeAsString(int type) { - String packetTypeStr = ""; - switch (type) { - case ActiveMQMessage.ID_ActiveMQMessage : - packetTypeStr = "ACTIVEMQ_MESSAGE"; - break; - case ActiveMQTextMessage.ID_ActiveMQTextMessage : - packetTypeStr = "ACTIVEMQ_TEXT_MESSAGE"; - break; - case ActiveMQObjectMessage.ID_ActiveMQObjectMessage: - packetTypeStr = "ACTIVEMQ_OBJECT_MESSAGE"; - break; - case ActiveMQBytesMessage.ID_ActiveMQBytesMessage : - packetTypeStr = "ACTIVEMQ_BYTES_MESSAGE"; - break; - case ActiveMQStreamMessage.ID_ActiveMQStreamMessage : - packetTypeStr = "ACTIVEMQ_STREAM_MESSAGE"; - break; - case ActiveMQMapMessage.ID_ActiveMQMapMessage : - packetTypeStr = "ACTIVEMQ_MAP_MESSAGE"; - break; - case MessageAck.ID_MessageAck : - packetTypeStr = "ACTIVEMQ_MSG_ACK"; - break; - case Response.ID_Response : - packetTypeStr = "RESPONSE"; - break; - case ConsumerInfo.ID_ConsumerInfo : - packetTypeStr = "CONSUMER_INFO"; - break; - case ProducerInfo.ID_ProducerInfo : - packetTypeStr = "PRODUCER_INFO"; - break; - case TransactionInfo.ID_TransactionInfo : - packetTypeStr = "TRANSACTION_INFO"; - break; - case BrokerInfo.ID_BrokerInfo : - packetTypeStr = "BROKER_INFO"; - break; - case ConnectionInfo.ID_ConnectionInfo : - packetTypeStr = "CONNECTION_INFO"; - break; - case SessionInfo.ID_SessionInfo : - packetTypeStr = "SESSION_INFO"; - break; - case RemoveSubscriptionInfo.ID_RemoveSubscriptionInfo : - packetTypeStr = "DURABLE_UNSUBSCRIBE"; - break; - case IntegerResponse.ID_IntegerResponse : - packetTypeStr = "INT_RESPONSE_RECEIPT_INFO"; - break; - case WireFormatInfo.ID_WireFormatInfo : - packetTypeStr = "WIRE_FORMAT_INFO"; - break; - case RemoveInfo.ID_RemoveInfo : - packetTypeStr = "REMOVE_INFO"; - break; - case KeepAliveInfo.ID_KeepAliveInfo : - packetTypeStr = "KEEP_ALIVE"; - break; - } - return packetTypeStr; - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/AbstractCommandMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/AbstractCommandMarshaller.cs deleted file mode 100755 index 077d279202..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/AbstractCommandMarshaller.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.IO; - -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core { - /// - /// A base class with useful implementation inheritence methods - /// for creating marshallers of the OpenWire protocol - /// - public abstract class AbstractCommandMarshaller { - - public abstract Command CreateCommand(); - - public virtual Command ReadCommand(BinaryReader dataIn) { - Command command = CreateCommand(); - BuildCommand(command, dataIn); - return command; - } - - public virtual void BuildCommand(Command command, BinaryReader dataIn) { - // empty body to allow generated code to call base method - } - - public virtual void WriteCommand(Command command, BinaryWriter dataOut) { - // empty body to allow generated code to call base method - } - - protected virtual ActiveMQDestination ReadDestination(BinaryReader dataIn) { - return (ActiveMQDestination) CommandMarshallerRegistry.ReadCommand(dataIn); - } - - protected virtual void WriteDestination(ActiveMQDestination command, BinaryWriter dataOut) { - CommandMarshallerRegistry.WriteCommand(command, dataOut); - } - - protected virtual BrokerId[] ReadBrokerIds(BinaryReader dataIn) { - int size = dataIn.ReadInt32(); - BrokerId[] answer = new BrokerId[size]; - for (int i = 0; i < size; i++) { - answer[i] = (BrokerId) CommandMarshallerRegistry.BrokerIdMarshaller.ReadCommand(dataIn); - } - return answer; - } - - protected virtual void WriteBrokerIds(BrokerId[] commands, BinaryWriter dataOut) { - int size = commands.Length; - dataOut.Write(size); - for (int i = 0; i < size; i++) { - CommandMarshallerRegistry.BrokerIdMarshaller.WriteCommand(commands[i], dataOut); - } - } - - - protected virtual BrokerInfo[] ReadBrokerInfos(BinaryReader dataIn) { - int size = dataIn.ReadInt32(); - BrokerInfo[] answer = new BrokerInfo[size]; - for (int i = 0; i < size; i++) { - answer[i] = (BrokerInfo) CommandMarshallerRegistry - .BrokerInfoMarshaller - .ReadCommand(dataIn); - } - return answer; - } - - protected virtual void WriteBrokerInfos(BrokerInfo[] commands, BinaryWriter dataOut) { - int size = commands.Length; - dataOut.Write(size); - for (int i = 0; i < size; i++) { - CommandMarshallerRegistry.BrokerInfoMarshaller.WriteCommand(commands[i], dataOut); - } - } - - - protected virtual DataStructure[] ReadDataStructures(BinaryReader dataIn) { - int size = dataIn.ReadInt32(); - DataStructure[] answer = new DataStructure[size]; - for (int i = 0; i < size; i++) { - answer[i] = (DataStructure) CommandMarshallerRegistry.ReadCommand(dataIn); - } - return answer; - } - - protected virtual void WriteDataStructures(DataStructure[] commands, BinaryWriter dataOut) { - int size = commands.Length; - dataOut.Write(size); - for (int i = 0; i < size; i++) { - CommandMarshallerRegistry.WriteCommand((Command) commands[i], dataOut); - } - } - - - protected virtual byte[] ReadBytes(BinaryReader dataIn) { - int size = dataIn.ReadInt32(); - return dataIn.ReadBytes(size); - } - - protected virtual void WriteBytes(byte[] command, BinaryWriter dataOut) { - dataOut.Write(command.Length); - dataOut.Write(command); - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/ActiveMQDestination.cs b/openwire-dotnet/src/OpenWire.Core/ActiveMQDestination.cs deleted file mode 100755 index 5a143ad813..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/ActiveMQDestination.cs +++ /dev/null @@ -1,443 +0,0 @@ -using System; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - - /// - /// Summary description for ActiveMQDestination. - /// - public abstract class ActiveMQDestination : AbstractCommand, Destination { - - /** - * Topic Destination object - */ - public const int ACTIVEMQ_TOPIC = 1; - /** - * Temporary Topic Destination object - */ - public const int ACTIVEMQ_TEMPORARY_TOPIC = 2; - - /** - * Queue Destination object - */ - public const int ACTIVEMQ_QUEUE = 3; - /** - * Temporary Queue Destination object - */ - public const int ACTIVEMQ_TEMPORARY_QUEUE = 4; - - /** - * prefix for Advisory message destinations - */ - public const String ADVISORY_PREFIX = "ActiveMQ.Advisory."; - - /** - * prefix for consumer advisory destinations - */ - public const String CONSUMER_ADVISORY_PREFIX = ADVISORY_PREFIX + "Consumers."; - - /** - * prefix for producer advisory destinations - */ - public const String PRODUCER_ADVISORY_PREFIX = ADVISORY_PREFIX + "Producers."; - - /** - * prefix for connection advisory destinations - */ - public const String CONNECTION_ADVISORY_PREFIX = ADVISORY_PREFIX + "Connections."; - - /** - * The default target for ordered destinations - */ - public const String DEFAULT_ORDERED_TARGET = "coordinator"; - - private const int NULL_DESTINATION = 10; - - private const String TEMP_PREFIX = "{TD{"; - private const String TEMP_POSTFIX = "}TD}"; - private const String COMPOSITE_SEPARATOR = ","; - private const String QUEUE_PREFIX = "queue://"; - private const String TOPIC_PREFIX = "topic://"; - - - private String physicalName = ""; - - // Cached transient data - private bool exclusive; - private bool ordered; - private bool advisory; - private String orderedTarget = DEFAULT_ORDERED_TARGET; - - - /** - * The Default Constructor - */ - protected ActiveMQDestination() { - } - - /** - * Construct the Destination with a defined physical name; - * - * @param name - */ - protected ActiveMQDestination(String name) { - this.physicalName = name; - this.advisory = name != null && name.StartsWith(ADVISORY_PREFIX); - } - - - - /** - * @return Returns the advisory. - */ - public bool IsAdvisory() { - return advisory; - } - /** - * @param advisory The advisory to set. - */ - public void SetAdvisory(bool advisory) { - this.advisory = advisory; - } - - /** - * @return true if this is a destination for Consumer advisories - */ - public bool IsConsumerAdvisory() { - return IsAdvisory() && physicalName.StartsWith(CONSUMER_ADVISORY_PREFIX); - } - - /** - * @return true if this is a destination for Producer advisories - */ - public bool IsProducerAdvisory() { - return IsAdvisory() && physicalName.StartsWith(PRODUCER_ADVISORY_PREFIX); - } - - /** - * @return true if this is a destination for Connection advisories - */ - public bool IsConnectionAdvisory() { - return IsAdvisory() && physicalName.StartsWith(CONNECTION_ADVISORY_PREFIX); - } - - /** - * @return Returns the exclusive. - */ - public bool IsExclusive() { - return exclusive; - } - /** - * @param exclusive The exclusive to set. - */ - public void SetExclusive(bool exclusive) { - this.exclusive = exclusive; - } - /** - * @return Returns the ordered. - */ - public bool IsOrdered() { - return ordered; - } - /** - * @param ordered The ordered to set. - */ - public void SetOrdered(bool ordered) { - this.ordered = ordered; - } - /** - * @return Returns the orderedTarget. - */ - public String GetOrderedTarget() { - return orderedTarget; - } - /** - * @param orderedTarget The orderedTarget to set. - */ - public void SetOrderedTarget(String orderedTarget) { - this.orderedTarget = orderedTarget; - } - /** - * A helper method to return a descriptive string for the topic or queue - * @param destination - * - * @return a descriptive string for this queue or topic - */ - public static String Inspect(ActiveMQDestination destination) { - if (destination is Topic) { - return "Topic(" + destination.ToString() + ")"; - } else { - return "Queue(" + destination.ToString() + ")"; - } - } - - /** - * @param destination - * @return @throws JMSException - * @throws javax.jms.JMSException - */ - public static ActiveMQDestination transformDestination(Destination destination) { - ActiveMQDestination result = null; - if (destination != null) { - if (destination is ActiveMQDestination) { - result = (ActiveMQDestination) destination; - } else { - if (destination is TemporaryQueue) { - result = new ActiveMQTempQueue(((Queue) destination).QueueName); - } else if (destination is TemporaryTopic) { - result = new ActiveMQTempTopic(((Topic) destination).TopicName); - } else if (destination is Queue) { - result = new ActiveMQQueue(((Queue) destination).QueueName); - } else if (destination is Topic) { - result = new ActiveMQTopic(((Topic) destination).TopicName); - } - } - } - return result; - } - - /** - * Create a Destination - * @param type - * @param pyhsicalName - * @return - */ - public static ActiveMQDestination CreateDestination(int type, String pyhsicalName) { - ActiveMQDestination result = null; - if (type == ACTIVEMQ_TOPIC) { - result = new ActiveMQTopic(pyhsicalName); - } else if (type == ACTIVEMQ_TEMPORARY_TOPIC) { - result = new ActiveMQTempTopic(pyhsicalName); - } else if (type == ACTIVEMQ_QUEUE) { - result = new ActiveMQQueue(pyhsicalName); - } else { - result = new ActiveMQTempQueue(pyhsicalName); - } - return result; - } - - /** - * Create a temporary name from the clientId - * - * @param clientId - * @return - */ - public static String CreateTemporaryName(String clientId) { - return TEMP_PREFIX + clientId + TEMP_POSTFIX; - } - - /** - * From a temporary destination find the clientId of the Connection that created it - * - * @param destination - * @return the clientId or null if not a temporary destination - */ - public static String GetClientId(ActiveMQDestination destination) { - String answer = null; - if (destination != null && destination.IsTemporary()) { - String name = destination.PhysicalName; - int start = name.IndexOf(TEMP_PREFIX); - if (start >= 0) { - start += TEMP_PREFIX.Length; - int stop = name.LastIndexOf(TEMP_POSTFIX); - if (stop > start && stop < name.Length) { - answer = name.Substring(start, stop); - } - } - } - return answer; - } - - - /** - * @param o object to compare - * @return 1 if this is less than o else 0 if they are equal or -1 if this is less than o - */ - public int CompareTo(Object o) { - if (o is ActiveMQDestination) { - return CompareTo((ActiveMQDestination) o); - } - return -1; - } - - /** - * Lets sort by name first then lets sort topics greater than queues - * - * @param that another destination to compare against - * @return 1 if this is less than o else 0 if they are equal or -1 if this is less than o - */ - public int CompareTo(ActiveMQDestination that) { - int answer = 0; - if (physicalName != that.physicalName) { - if (physicalName == null) { - return -1; - } else if (that.physicalName == null) { - return 1; - } - answer = physicalName.CompareTo(that.physicalName); - } - if (answer == 0) { - if (IsTopic()) { - if (that.IsQueue()) { - return 1; - } - } else { - if (that.IsTopic()) { - return -1; - } - } - } - return answer; - } - - - /** - * @return Returns the Destination type - */ - - public abstract int GetDestinationType(); - - - public String PhysicalName { - get { return this.physicalName; } - set { this.physicalName = value; } - } - - /** - * Returns true if a temporary Destination - * - * @return true/false - */ - - public bool IsTemporary() { - return GetDestinationType() == ACTIVEMQ_TEMPORARY_TOPIC - || GetDestinationType() == ACTIVEMQ_TEMPORARY_QUEUE; - } - - /** - * Returns true if a Topic Destination - * - * @return true/false - */ - - public bool IsTopic() { - return GetDestinationType() == ACTIVEMQ_TOPIC - || GetDestinationType() == ACTIVEMQ_TEMPORARY_TOPIC; - } - - /** - * Returns true if a Queue Destination - * - * @return true/false - */ - public bool IsQueue() { - return !IsTopic(); - } - - /** - * Returns true if this destination represents a collection of - * destinations; allowing a set of destinations to be published to or subscribed - * from in one JMS operation. - *

- * If this destination is a composite then you can call {@link #getChildDestinations()} - * to return the list of child destinations. - * - * @return true if this destination represents a collection of child destinations. - */ - public bool IsComposite() { - return physicalName.IndexOf(COMPOSITE_SEPARATOR) > 0; - } - - /** - * Returns a list of child destinations if this destination represents a composite - * destination. - * - * @return - */ - /*public List GetChildDestinations() { - List answer = new ArrayList(); - StringTokenizer iter = new StringTokenizer(physicalName, COMPOSITE_SEPARATOR); - while (iter.hasMoreTokens()) { - String name = iter.nextToken(); - Destination child = null; - if (name.StartsWith(QUEUE_PREFIX)) { - child = new ActiveMQQueue(name.Substring(QUEUE_PREFIX.Length)); - } - else if (name.StartsWith(TOPIC_PREFIX)) { - child = new ActiveMQTopic(name.Substring(TOPIC_PREFIX.Length)); - } - else { - child = createDestination(name); - } - answer.add(child); - } - if (answer.size() == 1) { - // lets put ourselves inside the collection - // as we are not really a composite destination - answer.set(0, this); - } - return answer; - }*/ - - /** - * @return string representation of this instance - */ - - public override String ToString() { - return this.physicalName; - } - - /** - * @return hashCode for this instance - */ - - public override int GetHashCode() { - int answer = 37; - - if (this.physicalName != null) { - answer = physicalName.GetHashCode(); - } - if (IsTopic()) { - answer ^= 0xfabfab; - } - return answer; - } - - /** - * if the object passed in is equivalent, return true - * - * @param obj the object to compare - * @return true if this instance and obj are equivalent - */ - - public override bool Equals(Object obj) { - bool result = this == obj; - if (!result && obj != null && obj is ActiveMQDestination) { - ActiveMQDestination other = (ActiveMQDestination) obj; - result = this.GetDestinationType() == other.GetDestinationType() - && this.physicalName.Equals(other.physicalName); - } - return result; - } - - - /** - * @return true if the destination matches multiple possible destinations - */ - public bool IsWildcard() { - if (physicalName != null) { - return physicalName.IndexOf(DestinationFilter.ANY_CHILD) >= 0 - || physicalName.IndexOf(DestinationFilter.ANY_DESCENDENT) >= 0; - } - return false; - } - - - /** - * Factory method to create a child destination if this destination is a composite - * @param name - * @return the created Destination - */ - public abstract ActiveMQDestination CreateDestination(String name); - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/ActiveMQQueue.cs b/openwire-dotnet/src/OpenWire.Core/ActiveMQQueue.cs deleted file mode 100755 index b710b896d9..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/ActiveMQQueue.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using OpenWire.Core; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - ///

- /// Summary description for ActiveMQQueue. - /// - public class ActiveMQQueue : ActiveMQDestination, Queue { - public const byte ID_ActiveMQQueue = 100; - - public ActiveMQQueue() : base() { - } - public ActiveMQQueue(String name) : base(name) { - } - - public String QueueName { - get { return PhysicalName; } - } - - public override int GetDestinationType() { - return ACTIVEMQ_QUEUE; - } - - public override ActiveMQDestination CreateDestination(String name) { - return new ActiveMQQueue(name); - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/ActiveMQTempQueue.cs b/openwire-dotnet/src/OpenWire.Core/ActiveMQTempQueue.cs deleted file mode 100755 index 5b58d59a82..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/ActiveMQTempQueue.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using OpenWire.Core; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for ActiveMQTempQueue. - /// - public class ActiveMQTempQueue : ActiveMQDestination, TemporaryQueue { - public const byte ID_ActiveMQTempQueue = 102; - - public ActiveMQTempQueue() : base() { - } - public ActiveMQTempQueue(String name) : base(name) { - } - - public String GetQueueName() { - return PhysicalName; - } - - public override int GetDestinationType() { - return ACTIVEMQ_QUEUE; - } - - public override ActiveMQDestination CreateDestination(String name) { - return new ActiveMQTempQueue(name); - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/ActiveMQTempTopic.cs b/openwire-dotnet/src/OpenWire.Core/ActiveMQTempTopic.cs deleted file mode 100755 index 1388a41616..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/ActiveMQTempTopic.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using OpenWire.Core; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for ActiveMQTempTopic. - /// - public class ActiveMQTempTopic : ActiveMQDestination, TemporaryTopic { - public const byte ID_ActiveMQTempTopic = 103; - - public ActiveMQTempTopic() : base() { - } - public ActiveMQTempTopic(String name) : base(name) { - } - - public String GetTopicName() { - return PhysicalName; - } - public override int GetDestinationType() { - return ACTIVEMQ_TOPIC; - } - - public override ActiveMQDestination CreateDestination(String name) { - return new ActiveMQTempTopic(name); - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/ActiveMQTopic.cs b/openwire-dotnet/src/OpenWire.Core/ActiveMQTopic.cs deleted file mode 100755 index 336405ad01..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/ActiveMQTopic.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using OpenWire.Core; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for ActiveMQTopic. - /// - public class ActiveMQTopic : ActiveMQDestination, Topic { - public const byte ID_ActiveMQTopic = 101; - - public ActiveMQTopic() : base() { - } - public ActiveMQTopic(String name) : base(name) { - } - - public String TopicName { - get { return PhysicalName; } - } - - public override int GetDestinationType() { - return ACTIVEMQ_TOPIC; - } - - public override ActiveMQDestination CreateDestination(String name) { - return new ActiveMQTopic(name); - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Command.cs b/openwire-dotnet/src/OpenWire.Core/Command.cs deleted file mode 100755 index 6f19df7b66..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Command.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace OpenWire.Core { - /// - /// An OpenWire command - /// - public interface Command : DataStructure { - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQBytesMessage.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQBytesMessage.cs deleted file mode 100644 index cb70a40943..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQBytesMessage.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQBytesMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ActiveMQBytesMessage : ActiveMQMessage - { - public const byte ID_ActiveMQBytesMessage = 24; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ActiveMQBytesMessage; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQMapMessage.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQMapMessage.cs deleted file mode 100644 index 0fbda0385f..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQMapMessage.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQMapMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ActiveMQMapMessage : ActiveMQMessage - { - public const byte ID_ActiveMQMapMessage = 25; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ActiveMQMapMessage; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQMessage.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQMessage.cs deleted file mode 100644 index 641d84a9ef..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQMessage.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ActiveMQMessage : Message - { - public const byte ID_ActiveMQMessage = 23; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ActiveMQMessage; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQObjectMessage.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQObjectMessage.cs deleted file mode 100644 index 51941987bb..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQObjectMessage.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQObjectMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ActiveMQObjectMessage : ActiveMQMessage - { - public const byte ID_ActiveMQObjectMessage = 26; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ActiveMQObjectMessage; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQStreamMessage.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQStreamMessage.cs deleted file mode 100644 index c7e0897a6c..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQStreamMessage.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQStreamMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ActiveMQStreamMessage : ActiveMQMessage - { - public const byte ID_ActiveMQStreamMessage = 27; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ActiveMQStreamMessage; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQTextMessage.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQTextMessage.cs deleted file mode 100644 index 8f8e5ebd60..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ActiveMQTextMessage.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQTextMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ActiveMQTextMessage : ActiveMQMessage - { - public const byte ID_ActiveMQTextMessage = 28; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ActiveMQTextMessage; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/BaseCommand.cs b/openwire-dotnet/src/OpenWire.Core/Commands/BaseCommand.cs deleted file mode 100644 index 8bbea3b06c..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/BaseCommand.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Marshalling code for Open Wire Format for BaseCommand -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands { - - public class BaseCommand : AbstractCommand { - public const byte ID_BaseCommand = 0; - - short commandId; - bool responseRequired; - - - public override int GetHashCode() { - return commandId; - } - - public override bool Equals(Object that) { - if (that is BaseCommand) { - BaseCommand thatCommand = (BaseCommand) that; - return this.GetCommandType() == thatCommand.GetCommandType() - && this.CommandId == thatCommand.CommandId; - } - return false; - } - - public override String ToString() { - string answer = GetCommandTypeAsString(GetCommandType()); - if (answer.Length == 0) { - answer = base.ToString(); - } - return answer + ": id = " + CommandId; - } - - public override byte GetCommandType() { - return ID_BaseCommand; - } - - - // Properties - - public short CommandId { - get { return commandId; } - set { this.commandId = value; } - } - - public bool ResponseRequired { - get { return responseRequired; } - set { this.responseRequired = value; } - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/BrokerId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/BrokerId.cs deleted file mode 100644 index cfb5f20e3b..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/BrokerId.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for BrokerId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class BrokerId : AbstractCommand - { - public const byte ID_BrokerId = 124; - - string value; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_BrokerId; - } - - - // Properties - - public string Value - { - get { return value; } - set { this.value = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/BrokerInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/BrokerInfo.cs deleted file mode 100644 index a4452febab..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/BrokerInfo.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Marshalling code for Open Wire Format for BrokerInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class BrokerInfo : BaseCommand - { - public const byte ID_BrokerInfo = 2; - - BrokerId brokerId; - string brokerURL; - BrokerInfo[] peerBrokerInfos; - string brokerName; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_BrokerInfo; - } - - - // Properties - - public BrokerId BrokerId - { - get { return brokerId; } - set { this.brokerId = value; } - } - - public string BrokerURL - { - get { return brokerURL; } - set { this.brokerURL = value; } - } - - public BrokerInfo[] PeerBrokerInfos - { - get { return peerBrokerInfos; } - set { this.peerBrokerInfos = value; } - } - - public string BrokerName - { - get { return brokerName; } - set { this.brokerName = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionError.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionError.cs deleted file mode 100644 index d557b94add..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionError.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConnectionError -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ConnectionError : BaseCommand - { - public const byte ID_ConnectionError = 16; - - byte[] exception; - ConnectionId connectionId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ConnectionError; - } - - - // Properties - - public byte[] Exception - { - get { return exception; } - set { this.exception = value; } - } - - public ConnectionId ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionId.cs deleted file mode 100644 index c1c76b5980..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionId.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConnectionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ConnectionId : AbstractCommand - { - public const byte ID_ConnectionId = 120; - - string value; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ConnectionId; - } - - - // Properties - - public string Value - { - get { return value; } - set { this.value = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionInfo.cs deleted file mode 100644 index 7d9cede183..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ConnectionInfo.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConnectionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ConnectionInfo : BaseCommand - { - public const byte ID_ConnectionInfo = 3; - - ConnectionId connectionId; - string clientId; - string password; - string userName; - BrokerId[] brokerPath; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ConnectionInfo; - } - - - // Properties - - public ConnectionId ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - public string ClientId - { - get { return clientId; } - set { this.clientId = value; } - } - - public string Password - { - get { return password; } - set { this.password = value; } - } - - public string UserName - { - get { return userName; } - set { this.userName = value; } - } - - public BrokerId[] BrokerPath - { - get { return brokerPath; } - set { this.brokerPath = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ConsumerId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ConsumerId.cs deleted file mode 100644 index 92e796fdfe..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ConsumerId.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConsumerId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ConsumerId : AbstractCommand - { - public const byte ID_ConsumerId = 122; - - string connectionId; - long sessionId; - long value; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ConsumerId; - } - - - // Properties - - public string ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - public long SessionId - { - get { return sessionId; } - set { this.sessionId = value; } - } - - public long Value - { - get { return value; } - set { this.value = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ConsumerInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ConsumerInfo.cs deleted file mode 100644 index 4b83440b4e..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ConsumerInfo.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConsumerInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ConsumerInfo : BaseCommand - { - public const byte ID_ConsumerInfo = 5; - - ConsumerId consumerId; - bool browser; - ActiveMQDestination destination; - int prefetchSize; - bool dispatchAsync; - string selector; - string subcriptionName; - bool noLocal; - bool exclusive; - bool retroactive; - byte priority; - BrokerId[] brokerPath; - bool networkSubscription; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ConsumerInfo; - } - - - // Properties - - public ConsumerId ConsumerId - { - get { return consumerId; } - set { this.consumerId = value; } - } - - public bool Browser - { - get { return browser; } - set { this.browser = value; } - } - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public int PrefetchSize - { - get { return prefetchSize; } - set { this.prefetchSize = value; } - } - - public bool DispatchAsync - { - get { return dispatchAsync; } - set { this.dispatchAsync = value; } - } - - public string Selector - { - get { return selector; } - set { this.selector = value; } - } - - public string SubcriptionName - { - get { return subcriptionName; } - set { this.subcriptionName = value; } - } - - public bool NoLocal - { - get { return noLocal; } - set { this.noLocal = value; } - } - - public bool Exclusive - { - get { return exclusive; } - set { this.exclusive = value; } - } - - public bool Retroactive - { - get { return retroactive; } - set { this.retroactive = value; } - } - - public byte Priority - { - get { return priority; } - set { this.priority = value; } - } - - public BrokerId[] BrokerPath - { - get { return brokerPath; } - set { this.brokerPath = value; } - } - - public bool NetworkSubscription - { - get { return networkSubscription; } - set { this.networkSubscription = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ControlCommand.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ControlCommand.cs deleted file mode 100644 index a1f7c11252..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ControlCommand.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for ControlCommand -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ControlCommand : BaseCommand - { - public const byte ID_ControlCommand = 14; - - string command; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ControlCommand; - } - - - // Properties - - public string Command - { - get { return command; } - set { this.command = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/DataArrayResponse.cs b/openwire-dotnet/src/OpenWire.Core/Commands/DataArrayResponse.cs deleted file mode 100644 index 3ab0448de2..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/DataArrayResponse.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for DataArrayResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class DataArrayResponse : Response - { - public const byte ID_DataArrayResponse = 33; - - DataStructure[] data; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_DataArrayResponse; - } - - - // Properties - - public DataStructure[] Data - { - get { return data; } - set { this.data = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/DataResponse.cs b/openwire-dotnet/src/OpenWire.Core/Commands/DataResponse.cs deleted file mode 100644 index 3d489cdf8e..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/DataResponse.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for DataResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class DataResponse : Response - { - public const byte ID_DataResponse = 32; - - DataStructure data; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_DataResponse; - } - - - // Properties - - public DataStructure Data - { - get { return data; } - set { this.data = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/DestinationInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/DestinationInfo.cs deleted file mode 100644 index d4d1386f5b..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/DestinationInfo.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Marshalling code for Open Wire Format for DestinationInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class DestinationInfo : BaseCommand - { - public const byte ID_DestinationInfo = 8; - - ConnectionId connectionId; - ActiveMQDestination destination; - byte operationType; - long timeout; - BrokerId[] brokerPath; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_DestinationInfo; - } - - - // Properties - - public ConnectionId ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public byte OperationType - { - get { return operationType; } - set { this.operationType = value; } - } - - public long Timeout - { - get { return timeout; } - set { this.timeout = value; } - } - - public BrokerId[] BrokerPath - { - get { return brokerPath; } - set { this.brokerPath = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/DiscoveryEvent.cs b/openwire-dotnet/src/OpenWire.Core/Commands/DiscoveryEvent.cs deleted file mode 100644 index 00350cd0ae..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/DiscoveryEvent.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// Marshalling code for Open Wire Format for DiscoveryEvent -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class DiscoveryEvent : AbstractCommand - { - public const byte ID_DiscoveryEvent = 40; - - string serviceName; - string brokerName; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_DiscoveryEvent; - } - - - // Properties - - public string ServiceName - { - get { return serviceName; } - set { this.serviceName = value; } - } - - public string BrokerName - { - get { return brokerName; } - set { this.brokerName = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ExceptionResponse.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ExceptionResponse.cs deleted file mode 100644 index f409679ba9..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ExceptionResponse.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for ExceptionResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ExceptionResponse : Response - { - public const byte ID_ExceptionResponse = 31; - - byte[] exception; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ExceptionResponse; - } - - - // Properties - - public byte[] Exception - { - get { return exception; } - set { this.exception = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/FlushCommand.cs b/openwire-dotnet/src/OpenWire.Core/Commands/FlushCommand.cs deleted file mode 100644 index b42db6ac47..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/FlushCommand.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for FlushCommand -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class FlushCommand : BaseCommand - { - public const byte ID_FlushCommand = 15; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_FlushCommand; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/IntegerResponse.cs b/openwire-dotnet/src/OpenWire.Core/Commands/IntegerResponse.cs deleted file mode 100644 index 6c3b971268..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/IntegerResponse.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for IntegerResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class IntegerResponse : Response - { - public const byte ID_IntegerResponse = 34; - - int result; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_IntegerResponse; - } - - - // Properties - - public int Result - { - get { return result; } - set { this.result = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/JournalQueueAck.cs b/openwire-dotnet/src/OpenWire.Core/Commands/JournalQueueAck.cs deleted file mode 100644 index 6b6fc13e7e..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/JournalQueueAck.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// Marshalling code for Open Wire Format for JournalQueueAck -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class JournalQueueAck : AbstractCommand - { - public const byte ID_JournalQueueAck = 52; - - ActiveMQDestination destination; - MessageAck messageAck; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_JournalQueueAck; - } - - - // Properties - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public MessageAck MessageAck - { - get { return messageAck; } - set { this.messageAck = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/JournalTopicAck.cs b/openwire-dotnet/src/OpenWire.Core/Commands/JournalTopicAck.cs deleted file mode 100644 index fa9f8aa759..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/JournalTopicAck.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Marshalling code for Open Wire Format for JournalTopicAck -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class JournalTopicAck : AbstractCommand - { - public const byte ID_JournalTopicAck = 50; - - ActiveMQDestination destination; - MessageId messageId; - long messageSequenceId; - string subscritionName; - string clientId; - TransactionId transactionId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_JournalTopicAck; - } - - - // Properties - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public MessageId MessageId - { - get { return messageId; } - set { this.messageId = value; } - } - - public long MessageSequenceId - { - get { return messageSequenceId; } - set { this.messageSequenceId = value; } - } - - public string SubscritionName - { - get { return subscritionName; } - set { this.subscritionName = value; } - } - - public string ClientId - { - get { return clientId; } - set { this.clientId = value; } - } - - public TransactionId TransactionId - { - get { return transactionId; } - set { this.transactionId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/JournalTrace.cs b/openwire-dotnet/src/OpenWire.Core/Commands/JournalTrace.cs deleted file mode 100644 index 288e948e65..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/JournalTrace.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for JournalTrace -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class JournalTrace : AbstractCommand - { - public const byte ID_JournalTrace = 53; - - string message; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_JournalTrace; - } - - - // Properties - - public string Message - { - get { return message; } - set { this.message = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/JournalTransaction.cs b/openwire-dotnet/src/OpenWire.Core/Commands/JournalTransaction.cs deleted file mode 100644 index cced33bd10..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/JournalTransaction.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for JournalTransaction -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class JournalTransaction : AbstractCommand - { - public const byte ID_JournalTransaction = 54; - - TransactionId transactionId; - byte type; - bool wasPrepared; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_JournalTransaction; - } - - - // Properties - - public TransactionId TransactionId - { - get { return transactionId; } - set { this.transactionId = value; } - } - - public byte Type - { - get { return type; } - set { this.type = value; } - } - - public bool WasPrepared - { - get { return wasPrepared; } - set { this.wasPrepared = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/KeepAliveInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/KeepAliveInfo.cs deleted file mode 100644 index 292053ca19..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/KeepAliveInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for KeepAliveInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class KeepAliveInfo : AbstractCommand - { - public const byte ID_KeepAliveInfo = 10; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_KeepAliveInfo; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/LocalTransactionId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/LocalTransactionId.cs deleted file mode 100644 index 74d6af0ae1..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/LocalTransactionId.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// Marshalling code for Open Wire Format for LocalTransactionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class LocalTransactionId : TransactionId - { - public const byte ID_LocalTransactionId = 111; - - long value; - ConnectionId connectionId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_LocalTransactionId; - } - - - // Properties - - public long Value - { - get { return value; } - set { this.value = value; } - } - - public ConnectionId ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/Message.cs b/openwire-dotnet/src/OpenWire.Core/Commands/Message.cs deleted file mode 100644 index 88830fee92..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/Message.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Marshalling code for Open Wire Format for Message -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class Message : BaseCommand - { - public const byte ID_Message = 0; - - ProducerId producerId; - ActiveMQDestination destination; - TransactionId transactionId; - ActiveMQDestination originalDestination; - MessageId messageId; - TransactionId originalTransactionId; - string groupID; - int groupSequence; - string correlationId; - bool persistent; - long expiration; - byte priority; - ActiveMQDestination replyTo; - long timestamp; - string type; - byte[] content; - byte[] marshalledProperties; - DataStructure dataStructure; - ConsumerId targetConsumerId; - bool compressed; - int redeliveryCounter; - BrokerId[] brokerPath; - long arrival; - string userID; - bool recievedByDFBridge; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_Message; - } - - - // Properties - - public ProducerId ProducerId - { - get { return producerId; } - set { this.producerId = value; } - } - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public TransactionId TransactionId - { - get { return transactionId; } - set { this.transactionId = value; } - } - - public ActiveMQDestination OriginalDestination - { - get { return originalDestination; } - set { this.originalDestination = value; } - } - - public MessageId MessageId - { - get { return messageId; } - set { this.messageId = value; } - } - - public TransactionId OriginalTransactionId - { - get { return originalTransactionId; } - set { this.originalTransactionId = value; } - } - - public string GroupID - { - get { return groupID; } - set { this.groupID = value; } - } - - public int GroupSequence - { - get { return groupSequence; } - set { this.groupSequence = value; } - } - - public string CorrelationId - { - get { return correlationId; } - set { this.correlationId = value; } - } - - public bool Persistent - { - get { return persistent; } - set { this.persistent = value; } - } - - public long Expiration - { - get { return expiration; } - set { this.expiration = value; } - } - - public byte Priority - { - get { return priority; } - set { this.priority = value; } - } - - public ActiveMQDestination ReplyTo - { - get { return replyTo; } - set { this.replyTo = value; } - } - - public long Timestamp - { - get { return timestamp; } - set { this.timestamp = value; } - } - - public string Type - { - get { return type; } - set { this.type = value; } - } - - public byte[] Content - { - get { return content; } - set { this.content = value; } - } - - public byte[] MarshalledProperties - { - get { return marshalledProperties; } - set { this.marshalledProperties = value; } - } - - public DataStructure DataStructure - { - get { return dataStructure; } - set { this.dataStructure = value; } - } - - public ConsumerId TargetConsumerId - { - get { return targetConsumerId; } - set { this.targetConsumerId = value; } - } - - public bool Compressed - { - get { return compressed; } - set { this.compressed = value; } - } - - public int RedeliveryCounter - { - get { return redeliveryCounter; } - set { this.redeliveryCounter = value; } - } - - public BrokerId[] BrokerPath - { - get { return brokerPath; } - set { this.brokerPath = value; } - } - - public long Arrival - { - get { return arrival; } - set { this.arrival = value; } - } - - public string UserID - { - get { return userID; } - set { this.userID = value; } - } - - public bool RecievedByDFBridge - { - get { return recievedByDFBridge; } - set { this.recievedByDFBridge = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/MessageAck.cs b/openwire-dotnet/src/OpenWire.Core/Commands/MessageAck.cs deleted file mode 100644 index ae23e5b843..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/MessageAck.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Marshalling code for Open Wire Format for MessageAck -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class MessageAck : BaseCommand - { - public const byte ID_MessageAck = 22; - - ActiveMQDestination destination; - TransactionId transactionId; - ConsumerId consumerId; - byte ackType; - MessageId firstMessageId; - MessageId lastMessageId; - int messageCount; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_MessageAck; - } - - - // Properties - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public TransactionId TransactionId - { - get { return transactionId; } - set { this.transactionId = value; } - } - - public ConsumerId ConsumerId - { - get { return consumerId; } - set { this.consumerId = value; } - } - - public byte AckType - { - get { return ackType; } - set { this.ackType = value; } - } - - public MessageId FirstMessageId - { - get { return firstMessageId; } - set { this.firstMessageId = value; } - } - - public MessageId LastMessageId - { - get { return lastMessageId; } - set { this.lastMessageId = value; } - } - - public int MessageCount - { - get { return messageCount; } - set { this.messageCount = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/MessageDispatch.cs b/openwire-dotnet/src/OpenWire.Core/Commands/MessageDispatch.cs deleted file mode 100644 index b47e27cd57..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/MessageDispatch.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Marshalling code for Open Wire Format for MessageDispatch -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class MessageDispatch : BaseCommand - { - public const byte ID_MessageDispatch = 21; - - ConsumerId consumerId; - ActiveMQDestination destination; - Message message; - int redeliveryCounter; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_MessageDispatch; - } - - - // Properties - - public ConsumerId ConsumerId - { - get { return consumerId; } - set { this.consumerId = value; } - } - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public Message Message - { - get { return message; } - set { this.message = value; } - } - - public int RedeliveryCounter - { - get { return redeliveryCounter; } - set { this.redeliveryCounter = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/MessageId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/MessageId.cs deleted file mode 100644 index d09b90705d..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/MessageId.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for MessageId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class MessageId : AbstractCommand - { - public const byte ID_MessageId = 110; - - ProducerId producerId; - long producerSequenceId; - long brokerSequenceId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_MessageId; - } - - - // Properties - - public ProducerId ProducerId - { - get { return producerId; } - set { this.producerId = value; } - } - - public long ProducerSequenceId - { - get { return producerSequenceId; } - set { this.producerSequenceId = value; } - } - - public long BrokerSequenceId - { - get { return brokerSequenceId; } - set { this.brokerSequenceId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ProducerId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ProducerId.cs deleted file mode 100644 index ee5d642dfc..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ProducerId.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for ProducerId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ProducerId : AbstractCommand - { - public const byte ID_ProducerId = 123; - - string connectionId; - long value; - long sessionId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ProducerId; - } - - - // Properties - - public string ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - public long Value - { - get { return value; } - set { this.value = value; } - } - - public long SessionId - { - get { return sessionId; } - set { this.sessionId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ProducerInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ProducerInfo.cs deleted file mode 100644 index 8f4a667bba..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ProducerInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for ProducerInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ProducerInfo : BaseCommand - { - public const byte ID_ProducerInfo = 6; - - ProducerId producerId; - ActiveMQDestination destination; - BrokerId[] brokerPath; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ProducerInfo; - } - - - // Properties - - public ProducerId ProducerId - { - get { return producerId; } - set { this.producerId = value; } - } - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public BrokerId[] BrokerPath - { - get { return brokerPath; } - set { this.brokerPath = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/RemoveInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/RemoveInfo.cs deleted file mode 100644 index f273defdd5..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/RemoveInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for RemoveInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class RemoveInfo : BaseCommand - { - public const byte ID_RemoveInfo = 12; - - DataStructure objectId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_RemoveInfo; - } - - - // Properties - - public DataStructure ObjectId - { - get { return objectId; } - set { this.objectId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/RemoveSubscriptionInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/RemoveSubscriptionInfo.cs deleted file mode 100644 index 9f69d9c68b..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/RemoveSubscriptionInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for RemoveSubscriptionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class RemoveSubscriptionInfo : BaseCommand - { - public const byte ID_RemoveSubscriptionInfo = 0; - - ConnectionId connectionId; - string subcriptionName; - string clientId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_RemoveSubscriptionInfo; - } - - - // Properties - - public ConnectionId ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - public string SubcriptionName - { - get { return subcriptionName; } - set { this.subcriptionName = value; } - } - - public string ClientId - { - get { return clientId; } - set { this.clientId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/Response.cs b/openwire-dotnet/src/OpenWire.Core/Commands/Response.cs deleted file mode 100644 index d04f691cd2..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/Response.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for Response -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class Response : BaseCommand - { - public const byte ID_Response = 30; - - short correlationId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_Response; - } - - - // Properties - - public short CorrelationId - { - get { return correlationId; } - set { this.correlationId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/SessionId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/SessionId.cs deleted file mode 100644 index 442e56293a..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/SessionId.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// Marshalling code for Open Wire Format for SessionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class SessionId : AbstractCommand - { - public const byte ID_SessionId = 121; - - string connectionId; - long value; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_SessionId; - } - - - // Properties - - public string ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - public long Value - { - get { return value; } - set { this.value = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/SessionInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/SessionInfo.cs deleted file mode 100644 index 2c8bd801e4..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/SessionInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for SessionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class SessionInfo : BaseCommand - { - public const byte ID_SessionInfo = 4; - - SessionId sessionId; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_SessionInfo; - } - - - // Properties - - public SessionId SessionId - { - get { return sessionId; } - set { this.sessionId = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/ShutdownInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/ShutdownInfo.cs deleted file mode 100644 index 1732797487..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/ShutdownInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for ShutdownInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class ShutdownInfo : BaseCommand - { - public const byte ID_ShutdownInfo = 11; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_ShutdownInfo; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/SubscriptionInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/SubscriptionInfo.cs deleted file mode 100644 index beb7ec7632..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/SubscriptionInfo.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Marshalling code for Open Wire Format for SubscriptionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class SubscriptionInfo : AbstractCommand - { - public const byte ID_SubscriptionInfo = 55; - - string clientId; - ActiveMQDestination destination; - string selector; - string subcriptionName; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_SubscriptionInfo; - } - - - // Properties - - public string ClientId - { - get { return clientId; } - set { this.clientId = value; } - } - - public ActiveMQDestination Destination - { - get { return destination; } - set { this.destination = value; } - } - - public string Selector - { - get { return selector; } - set { this.selector = value; } - } - - public string SubcriptionName - { - get { return subcriptionName; } - set { this.subcriptionName = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/TransactionId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/TransactionId.cs deleted file mode 100644 index e6ee780835..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/TransactionId.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// Marshalling code for Open Wire Format for TransactionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class TransactionId : AbstractCommand - { - public const byte ID_TransactionId = 0; - - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_TransactionId; - } - - - // Properties - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/TransactionInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/TransactionInfo.cs deleted file mode 100644 index ca6cc7179f..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/TransactionInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for TransactionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class TransactionInfo : BaseCommand - { - public const byte ID_TransactionInfo = 7; - - ConnectionId connectionId; - TransactionId transactionId; - byte type; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_TransactionInfo; - } - - - // Properties - - public ConnectionId ConnectionId - { - get { return connectionId; } - set { this.connectionId = value; } - } - - public TransactionId TransactionId - { - get { return transactionId; } - set { this.transactionId = value; } - } - - public byte Type - { - get { return type; } - set { this.type = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/WireFormatInfo.cs b/openwire-dotnet/src/OpenWire.Core/Commands/WireFormatInfo.cs deleted file mode 100644 index e17d54d2d4..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/WireFormatInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for WireFormatInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class WireFormatInfo : AbstractCommand - { - public const byte ID_WireFormatInfo = 1; - - byte[] magic; - int version; - int options; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_WireFormatInfo; - } - - - // Properties - - public byte[] Magic - { - get { return magic; } - set { this.magic = value; } - } - - public int Version - { - get { return version; } - set { this.version = value; } - } - - public int Options - { - get { return options; } - set { this.options = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Commands/XATransactionId.cs b/openwire-dotnet/src/OpenWire.Core/Commands/XATransactionId.cs deleted file mode 100644 index 60469c3761..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Commands/XATransactionId.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Marshalling code for Open Wire Format for XATransactionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; - -using OpenWire.Core; - -namespace OpenWire.Core.Commands -{ - public class XATransactionId : TransactionId - { - public const byte ID_XATransactionId = 112; - - int formatId; - byte[] globalTransactionId; - byte[] branchQualifier; - - - - // TODO generate Equals method - // TODO generate GetHashCode method - // TODO generate ToString method - - - public override byte GetCommandType() { - return ID_XATransactionId; - } - - - // Properties - - public int FormatId - { - get { return formatId; } - set { this.formatId = value; } - } - - public byte[] GlobalTransactionId - { - get { return globalTransactionId; } - set { this.globalTransactionId = value; } - } - - public byte[] BranchQualifier - { - get { return branchQualifier; } - set { this.branchQualifier = value; } - } - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/DataStructure.cs b/openwire-dotnet/src/OpenWire.Core/DataStructure.cs deleted file mode 100755 index 91e5065348..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/DataStructure.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace OpenWire.Core { - /// - /// An OpenWire command - /// - public interface DataStructure { - - byte GetCommandType(); - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Destination.cs b/openwire-dotnet/src/OpenWire.Core/Destination.cs deleted file mode 100755 index 594fb8a1e0..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Destination.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for Destination. - /// - public interface Destination { - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/DestinationFilter.cs b/openwire-dotnet/src/OpenWire.Core/DestinationFilter.cs deleted file mode 100755 index 29d374ba52..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/DestinationFilter.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for DestinationFilter. - /// - public abstract class DestinationFilter { - public const String ANY_DESCENDENT = ">"; - public const String ANY_CHILD = "*"; - - public bool matches(ActiveMQMessage message) { - return matches(message.Destination); - } - - public abstract bool matches(ActiveMQDestination destination); - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQBytesMessageMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQBytesMessageMarshaller.cs deleted file mode 100644 index 3d4718ff97..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQBytesMessageMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQBytesMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQBytesMessageMarshaller : ActiveMQMessageMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQBytesMessage(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQDestinationMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQDestinationMarshaller.cs deleted file mode 100644 index dbc1f8eebe..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQDestinationMarshaller.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQDestination -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public abstract class ActiveMQDestinationMarshaller : AbstractCommandMarshaller - { - - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ActiveMQDestination info = (ActiveMQDestination) command; - info.PhysicalName = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ActiveMQDestination info = (ActiveMQDestination) command; - dataOut.Write(info.PhysicalName); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQMapMessageMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQMapMessageMarshaller.cs deleted file mode 100644 index f718e01e1a..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQMapMessageMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQMapMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQMapMessageMarshaller : ActiveMQMessageMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQMapMessage(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQMessageMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQMessageMarshaller.cs deleted file mode 100644 index 32cc3aad88..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQMessageMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQMessageMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQMessage(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQObjectMessageMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQObjectMessageMarshaller.cs deleted file mode 100644 index 5ca4973c82..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQObjectMessageMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQObjectMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQObjectMessageMarshaller : ActiveMQMessageMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQObjectMessage(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQQueueMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQQueueMarshaller.cs deleted file mode 100644 index 800f9b4676..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQQueueMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQQueue -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQQueueMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQQueue(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQStreamMessageMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQStreamMessageMarshaller.cs deleted file mode 100644 index ad8f3f92f7..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQStreamMessageMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQStreamMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQStreamMessageMarshaller : ActiveMQMessageMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQStreamMessage(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempDestinationMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempDestinationMarshaller.cs deleted file mode 100644 index 3a11a1ba2d..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempDestinationMarshaller.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQTempDestination -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public abstract class ActiveMQTempDestinationMarshaller : AbstractCommandMarshaller - { - - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempQueueMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempQueueMarshaller.cs deleted file mode 100644 index 1f5fdcfbc1..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempQueueMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQTempQueue -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQTempQueueMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQTempQueue(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempTopicMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempTopicMarshaller.cs deleted file mode 100644 index 089c9f3850..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTempTopicMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQTempTopic -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQTempTopicMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQTempTopic(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTextMessageMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTextMessageMarshaller.cs deleted file mode 100644 index 3e23f7ed96..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTextMessageMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQTextMessage -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQTextMessageMarshaller : ActiveMQMessageMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQTextMessage(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTopicMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTopicMarshaller.cs deleted file mode 100644 index 2da33601b7..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ActiveMQTopicMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ActiveMQTopic -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ActiveMQTopicMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ActiveMQTopic(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/BaseCommandMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/BaseCommandMarshaller.cs deleted file mode 100644 index 9b534f9ac6..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/BaseCommandMarshaller.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -// Marshalling code for Open Wire Format for BaseCommand -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public abstract class BaseCommandMarshaller : AbstractCommandMarshaller - { - - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - BaseCommand info = (BaseCommand) command; - info.CommandId = dataIn.ReadInt16(); - info.ResponseRequired = dataIn.ReadBoolean(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - BaseCommand info = (BaseCommand) command; - dataOut.Write(info.CommandId); - dataOut.Write(info.ResponseRequired); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/BrokerIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/BrokerIdMarshaller.cs deleted file mode 100644 index f508c71379..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/BrokerIdMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for BrokerId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class BrokerIdMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new BrokerId(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - BrokerId info = (BrokerId) command; - info.Value = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - BrokerId info = (BrokerId) command; - dataOut.Write(info.Value); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/BrokerInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/BrokerInfoMarshaller.cs deleted file mode 100644 index 920721b9c4..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/BrokerInfoMarshaller.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// Marshalling code for Open Wire Format for BrokerInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class BrokerInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new BrokerInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - BrokerInfo info = (BrokerInfo) command; - info.BrokerId = (BrokerId) CommandMarshallerRegistry.BrokerIdMarshaller.ReadCommand(dataIn); - info.BrokerURL = dataIn.ReadString(); - info.PeerBrokerInfos = ReadBrokerInfos(dataIn); - info.BrokerName = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - BrokerInfo info = (BrokerInfo) command; - CommandMarshallerRegistry.BrokerIdMarshaller.WriteCommand(info.BrokerId, dataOut); - dataOut.Write(info.BrokerURL); - WriteBrokerInfos(info.PeerBrokerInfos, dataOut); - dataOut.Write(info.BrokerName); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/CommandMarshallerRegistry.cs b/openwire-dotnet/src/OpenWire.Core/IO/CommandMarshallerRegistry.cs deleted file mode 100644 index f3fe05b7ff..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/CommandMarshallerRegistry.cs +++ /dev/null @@ -1,1017 +0,0 @@ -// -// Marshalling code for Open Wire Format for ExceptionResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class CommandMarshallerRegistry - { - public static Command ReadCommand(BinaryReader dataIn) - { - byte commandID = dataIn.ReadByte(); - switch (commandID) - { - - case MessageId.ID_MessageId: - return messageIdMarshaller.ReadCommand(dataIn); - - - case BrokerInfo.ID_BrokerInfo: - return brokerInfoMarshaller.ReadCommand(dataIn); - - - case ActiveMQTempQueue.ID_ActiveMQTempQueue: - return activeMQTempQueueMarshaller.ReadCommand(dataIn); - - - case LocalTransactionId.ID_LocalTransactionId: - return localTransactionIdMarshaller.ReadCommand(dataIn); - - - case RemoveSubscriptionInfo.ID_RemoveSubscriptionInfo: - return removeSubscriptionInfoMarshaller.ReadCommand(dataIn); - - - case IntegerResponse.ID_IntegerResponse: - return integerResponseMarshaller.ReadCommand(dataIn); - - - case ActiveMQQueue.ID_ActiveMQQueue: - return activeMQQueueMarshaller.ReadCommand(dataIn); - - - case DestinationInfo.ID_DestinationInfo: - return destinationInfoMarshaller.ReadCommand(dataIn); - - - case ActiveMQBytesMessage.ID_ActiveMQBytesMessage: - return activeMQBytesMessageMarshaller.ReadCommand(dataIn); - - - case ShutdownInfo.ID_ShutdownInfo: - return shutdownInfoMarshaller.ReadCommand(dataIn); - - - case DataResponse.ID_DataResponse: - return dataResponseMarshaller.ReadCommand(dataIn); - - - case SessionId.ID_SessionId: - return sessionIdMarshaller.ReadCommand(dataIn); - - - case DataArrayResponse.ID_DataArrayResponse: - return dataArrayResponseMarshaller.ReadCommand(dataIn); - - - case JournalQueueAck.ID_JournalQueueAck: - return journalQueueAckMarshaller.ReadCommand(dataIn); - - - case WireFormatInfo.ID_WireFormatInfo: - return wireFormatInfoMarshaller.ReadCommand(dataIn); - - - case Response.ID_Response: - return responseMarshaller.ReadCommand(dataIn); - - - case ConnectionError.ID_ConnectionError: - return connectionErrorMarshaller.ReadCommand(dataIn); - - - case ActiveMQObjectMessage.ID_ActiveMQObjectMessage: - return activeMQObjectMessageMarshaller.ReadCommand(dataIn); - - - case ConsumerInfo.ID_ConsumerInfo: - return consumerInfoMarshaller.ReadCommand(dataIn); - - - case ConnectionId.ID_ConnectionId: - return connectionIdMarshaller.ReadCommand(dataIn); - - - case ActiveMQTempTopic.ID_ActiveMQTempTopic: - return activeMQTempTopicMarshaller.ReadCommand(dataIn); - - - case DiscoveryEvent.ID_DiscoveryEvent: - return discoveryEventMarshaller.ReadCommand(dataIn); - - - case ConnectionInfo.ID_ConnectionInfo: - return connectionInfoMarshaller.ReadCommand(dataIn); - - - case KeepAliveInfo.ID_KeepAliveInfo: - return keepAliveInfoMarshaller.ReadCommand(dataIn); - - - case XATransactionId.ID_XATransactionId: - return xATransactionIdMarshaller.ReadCommand(dataIn); - - - case JournalTrace.ID_JournalTrace: - return journalTraceMarshaller.ReadCommand(dataIn); - - - case FlushCommand.ID_FlushCommand: - return flushCommandMarshaller.ReadCommand(dataIn); - - - case ConsumerId.ID_ConsumerId: - return consumerIdMarshaller.ReadCommand(dataIn); - - - case JournalTopicAck.ID_JournalTopicAck: - return journalTopicAckMarshaller.ReadCommand(dataIn); - - - case ActiveMQTextMessage.ID_ActiveMQTextMessage: - return activeMQTextMessageMarshaller.ReadCommand(dataIn); - - - case BrokerId.ID_BrokerId: - return brokerIdMarshaller.ReadCommand(dataIn); - - - case MessageDispatch.ID_MessageDispatch: - return messageDispatchMarshaller.ReadCommand(dataIn); - - - case ProducerInfo.ID_ProducerInfo: - return producerInfoMarshaller.ReadCommand(dataIn); - - - case SubscriptionInfo.ID_SubscriptionInfo: - return subscriptionInfoMarshaller.ReadCommand(dataIn); - - - case ActiveMQMapMessage.ID_ActiveMQMapMessage: - return activeMQMapMessageMarshaller.ReadCommand(dataIn); - - - case SessionInfo.ID_SessionInfo: - return sessionInfoMarshaller.ReadCommand(dataIn); - - - case ActiveMQMessage.ID_ActiveMQMessage: - return activeMQMessageMarshaller.ReadCommand(dataIn); - - - case TransactionInfo.ID_TransactionInfo: - return transactionInfoMarshaller.ReadCommand(dataIn); - - - case ActiveMQStreamMessage.ID_ActiveMQStreamMessage: - return activeMQStreamMessageMarshaller.ReadCommand(dataIn); - - - case MessageAck.ID_MessageAck: - return messageAckMarshaller.ReadCommand(dataIn); - - - case ProducerId.ID_ProducerId: - return producerIdMarshaller.ReadCommand(dataIn); - - - case ActiveMQTopic.ID_ActiveMQTopic: - return activeMQTopicMarshaller.ReadCommand(dataIn); - - - case JournalTransaction.ID_JournalTransaction: - return journalTransactionMarshaller.ReadCommand(dataIn); - - - case RemoveInfo.ID_RemoveInfo: - return removeInfoMarshaller.ReadCommand(dataIn); - - - case ControlCommand.ID_ControlCommand: - return controlCommandMarshaller.ReadCommand(dataIn); - - - case ExceptionResponse.ID_ExceptionResponse: - return exceptionResponseMarshaller.ReadCommand(dataIn); - - - default: - throw new Exception("Unknown command type: " + commandID); - } - } - - - public static void WriteCommand(Command command, BinaryWriter dataOut) - { - byte commandID = command.GetCommandType(); - dataOut.Write(commandID); - switch (commandID) - { - - case MessageId.ID_MessageId: - messageIdMarshaller.WriteCommand(command, dataOut); - break; - - - case BrokerInfo.ID_BrokerInfo: - brokerInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQTempQueue.ID_ActiveMQTempQueue: - activeMQTempQueueMarshaller.WriteCommand(command, dataOut); - break; - - - case LocalTransactionId.ID_LocalTransactionId: - localTransactionIdMarshaller.WriteCommand(command, dataOut); - break; - - - case RemoveSubscriptionInfo.ID_RemoveSubscriptionInfo: - removeSubscriptionInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case IntegerResponse.ID_IntegerResponse: - integerResponseMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQQueue.ID_ActiveMQQueue: - activeMQQueueMarshaller.WriteCommand(command, dataOut); - break; - - - case DestinationInfo.ID_DestinationInfo: - destinationInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQBytesMessage.ID_ActiveMQBytesMessage: - activeMQBytesMessageMarshaller.WriteCommand(command, dataOut); - break; - - - case ShutdownInfo.ID_ShutdownInfo: - shutdownInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case DataResponse.ID_DataResponse: - dataResponseMarshaller.WriteCommand(command, dataOut); - break; - - - case SessionId.ID_SessionId: - sessionIdMarshaller.WriteCommand(command, dataOut); - break; - - - case DataArrayResponse.ID_DataArrayResponse: - dataArrayResponseMarshaller.WriteCommand(command, dataOut); - break; - - - case JournalQueueAck.ID_JournalQueueAck: - journalQueueAckMarshaller.WriteCommand(command, dataOut); - break; - - - case WireFormatInfo.ID_WireFormatInfo: - wireFormatInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case Response.ID_Response: - responseMarshaller.WriteCommand(command, dataOut); - break; - - - case ConnectionError.ID_ConnectionError: - connectionErrorMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQObjectMessage.ID_ActiveMQObjectMessage: - activeMQObjectMessageMarshaller.WriteCommand(command, dataOut); - break; - - - case ConsumerInfo.ID_ConsumerInfo: - consumerInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case ConnectionId.ID_ConnectionId: - connectionIdMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQTempTopic.ID_ActiveMQTempTopic: - activeMQTempTopicMarshaller.WriteCommand(command, dataOut); - break; - - - case DiscoveryEvent.ID_DiscoveryEvent: - discoveryEventMarshaller.WriteCommand(command, dataOut); - break; - - - case ConnectionInfo.ID_ConnectionInfo: - connectionInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case KeepAliveInfo.ID_KeepAliveInfo: - keepAliveInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case XATransactionId.ID_XATransactionId: - xATransactionIdMarshaller.WriteCommand(command, dataOut); - break; - - - case JournalTrace.ID_JournalTrace: - journalTraceMarshaller.WriteCommand(command, dataOut); - break; - - - case FlushCommand.ID_FlushCommand: - flushCommandMarshaller.WriteCommand(command, dataOut); - break; - - - case ConsumerId.ID_ConsumerId: - consumerIdMarshaller.WriteCommand(command, dataOut); - break; - - - case JournalTopicAck.ID_JournalTopicAck: - journalTopicAckMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQTextMessage.ID_ActiveMQTextMessage: - activeMQTextMessageMarshaller.WriteCommand(command, dataOut); - break; - - - case BrokerId.ID_BrokerId: - brokerIdMarshaller.WriteCommand(command, dataOut); - break; - - - case MessageDispatch.ID_MessageDispatch: - messageDispatchMarshaller.WriteCommand(command, dataOut); - break; - - - case ProducerInfo.ID_ProducerInfo: - producerInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case SubscriptionInfo.ID_SubscriptionInfo: - subscriptionInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQMapMessage.ID_ActiveMQMapMessage: - activeMQMapMessageMarshaller.WriteCommand(command, dataOut); - break; - - - case SessionInfo.ID_SessionInfo: - sessionInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQMessage.ID_ActiveMQMessage: - activeMQMessageMarshaller.WriteCommand(command, dataOut); - break; - - - case TransactionInfo.ID_TransactionInfo: - transactionInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQStreamMessage.ID_ActiveMQStreamMessage: - activeMQStreamMessageMarshaller.WriteCommand(command, dataOut); - break; - - - case MessageAck.ID_MessageAck: - messageAckMarshaller.WriteCommand(command, dataOut); - break; - - - case ProducerId.ID_ProducerId: - producerIdMarshaller.WriteCommand(command, dataOut); - break; - - - case ActiveMQTopic.ID_ActiveMQTopic: - activeMQTopicMarshaller.WriteCommand(command, dataOut); - break; - - - case JournalTransaction.ID_JournalTransaction: - journalTransactionMarshaller.WriteCommand(command, dataOut); - break; - - - case RemoveInfo.ID_RemoveInfo: - removeInfoMarshaller.WriteCommand(command, dataOut); - break; - - - case ControlCommand.ID_ControlCommand: - controlCommandMarshaller.WriteCommand(command, dataOut); - break; - - - case ExceptionResponse.ID_ExceptionResponse: - exceptionResponseMarshaller.WriteCommand(command, dataOut); - break; - - - default: - throw new Exception("Unknown command type: " + commandID); - } - } - - - // Properties - - - private static MessageIdMarshaller messageIdMarshaller = new MessageIdMarshaller(); - - public static MessageIdMarshaller MessageIdMarshaller - { - get - { - return messageIdMarshaller; - } - } - - - - private static BrokerInfoMarshaller brokerInfoMarshaller = new BrokerInfoMarshaller(); - - public static BrokerInfoMarshaller BrokerInfoMarshaller - { - get - { - return brokerInfoMarshaller; - } - } - - - - private static ActiveMQTempQueueMarshaller activeMQTempQueueMarshaller = new ActiveMQTempQueueMarshaller(); - - public static ActiveMQTempQueueMarshaller ActiveMQTempQueueMarshaller - { - get - { - return activeMQTempQueueMarshaller; - } - } - - - - private static LocalTransactionIdMarshaller localTransactionIdMarshaller = new LocalTransactionIdMarshaller(); - - public static LocalTransactionIdMarshaller LocalTransactionIdMarshaller - { - get - { - return localTransactionIdMarshaller; - } - } - - - - private static RemoveSubscriptionInfoMarshaller removeSubscriptionInfoMarshaller = new RemoveSubscriptionInfoMarshaller(); - - public static RemoveSubscriptionInfoMarshaller RemoveSubscriptionInfoMarshaller - { - get - { - return removeSubscriptionInfoMarshaller; - } - } - - - - private static IntegerResponseMarshaller integerResponseMarshaller = new IntegerResponseMarshaller(); - - public static IntegerResponseMarshaller IntegerResponseMarshaller - { - get - { - return integerResponseMarshaller; - } - } - - - - private static ActiveMQQueueMarshaller activeMQQueueMarshaller = new ActiveMQQueueMarshaller(); - - public static ActiveMQQueueMarshaller ActiveMQQueueMarshaller - { - get - { - return activeMQQueueMarshaller; - } - } - - - - private static DestinationInfoMarshaller destinationInfoMarshaller = new DestinationInfoMarshaller(); - - public static DestinationInfoMarshaller DestinationInfoMarshaller - { - get - { - return destinationInfoMarshaller; - } - } - - - - private static ActiveMQBytesMessageMarshaller activeMQBytesMessageMarshaller = new ActiveMQBytesMessageMarshaller(); - - public static ActiveMQBytesMessageMarshaller ActiveMQBytesMessageMarshaller - { - get - { - return activeMQBytesMessageMarshaller; - } - } - - - - private static ShutdownInfoMarshaller shutdownInfoMarshaller = new ShutdownInfoMarshaller(); - - public static ShutdownInfoMarshaller ShutdownInfoMarshaller - { - get - { - return shutdownInfoMarshaller; - } - } - - - - private static DataResponseMarshaller dataResponseMarshaller = new DataResponseMarshaller(); - - public static DataResponseMarshaller DataResponseMarshaller - { - get - { - return dataResponseMarshaller; - } - } - - - - private static SessionIdMarshaller sessionIdMarshaller = new SessionIdMarshaller(); - - public static SessionIdMarshaller SessionIdMarshaller - { - get - { - return sessionIdMarshaller; - } - } - - - - private static DataArrayResponseMarshaller dataArrayResponseMarshaller = new DataArrayResponseMarshaller(); - - public static DataArrayResponseMarshaller DataArrayResponseMarshaller - { - get - { - return dataArrayResponseMarshaller; - } - } - - - - private static JournalQueueAckMarshaller journalQueueAckMarshaller = new JournalQueueAckMarshaller(); - - public static JournalQueueAckMarshaller JournalQueueAckMarshaller - { - get - { - return journalQueueAckMarshaller; - } - } - - - - private static WireFormatInfoMarshaller wireFormatInfoMarshaller = new WireFormatInfoMarshaller(); - - public static WireFormatInfoMarshaller WireFormatInfoMarshaller - { - get - { - return wireFormatInfoMarshaller; - } - } - - - - private static ResponseMarshaller responseMarshaller = new ResponseMarshaller(); - - public static ResponseMarshaller ResponseMarshaller - { - get - { - return responseMarshaller; - } - } - - - - private static ConnectionErrorMarshaller connectionErrorMarshaller = new ConnectionErrorMarshaller(); - - public static ConnectionErrorMarshaller ConnectionErrorMarshaller - { - get - { - return connectionErrorMarshaller; - } - } - - - - private static ActiveMQObjectMessageMarshaller activeMQObjectMessageMarshaller = new ActiveMQObjectMessageMarshaller(); - - public static ActiveMQObjectMessageMarshaller ActiveMQObjectMessageMarshaller - { - get - { - return activeMQObjectMessageMarshaller; - } - } - - - - private static ConsumerInfoMarshaller consumerInfoMarshaller = new ConsumerInfoMarshaller(); - - public static ConsumerInfoMarshaller ConsumerInfoMarshaller - { - get - { - return consumerInfoMarshaller; - } - } - - - - private static ConnectionIdMarshaller connectionIdMarshaller = new ConnectionIdMarshaller(); - - public static ConnectionIdMarshaller ConnectionIdMarshaller - { - get - { - return connectionIdMarshaller; - } - } - - - - private static ActiveMQTempTopicMarshaller activeMQTempTopicMarshaller = new ActiveMQTempTopicMarshaller(); - - public static ActiveMQTempTopicMarshaller ActiveMQTempTopicMarshaller - { - get - { - return activeMQTempTopicMarshaller; - } - } - - - - private static DiscoveryEventMarshaller discoveryEventMarshaller = new DiscoveryEventMarshaller(); - - public static DiscoveryEventMarshaller DiscoveryEventMarshaller - { - get - { - return discoveryEventMarshaller; - } - } - - - - private static ConnectionInfoMarshaller connectionInfoMarshaller = new ConnectionInfoMarshaller(); - - public static ConnectionInfoMarshaller ConnectionInfoMarshaller - { - get - { - return connectionInfoMarshaller; - } - } - - - - private static KeepAliveInfoMarshaller keepAliveInfoMarshaller = new KeepAliveInfoMarshaller(); - - public static KeepAliveInfoMarshaller KeepAliveInfoMarshaller - { - get - { - return keepAliveInfoMarshaller; - } - } - - - - private static XATransactionIdMarshaller xATransactionIdMarshaller = new XATransactionIdMarshaller(); - - public static XATransactionIdMarshaller XATransactionIdMarshaller - { - get - { - return xATransactionIdMarshaller; - } - } - - - - private static JournalTraceMarshaller journalTraceMarshaller = new JournalTraceMarshaller(); - - public static JournalTraceMarshaller JournalTraceMarshaller - { - get - { - return journalTraceMarshaller; - } - } - - - - private static FlushCommandMarshaller flushCommandMarshaller = new FlushCommandMarshaller(); - - public static FlushCommandMarshaller FlushCommandMarshaller - { - get - { - return flushCommandMarshaller; - } - } - - - - private static ConsumerIdMarshaller consumerIdMarshaller = new ConsumerIdMarshaller(); - - public static ConsumerIdMarshaller ConsumerIdMarshaller - { - get - { - return consumerIdMarshaller; - } - } - - - - private static JournalTopicAckMarshaller journalTopicAckMarshaller = new JournalTopicAckMarshaller(); - - public static JournalTopicAckMarshaller JournalTopicAckMarshaller - { - get - { - return journalTopicAckMarshaller; - } - } - - - - private static ActiveMQTextMessageMarshaller activeMQTextMessageMarshaller = new ActiveMQTextMessageMarshaller(); - - public static ActiveMQTextMessageMarshaller ActiveMQTextMessageMarshaller - { - get - { - return activeMQTextMessageMarshaller; - } - } - - - - private static BrokerIdMarshaller brokerIdMarshaller = new BrokerIdMarshaller(); - - public static BrokerIdMarshaller BrokerIdMarshaller - { - get - { - return brokerIdMarshaller; - } - } - - - - private static MessageDispatchMarshaller messageDispatchMarshaller = new MessageDispatchMarshaller(); - - public static MessageDispatchMarshaller MessageDispatchMarshaller - { - get - { - return messageDispatchMarshaller; - } - } - - - - private static ProducerInfoMarshaller producerInfoMarshaller = new ProducerInfoMarshaller(); - - public static ProducerInfoMarshaller ProducerInfoMarshaller - { - get - { - return producerInfoMarshaller; - } - } - - - - private static SubscriptionInfoMarshaller subscriptionInfoMarshaller = new SubscriptionInfoMarshaller(); - - public static SubscriptionInfoMarshaller SubscriptionInfoMarshaller - { - get - { - return subscriptionInfoMarshaller; - } - } - - - - private static ActiveMQMapMessageMarshaller activeMQMapMessageMarshaller = new ActiveMQMapMessageMarshaller(); - - public static ActiveMQMapMessageMarshaller ActiveMQMapMessageMarshaller - { - get - { - return activeMQMapMessageMarshaller; - } - } - - - - private static SessionInfoMarshaller sessionInfoMarshaller = new SessionInfoMarshaller(); - - public static SessionInfoMarshaller SessionInfoMarshaller - { - get - { - return sessionInfoMarshaller; - } - } - - - - private static ActiveMQMessageMarshaller activeMQMessageMarshaller = new ActiveMQMessageMarshaller(); - - public static ActiveMQMessageMarshaller ActiveMQMessageMarshaller - { - get - { - return activeMQMessageMarshaller; - } - } - - - - private static TransactionInfoMarshaller transactionInfoMarshaller = new TransactionInfoMarshaller(); - - public static TransactionInfoMarshaller TransactionInfoMarshaller - { - get - { - return transactionInfoMarshaller; - } - } - - - - private static ActiveMQStreamMessageMarshaller activeMQStreamMessageMarshaller = new ActiveMQStreamMessageMarshaller(); - - public static ActiveMQStreamMessageMarshaller ActiveMQStreamMessageMarshaller - { - get - { - return activeMQStreamMessageMarshaller; - } - } - - - - private static MessageAckMarshaller messageAckMarshaller = new MessageAckMarshaller(); - - public static MessageAckMarshaller MessageAckMarshaller - { - get - { - return messageAckMarshaller; - } - } - - - - private static ProducerIdMarshaller producerIdMarshaller = new ProducerIdMarshaller(); - - public static ProducerIdMarshaller ProducerIdMarshaller - { - get - { - return producerIdMarshaller; - } - } - - - - private static ActiveMQTopicMarshaller activeMQTopicMarshaller = new ActiveMQTopicMarshaller(); - - public static ActiveMQTopicMarshaller ActiveMQTopicMarshaller - { - get - { - return activeMQTopicMarshaller; - } - } - - - - private static JournalTransactionMarshaller journalTransactionMarshaller = new JournalTransactionMarshaller(); - - public static JournalTransactionMarshaller JournalTransactionMarshaller - { - get - { - return journalTransactionMarshaller; - } - } - - - - private static RemoveInfoMarshaller removeInfoMarshaller = new RemoveInfoMarshaller(); - - public static RemoveInfoMarshaller RemoveInfoMarshaller - { - get - { - return removeInfoMarshaller; - } - } - - - - private static ControlCommandMarshaller controlCommandMarshaller = new ControlCommandMarshaller(); - - public static ControlCommandMarshaller ControlCommandMarshaller - { - get - { - return controlCommandMarshaller; - } - } - - - - private static ExceptionResponseMarshaller exceptionResponseMarshaller = new ExceptionResponseMarshaller(); - - public static ExceptionResponseMarshaller ExceptionResponseMarshaller - { - get - { - return exceptionResponseMarshaller; - } - } - - - - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ConnectionErrorMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ConnectionErrorMarshaller.cs deleted file mode 100644 index 776c39c67c..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ConnectionErrorMarshaller.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConnectionError -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ConnectionErrorMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ConnectionError(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ConnectionError info = (ConnectionError) command; - info.Exception = ReadBytes(dataIn); - info.ConnectionId = (ConnectionId) CommandMarshallerRegistry.ConnectionIdMarshaller.ReadCommand(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ConnectionError info = (ConnectionError) command; - WriteBytes(info.Exception, dataOut); - CommandMarshallerRegistry.ConnectionIdMarshaller.WriteCommand(info.ConnectionId, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ConnectionIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ConnectionIdMarshaller.cs deleted file mode 100644 index 36e984a268..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ConnectionIdMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConnectionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ConnectionIdMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ConnectionId(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ConnectionId info = (ConnectionId) command; - info.Value = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ConnectionId info = (ConnectionId) command; - dataOut.Write(info.Value); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ConnectionInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ConnectionInfoMarshaller.cs deleted file mode 100644 index 3f8e4d322c..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ConnectionInfoMarshaller.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConnectionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ConnectionInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ConnectionInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ConnectionInfo info = (ConnectionInfo) command; - info.ConnectionId = (ConnectionId) CommandMarshallerRegistry.ConnectionIdMarshaller.ReadCommand(dataIn); - info.ClientId = dataIn.ReadString(); - info.Password = dataIn.ReadString(); - info.UserName = dataIn.ReadString(); - info.BrokerPath = ReadBrokerIds(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ConnectionInfo info = (ConnectionInfo) command; - CommandMarshallerRegistry.ConnectionIdMarshaller.WriteCommand(info.ConnectionId, dataOut); - dataOut.Write(info.ClientId); - dataOut.Write(info.Password); - dataOut.Write(info.UserName); - WriteBrokerIds(info.BrokerPath, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ConsumerIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ConsumerIdMarshaller.cs deleted file mode 100644 index fe98aedb33..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ConsumerIdMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConsumerId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ConsumerIdMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ConsumerId(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ConsumerId info = (ConsumerId) command; - info.ConnectionId = dataIn.ReadString(); - info.SessionId = dataIn.ReadInt64(); - info.Value = dataIn.ReadInt64(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ConsumerId info = (ConsumerId) command; - dataOut.Write(info.ConnectionId); - dataOut.Write(info.SessionId); - dataOut.Write(info.Value); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ConsumerInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ConsumerInfoMarshaller.cs deleted file mode 100644 index 082c3834b8..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ConsumerInfoMarshaller.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Marshalling code for Open Wire Format for ConsumerInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ConsumerInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ConsumerInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ConsumerInfo info = (ConsumerInfo) command; - info.ConsumerId = (ConsumerId) CommandMarshallerRegistry.ConsumerIdMarshaller.ReadCommand(dataIn); - info.Browser = dataIn.ReadBoolean(); - info.Destination = ReadDestination(dataIn); - info.PrefetchSize = dataIn.ReadInt32(); - info.DispatchAsync = dataIn.ReadBoolean(); - info.Selector = dataIn.ReadString(); - info.SubcriptionName = dataIn.ReadString(); - info.NoLocal = dataIn.ReadBoolean(); - info.Exclusive = dataIn.ReadBoolean(); - info.Retroactive = dataIn.ReadBoolean(); - info.Priority = dataIn.ReadByte(); - info.BrokerPath = ReadBrokerIds(dataIn); - info.NetworkSubscription = dataIn.ReadBoolean(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ConsumerInfo info = (ConsumerInfo) command; - CommandMarshallerRegistry.ConsumerIdMarshaller.WriteCommand(info.ConsumerId, dataOut); - dataOut.Write(info.Browser); - WriteDestination(info.Destination, dataOut); - dataOut.Write(info.PrefetchSize); - dataOut.Write(info.DispatchAsync); - dataOut.Write(info.Selector); - dataOut.Write(info.SubcriptionName); - dataOut.Write(info.NoLocal); - dataOut.Write(info.Exclusive); - dataOut.Write(info.Retroactive); - dataOut.Write(info.Priority); - WriteBrokerIds(info.BrokerPath, dataOut); - dataOut.Write(info.NetworkSubscription); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ControlCommandMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ControlCommandMarshaller.cs deleted file mode 100644 index e71e2b1044..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ControlCommandMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for ControlCommand -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ControlCommandMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ControlCommand(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ControlCommand info = (ControlCommand) command; - info.Command = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ControlCommand info = (ControlCommand) command; - dataOut.Write(info.Command); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/DataArrayResponseMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/DataArrayResponseMarshaller.cs deleted file mode 100644 index e9ea1fdac5..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/DataArrayResponseMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for DataArrayResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class DataArrayResponseMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new DataArrayResponse(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - DataArrayResponse info = (DataArrayResponse) command; - info.Data = ReadDataStructures(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - DataArrayResponse info = (DataArrayResponse) command; - WriteDataStructures(info.Data, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/DataResponseMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/DataResponseMarshaller.cs deleted file mode 100644 index 920813b8cf..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/DataResponseMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for DataResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class DataResponseMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new DataResponse(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - DataResponse info = (DataResponse) command; - info.Data = CommandMarshallerRegistry.ReadCommand(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - DataResponse info = (DataResponse) command; - CommandMarshallerRegistry.WriteCommand((Command) info.Data, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/DestinationInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/DestinationInfoMarshaller.cs deleted file mode 100644 index 2ae0830a64..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/DestinationInfoMarshaller.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Marshalling code for Open Wire Format for DestinationInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class DestinationInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new DestinationInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - DestinationInfo info = (DestinationInfo) command; - info.ConnectionId = (ConnectionId) CommandMarshallerRegistry.ConnectionIdMarshaller.ReadCommand(dataIn); - info.Destination = ReadDestination(dataIn); - info.OperationType = dataIn.ReadByte(); - info.Timeout = dataIn.ReadInt64(); - info.BrokerPath = ReadBrokerIds(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - DestinationInfo info = (DestinationInfo) command; - CommandMarshallerRegistry.ConnectionIdMarshaller.WriteCommand(info.ConnectionId, dataOut); - WriteDestination(info.Destination, dataOut); - dataOut.Write(info.OperationType); - dataOut.Write(info.Timeout); - WriteBrokerIds(info.BrokerPath, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/DiscoveryEventMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/DiscoveryEventMarshaller.cs deleted file mode 100644 index 3238b92f02..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/DiscoveryEventMarshaller.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// Marshalling code for Open Wire Format for DiscoveryEvent -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class DiscoveryEventMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new DiscoveryEvent(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - DiscoveryEvent info = (DiscoveryEvent) command; - info.ServiceName = dataIn.ReadString(); - info.BrokerName = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - DiscoveryEvent info = (DiscoveryEvent) command; - dataOut.Write(info.ServiceName); - dataOut.Write(info.BrokerName); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ExceptionResponseMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ExceptionResponseMarshaller.cs deleted file mode 100644 index bc9a0cd462..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ExceptionResponseMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for ExceptionResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ExceptionResponseMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ExceptionResponse(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ExceptionResponse info = (ExceptionResponse) command; - info.Exception = ReadBytes(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ExceptionResponse info = (ExceptionResponse) command; - WriteBytes(info.Exception, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/FlushCommandMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/FlushCommandMarshaller.cs deleted file mode 100644 index ab7a2339b1..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/FlushCommandMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for FlushCommand -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class FlushCommandMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new FlushCommand(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/IntegerResponseMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/IntegerResponseMarshaller.cs deleted file mode 100644 index 0dbfe7b16a..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/IntegerResponseMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for IntegerResponse -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class IntegerResponseMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new IntegerResponse(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - IntegerResponse info = (IntegerResponse) command; - info.Result = dataIn.ReadInt32(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - IntegerResponse info = (IntegerResponse) command; - dataOut.Write(info.Result); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/JournalQueueAckMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/JournalQueueAckMarshaller.cs deleted file mode 100644 index 1fa1d41f28..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/JournalQueueAckMarshaller.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// Marshalling code for Open Wire Format for JournalQueueAck -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class JournalQueueAckMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new JournalQueueAck(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - JournalQueueAck info = (JournalQueueAck) command; - info.Destination = ReadDestination(dataIn); - info.MessageAck = (MessageAck) CommandMarshallerRegistry.MessageAckMarshaller.ReadCommand(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - JournalQueueAck info = (JournalQueueAck) command; - WriteDestination(info.Destination, dataOut); - CommandMarshallerRegistry.MessageAckMarshaller.WriteCommand(info.MessageAck, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/JournalTopicAckMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/JournalTopicAckMarshaller.cs deleted file mode 100644 index a8b5f53432..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/JournalTopicAckMarshaller.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Marshalling code for Open Wire Format for JournalTopicAck -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class JournalTopicAckMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new JournalTopicAck(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - JournalTopicAck info = (JournalTopicAck) command; - info.Destination = ReadDestination(dataIn); - info.MessageId = (MessageId) CommandMarshallerRegistry.MessageIdMarshaller.ReadCommand(dataIn); - info.MessageSequenceId = dataIn.ReadInt64(); - info.SubscritionName = dataIn.ReadString(); - info.ClientId = dataIn.ReadString(); - info.TransactionId = (TransactionId) CommandMarshallerRegistry.ReadCommand(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - JournalTopicAck info = (JournalTopicAck) command; - WriteDestination(info.Destination, dataOut); - CommandMarshallerRegistry.MessageIdMarshaller.WriteCommand(info.MessageId, dataOut); - dataOut.Write(info.MessageSequenceId); - dataOut.Write(info.SubscritionName); - dataOut.Write(info.ClientId); - CommandMarshallerRegistry.WriteCommand(info.TransactionId, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/JournalTraceMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/JournalTraceMarshaller.cs deleted file mode 100644 index 7dccd23d11..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/JournalTraceMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for JournalTrace -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class JournalTraceMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new JournalTrace(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - JournalTrace info = (JournalTrace) command; - info.Message = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - JournalTrace info = (JournalTrace) command; - dataOut.Write(info.Message); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/JournalTransactionMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/JournalTransactionMarshaller.cs deleted file mode 100644 index 964d29356a..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/JournalTransactionMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for JournalTransaction -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class JournalTransactionMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new JournalTransaction(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - JournalTransaction info = (JournalTransaction) command; - info.TransactionId = (TransactionId) CommandMarshallerRegistry.ReadCommand(dataIn); - info.Type = dataIn.ReadByte(); - info.WasPrepared = dataIn.ReadBoolean(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - JournalTransaction info = (JournalTransaction) command; - CommandMarshallerRegistry.WriteCommand(info.TransactionId, dataOut); - dataOut.Write(info.Type); - dataOut.Write(info.WasPrepared); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/KeepAliveInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/KeepAliveInfoMarshaller.cs deleted file mode 100644 index 24f120c204..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/KeepAliveInfoMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for KeepAliveInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class KeepAliveInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new KeepAliveInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/LocalTransactionIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/LocalTransactionIdMarshaller.cs deleted file mode 100644 index 693731ef7c..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/LocalTransactionIdMarshaller.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// Marshalling code for Open Wire Format for LocalTransactionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class LocalTransactionIdMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new LocalTransactionId(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - LocalTransactionId info = (LocalTransactionId) command; - info.Value = dataIn.ReadInt64(); - info.ConnectionId = (ConnectionId) CommandMarshallerRegistry.ConnectionIdMarshaller.ReadCommand(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - LocalTransactionId info = (LocalTransactionId) command; - dataOut.Write(info.Value); - CommandMarshallerRegistry.ConnectionIdMarshaller.WriteCommand(info.ConnectionId, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/MessageAckMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/MessageAckMarshaller.cs deleted file mode 100644 index 4895cc77ac..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/MessageAckMarshaller.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// Marshalling code for Open Wire Format for MessageAck -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class MessageAckMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new MessageAck(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - MessageAck info = (MessageAck) command; - info.Destination = ReadDestination(dataIn); - info.TransactionId = (TransactionId) CommandMarshallerRegistry.ReadCommand(dataIn); - info.ConsumerId = (ConsumerId) CommandMarshallerRegistry.ConsumerIdMarshaller.ReadCommand(dataIn); - info.AckType = dataIn.ReadByte(); - info.FirstMessageId = (MessageId) CommandMarshallerRegistry.MessageIdMarshaller.ReadCommand(dataIn); - info.LastMessageId = (MessageId) CommandMarshallerRegistry.MessageIdMarshaller.ReadCommand(dataIn); - info.MessageCount = dataIn.ReadInt32(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - MessageAck info = (MessageAck) command; - WriteDestination(info.Destination, dataOut); - CommandMarshallerRegistry.WriteCommand(info.TransactionId, dataOut); - CommandMarshallerRegistry.ConsumerIdMarshaller.WriteCommand(info.ConsumerId, dataOut); - dataOut.Write(info.AckType); - CommandMarshallerRegistry.MessageIdMarshaller.WriteCommand(info.FirstMessageId, dataOut); - CommandMarshallerRegistry.MessageIdMarshaller.WriteCommand(info.LastMessageId, dataOut); - dataOut.Write(info.MessageCount); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/MessageDispatchMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/MessageDispatchMarshaller.cs deleted file mode 100644 index 825b018f8d..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/MessageDispatchMarshaller.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// Marshalling code for Open Wire Format for MessageDispatch -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class MessageDispatchMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new MessageDispatch(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - MessageDispatch info = (MessageDispatch) command; - info.ConsumerId = (ConsumerId) CommandMarshallerRegistry.ConsumerIdMarshaller.ReadCommand(dataIn); - info.Destination = ReadDestination(dataIn); - info.Message = (Message) CommandMarshallerRegistry.ReadCommand(dataIn); - info.RedeliveryCounter = dataIn.ReadInt32(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - MessageDispatch info = (MessageDispatch) command; - CommandMarshallerRegistry.ConsumerIdMarshaller.WriteCommand(info.ConsumerId, dataOut); - WriteDestination(info.Destination, dataOut); - CommandMarshallerRegistry.WriteCommand(info.Message, dataOut); - dataOut.Write(info.RedeliveryCounter); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/MessageIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/MessageIdMarshaller.cs deleted file mode 100644 index 3ecdd4b572..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/MessageIdMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for MessageId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class MessageIdMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new MessageId(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - MessageId info = (MessageId) command; - info.ProducerId = (ProducerId) CommandMarshallerRegistry.ProducerIdMarshaller.ReadCommand(dataIn); - info.ProducerSequenceId = dataIn.ReadInt64(); - info.BrokerSequenceId = dataIn.ReadInt64(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - MessageId info = (MessageId) command; - CommandMarshallerRegistry.ProducerIdMarshaller.WriteCommand(info.ProducerId, dataOut); - dataOut.Write(info.ProducerSequenceId); - dataOut.Write(info.BrokerSequenceId); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/MessageMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/MessageMarshaller.cs deleted file mode 100644 index 57536350c5..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/MessageMarshaller.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Marshalling code for Open Wire Format for Message -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public abstract class MessageMarshaller : AbstractCommandMarshaller - { - - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - Message info = (Message) command; - info.ProducerId = (ProducerId) CommandMarshallerRegistry.ProducerIdMarshaller.ReadCommand(dataIn); - info.Destination = ReadDestination(dataIn); - info.TransactionId = (TransactionId) CommandMarshallerRegistry.ReadCommand(dataIn); - info.OriginalDestination = ReadDestination(dataIn); - info.MessageId = (MessageId) CommandMarshallerRegistry.MessageIdMarshaller.ReadCommand(dataIn); - info.OriginalTransactionId = (TransactionId) CommandMarshallerRegistry.ReadCommand(dataIn); - info.GroupID = dataIn.ReadString(); - info.GroupSequence = dataIn.ReadInt32(); - info.CorrelationId = dataIn.ReadString(); - info.Persistent = dataIn.ReadBoolean(); - info.Expiration = dataIn.ReadInt64(); - info.Priority = dataIn.ReadByte(); - info.ReplyTo = ReadDestination(dataIn); - info.Timestamp = dataIn.ReadInt64(); - info.Type = dataIn.ReadString(); - info.Content = ReadBytes(dataIn); - info.MarshalledProperties = ReadBytes(dataIn); - info.DataStructure = CommandMarshallerRegistry.ReadCommand(dataIn); - info.TargetConsumerId = (ConsumerId) CommandMarshallerRegistry.ConsumerIdMarshaller.ReadCommand(dataIn); - info.Compressed = dataIn.ReadBoolean(); - info.RedeliveryCounter = dataIn.ReadInt32(); - info.BrokerPath = ReadBrokerIds(dataIn); - info.Arrival = dataIn.ReadInt64(); - info.UserID = dataIn.ReadString(); - info.RecievedByDFBridge = dataIn.ReadBoolean(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - Message info = (Message) command; - CommandMarshallerRegistry.ProducerIdMarshaller.WriteCommand(info.ProducerId, dataOut); - WriteDestination(info.Destination, dataOut); - CommandMarshallerRegistry.WriteCommand(info.TransactionId, dataOut); - WriteDestination(info.OriginalDestination, dataOut); - CommandMarshallerRegistry.MessageIdMarshaller.WriteCommand(info.MessageId, dataOut); - CommandMarshallerRegistry.WriteCommand(info.OriginalTransactionId, dataOut); - dataOut.Write(info.GroupID); - dataOut.Write(info.GroupSequence); - dataOut.Write(info.CorrelationId); - dataOut.Write(info.Persistent); - dataOut.Write(info.Expiration); - dataOut.Write(info.Priority); - WriteDestination(info.ReplyTo, dataOut); - dataOut.Write(info.Timestamp); - dataOut.Write(info.Type); - WriteBytes(info.Content, dataOut); - WriteBytes(info.MarshalledProperties, dataOut); - CommandMarshallerRegistry.WriteCommand((Command) info.DataStructure, dataOut); - CommandMarshallerRegistry.ConsumerIdMarshaller.WriteCommand(info.TargetConsumerId, dataOut); - dataOut.Write(info.Compressed); - dataOut.Write(info.RedeliveryCounter); - WriteBrokerIds(info.BrokerPath, dataOut); - dataOut.Write(info.Arrival); - dataOut.Write(info.UserID); - dataOut.Write(info.RecievedByDFBridge); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ProducerIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ProducerIdMarshaller.cs deleted file mode 100644 index 714b0ac377..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ProducerIdMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for ProducerId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ProducerIdMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ProducerId(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ProducerId info = (ProducerId) command; - info.ConnectionId = dataIn.ReadString(); - info.Value = dataIn.ReadInt64(); - info.SessionId = dataIn.ReadInt64(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ProducerId info = (ProducerId) command; - dataOut.Write(info.ConnectionId); - dataOut.Write(info.Value); - dataOut.Write(info.SessionId); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ProducerInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ProducerInfoMarshaller.cs deleted file mode 100644 index e03ddf4003..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ProducerInfoMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for ProducerInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ProducerInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ProducerInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - ProducerInfo info = (ProducerInfo) command; - info.ProducerId = (ProducerId) CommandMarshallerRegistry.ProducerIdMarshaller.ReadCommand(dataIn); - info.Destination = ReadDestination(dataIn); - info.BrokerPath = ReadBrokerIds(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - ProducerInfo info = (ProducerInfo) command; - CommandMarshallerRegistry.ProducerIdMarshaller.WriteCommand(info.ProducerId, dataOut); - WriteDestination(info.Destination, dataOut); - WriteBrokerIds(info.BrokerPath, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/RemoveInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/RemoveInfoMarshaller.cs deleted file mode 100644 index ec67078a88..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/RemoveInfoMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for RemoveInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class RemoveInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new RemoveInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - RemoveInfo info = (RemoveInfo) command; - info.ObjectId = CommandMarshallerRegistry.ReadCommand(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - RemoveInfo info = (RemoveInfo) command; - CommandMarshallerRegistry.WriteCommand((Command) info.ObjectId, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/RemoveSubscriptionInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/RemoveSubscriptionInfoMarshaller.cs deleted file mode 100644 index 430236d847..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/RemoveSubscriptionInfoMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for RemoveSubscriptionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class RemoveSubscriptionInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new RemoveSubscriptionInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) command; - info.ConnectionId = (ConnectionId) CommandMarshallerRegistry.ConnectionIdMarshaller.ReadCommand(dataIn); - info.SubcriptionName = dataIn.ReadString(); - info.ClientId = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) command; - CommandMarshallerRegistry.ConnectionIdMarshaller.WriteCommand(info.ConnectionId, dataOut); - dataOut.Write(info.SubcriptionName); - dataOut.Write(info.ClientId); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ResponseMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ResponseMarshaller.cs deleted file mode 100644 index 782a277e2f..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ResponseMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for Response -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ResponseMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new Response(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - Response info = (Response) command; - info.CorrelationId = dataIn.ReadInt16(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - Response info = (Response) command; - dataOut.Write(info.CorrelationId); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/SessionIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/SessionIdMarshaller.cs deleted file mode 100644 index 0e9480b6f4..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/SessionIdMarshaller.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// Marshalling code for Open Wire Format for SessionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class SessionIdMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new SessionId(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - SessionId info = (SessionId) command; - info.ConnectionId = dataIn.ReadString(); - info.Value = dataIn.ReadInt64(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - SessionId info = (SessionId) command; - dataOut.Write(info.ConnectionId); - dataOut.Write(info.Value); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/SessionInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/SessionInfoMarshaller.cs deleted file mode 100644 index 835fb7a8cb..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/SessionInfoMarshaller.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Marshalling code for Open Wire Format for SessionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class SessionInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new SessionInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - SessionInfo info = (SessionInfo) command; - info.SessionId = (SessionId) CommandMarshallerRegistry.SessionIdMarshaller.ReadCommand(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - SessionInfo info = (SessionInfo) command; - CommandMarshallerRegistry.SessionIdMarshaller.WriteCommand(info.SessionId, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/ShutdownInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/ShutdownInfoMarshaller.cs deleted file mode 100644 index 2bcd312e33..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/ShutdownInfoMarshaller.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Marshalling code for Open Wire Format for ShutdownInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class ShutdownInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new ShutdownInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/SubscriptionInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/SubscriptionInfoMarshaller.cs deleted file mode 100644 index 69387e7d00..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/SubscriptionInfoMarshaller.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// Marshalling code for Open Wire Format for SubscriptionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class SubscriptionInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new SubscriptionInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - SubscriptionInfo info = (SubscriptionInfo) command; - info.ClientId = dataIn.ReadString(); - info.Destination = ReadDestination(dataIn); - info.Selector = dataIn.ReadString(); - info.SubcriptionName = dataIn.ReadString(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - SubscriptionInfo info = (SubscriptionInfo) command; - dataOut.Write(info.ClientId); - WriteDestination(info.Destination, dataOut); - dataOut.Write(info.Selector); - dataOut.Write(info.SubcriptionName); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/TransactionIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/TransactionIdMarshaller.cs deleted file mode 100644 index 9e801ec034..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/TransactionIdMarshaller.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -// Marshalling code for Open Wire Format for TransactionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public abstract class TransactionIdMarshaller : AbstractCommandMarshaller - { - - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/TransactionInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/TransactionInfoMarshaller.cs deleted file mode 100644 index 1189cdeaa0..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/TransactionInfoMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for TransactionInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class TransactionInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new TransactionInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - TransactionInfo info = (TransactionInfo) command; - info.ConnectionId = (ConnectionId) CommandMarshallerRegistry.ConnectionIdMarshaller.ReadCommand(dataIn); - info.TransactionId = (TransactionId) CommandMarshallerRegistry.ReadCommand(dataIn); - info.Type = dataIn.ReadByte(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - TransactionInfo info = (TransactionInfo) command; - CommandMarshallerRegistry.ConnectionIdMarshaller.WriteCommand(info.ConnectionId, dataOut); - CommandMarshallerRegistry.WriteCommand(info.TransactionId, dataOut); - dataOut.Write(info.Type); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/WireFormatInfoMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/WireFormatInfoMarshaller.cs deleted file mode 100644 index feb916b610..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/WireFormatInfoMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for WireFormatInfo -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class WireFormatInfoMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new WireFormatInfo(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - WireFormatInfo info = (WireFormatInfo) command; - info.Magic = ReadBytes(dataIn); - info.Version = dataIn.ReadInt32(); - info.Options = dataIn.ReadInt32(); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - WireFormatInfo info = (WireFormatInfo) command; - WriteBytes(info.Magic, dataOut); - dataOut.Write(info.Version); - dataOut.Write(info.Options); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/IO/XATransactionIdMarshaller.cs b/openwire-dotnet/src/OpenWire.Core/IO/XATransactionIdMarshaller.cs deleted file mode 100644 index 301a83b47a..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/IO/XATransactionIdMarshaller.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Marshalling code for Open Wire Format for XATransactionId -// -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-openwire module -// - -using System; -using System.Collections; -using System.IO; - -using OpenWire.Core; -using OpenWire.Core.Commands; -using OpenWire.Core.IO; - -namespace OpenWire.Core.IO -{ - public class XATransactionIdMarshaller : AbstractCommandMarshaller - { - - - public override Command CreateCommand() { - return new XATransactionId(); - } - - public override void BuildCommand(Command command, BinaryReader dataIn) { - base.BuildCommand(command, dataIn); - - XATransactionId info = (XATransactionId) command; - info.FormatId = dataIn.ReadInt32(); - info.GlobalTransactionId = ReadBytes(dataIn); - info.BranchQualifier = ReadBytes(dataIn); - - } - - public override void WriteCommand(Command command, BinaryWriter dataOut) { - base.WriteCommand(command, dataOut); - - XATransactionId info = (XATransactionId) command; - dataOut.Write(info.FormatId); - WriteBytes(info.GlobalTransactionId, dataOut); - WriteBytes(info.BranchQualifier, dataOut); - - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/OpenWire.Core.build b/openwire-dotnet/src/OpenWire.Core/OpenWire.Core.build deleted file mode 100755 index 682eb2601e..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/OpenWire.Core.build +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/openwire-dotnet/src/OpenWire.Core/Queue.cs b/openwire-dotnet/src/OpenWire.Core/Queue.cs deleted file mode 100755 index 31b85bc0b7..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Queue.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for Queue. - /// - public interface Queue : Destination { - - String QueueName { - get; - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/TemporaryQueue.cs b/openwire-dotnet/src/OpenWire.Core/TemporaryQueue.cs deleted file mode 100755 index ebed1d0379..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/TemporaryQueue.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for TemporaryQueue. - /// - public interface TemporaryQueue : Destination { - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/TemporaryTopic.cs b/openwire-dotnet/src/OpenWire.Core/TemporaryTopic.cs deleted file mode 100755 index 95d8708f2e..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/TemporaryTopic.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for TemporaryTopic. - /// - public interface TemporaryTopic : Destination { - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Topic.cs b/openwire-dotnet/src/OpenWire.Core/Topic.cs deleted file mode 100755 index 613719c059..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Topic.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using OpenWire.Core.Commands; - -namespace OpenWire.Core { - /// - /// Summary description for Topic. - /// - public interface Topic : Destination { - - String TopicName { - get; - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/TransactionConstants.cs b/openwire-dotnet/src/OpenWire.Core/TransactionConstants.cs deleted file mode 100755 index 91534fb1df..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/TransactionConstants.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; - -namespace OpenWire.Core { - /// - /// Summary description for TransactionConstants. - /// - public class TransactionType { - - /** - * Transaction state not set - */ - const int NOT_SET = 0; - /** - * Start a transaction - */ - const int START = 101; - /** - * Pre-commit a transaction - */ - const int PRE_COMMIT = 102; - /** - * Commit a transaction - */ - const int COMMIT = 103; - /** - * Recover a transaction - */ - const int RECOVER = 104; - /** - * Rollback a transaction - */ - const int ROLLBACK = 105; - /** - * End a transaction - */ - const int END = 106; - /** - * Forget a transaction - */ - const int FORGET = 107; - /** - * Join a transaction - */ - const int JOIN = 108; - /** - * Do a one phase commit... No PRE COMMIT has been done. - */ - const int COMMIT_ONE_PHASE = 109; - /** - * Get a list of all the XIDs that are currently prepared. - */ - const int XA_RECOVER = 110; - /** - * Get a the transaction timeout for the RM - */ - const int GET_TX_TIMEOUT = 111; - /** - * Set a the transaction timeout for the RM - */ - const int SET_TX_TIMEOUT = 112; - /** - * Gets the unique id of the resource manager. - */ - const int GET_RM_ID = 113; - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Transport/FutureResponse.cs b/openwire-dotnet/src/OpenWire.Core/Transport/FutureResponse.cs deleted file mode 100755 index 5dc5c36f3b..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Transport/FutureResponse.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Threading; - -using OpenWire.Core; -using OpenWire.Core.Commands; - -namespace OpenWire.Core.Transport { - /// - /// Handles asynchronous responses - /// - public class FutureResponse : IAsyncResult { - - private Response response; - private Mutex asyncWaitHandle = new Mutex(); - private bool isCompleted; - - public WaitHandle AsyncWaitHandle { - get { return asyncWaitHandle; } - } - - public object AsyncState { - get { return response; } - set { response = (Response) value; } - } - - public bool IsCompleted { - get { return isCompleted; } - } - - public bool CompletedSynchronously { - get { return false; } - } - - public Response Response { - get { return response; } - set { - asyncWaitHandle.WaitOne(); - response = value; - isCompleted = true; - asyncWaitHandle.ReleaseMutex(); - } - } - } -} diff --git a/openwire-dotnet/src/OpenWire.Core/Transport/Transport.cs b/openwire-dotnet/src/OpenWire.Core/Transport/Transport.cs deleted file mode 100755 index 34b024b0d7..0000000000 --- a/openwire-dotnet/src/OpenWire.Core/Transport/Transport.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; - -using OpenWire.Core; -using OpenWire.Core.Commands; - -namespace OpenWire.Core.Transport { - - public delegate void CommandHandler(Transport sender, Command command); - public delegate void ExceptionHandler(Transport sender, Exception command); - - /// - /// Represents the logical networking transport layer. - /// - public interface Transport { - void Oneway(Command command); - - FutureResponse AsyncRequest(Command command); - - Response Request(Command command); - - event CommandHandler Command; - event ExceptionHandler Exception; - } -}