mirror of https://github.com/apache/activemq.git
latest generated OpenWire.Net code; getting closer :)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366552 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
034949a481
commit
40280b7d31
|
@ -19,6 +19,16 @@ namespace OpenWire.Core
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected virtual BrokerId ReadBrokerId(BinaryReader dataIn)
|
||||||
|
{
|
||||||
|
return brokerIDMarshaller.ReadCommand();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void WriteBrokerId(BrokerId command, BinaryWriter dataOut)
|
||||||
|
{
|
||||||
|
brokerIDMarshaller.WriteCommand(command, dataOut);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
using System;
|
using System;
|
||||||
|
using OpenWire.Core.Commands;
|
||||||
|
|
||||||
namespace OpenWire.Core
|
namespace OpenWire.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for ActiveMQDestination.
|
/// Summary description for Destination.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class ActiveMQDestination {
|
public abstract class Destination {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Topic Destination object
|
* Topic Destination object
|
||||||
|
@ -70,16 +71,16 @@ namespace OpenWire.Core
|
||||||
/**
|
/**
|
||||||
* The Default Constructor
|
* The Default Constructor
|
||||||
*/
|
*/
|
||||||
protected ActiveMQDestination() {
|
protected Destination() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct the ActiveMQDestination with a defined physical name;
|
* Construct the Destination with a defined physical name;
|
||||||
*
|
*
|
||||||
* @param name
|
* @param name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
protected ActiveMQDestination(String name) {
|
protected Destination(String name) {
|
||||||
this.physicalName = name;
|
this.physicalName = name;
|
||||||
this.advisory = name != null && name.StartsWith(ADVISORY_PREFIX);
|
this.advisory = name != null && name.StartsWith(ADVISORY_PREFIX);
|
||||||
}
|
}
|
||||||
|
@ -103,21 +104,21 @@ namespace OpenWire.Core
|
||||||
* @return true if this is a destination for Consumer advisories
|
* @return true if this is a destination for Consumer advisories
|
||||||
*/
|
*/
|
||||||
public bool IsConsumerAdvisory(){
|
public bool IsConsumerAdvisory(){
|
||||||
return IsAdvisory() && physicalName.StartsWith(ActiveMQDestination.CONSUMER_ADVISORY_PREFIX);
|
return IsAdvisory() && physicalName.StartsWith(Destination.CONSUMER_ADVISORY_PREFIX);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return true if this is a destination for Producer advisories
|
* @return true if this is a destination for Producer advisories
|
||||||
*/
|
*/
|
||||||
public bool IsProducerAdvisory(){
|
public bool IsProducerAdvisory(){
|
||||||
return IsAdvisory() && physicalName.StartsWith(ActiveMQDestination.PRODUCER_ADVISORY_PREFIX);
|
return IsAdvisory() && physicalName.StartsWith(Destination.PRODUCER_ADVISORY_PREFIX);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return true if this is a destination for Connection advisories
|
* @return true if this is a destination for Connection advisories
|
||||||
*/
|
*/
|
||||||
public bool IsConnectionAdvisory(){
|
public bool IsConnectionAdvisory(){
|
||||||
return IsAdvisory() && physicalName.StartsWith(ActiveMQDestination.CONNECTION_ADVISORY_PREFIX);
|
return IsAdvisory() && physicalName.StartsWith(Destination.CONNECTION_ADVISORY_PREFIX);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQBytesMessageMarshaller : ActiveMQMessageMarshaller
|
public class ActiveMQBytesMessageMarshaller : ActiveMQMessageMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQBytesMessage();
|
return new ActiveMQBytesMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQBytesMessage info = (ActiveMQBytesMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQBytesMessage info = (ActiveMQBytesMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,24 +17,23 @@ using OpenWire.Core.IO;
|
||||||
|
|
||||||
namespace OpenWire.Core.IO
|
namespace OpenWire.Core.IO
|
||||||
{
|
{
|
||||||
public class ActiveMQDestinationMarshaller : AbstractCommandMarshaller
|
public abstract class ActiveMQDestinationMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
|
||||||
return new ActiveMQDestination();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ActiveMQDestination info = (ActiveMQDestination) command;
|
ActiveMQDestination info = (ActiveMQDestination) command;
|
||||||
info.setPhysicalName(dataIn.readUTF());
|
info.PhysicalName = dataIn.ReadString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ActiveMQDestination info = (ActiveMQDestination) command;
|
ActiveMQDestination info = (ActiveMQDestination) command;
|
||||||
writeUTF(info.getPhysicalName(), dataOut);
|
dataOut.Write(info.PhysicalName);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQMapMessageMarshaller : ActiveMQMessageMarshaller
|
public class ActiveMQMapMessageMarshaller : ActiveMQMessageMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQMapMessage();
|
return new ActiveMQMapMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQMapMessage info = (ActiveMQMapMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQMapMessage info = (ActiveMQMapMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQMessageMarshaller : AbstractCommandMarshaller
|
public class ActiveMQMessageMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQMessage();
|
return new ActiveMQMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQMessage info = (ActiveMQMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQMessage info = (ActiveMQMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQObjectMessageMarshaller : ActiveMQMessageMarshaller
|
public class ActiveMQObjectMessageMarshaller : ActiveMQMessageMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQObjectMessage();
|
return new ActiveMQObjectMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQObjectMessage info = (ActiveMQObjectMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQObjectMessage info = (ActiveMQObjectMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQQueueMarshaller : AbstractCommandMarshaller
|
public class ActiveMQQueueMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQQueue();
|
return new ActiveMQQueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQQueue info = (ActiveMQQueue) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQQueue info = (ActiveMQQueue) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQStreamMessageMarshaller : ActiveMQMessageMarshaller
|
public class ActiveMQStreamMessageMarshaller : ActiveMQMessageMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQStreamMessage();
|
return new ActiveMQStreamMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQStreamMessage info = (ActiveMQStreamMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQStreamMessage info = (ActiveMQStreamMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQTempDestinationMarshaller : AbstractCommandMarshaller
|
public class ActiveMQTempDestinationMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQTempDestination();
|
return new ActiveMQTempDestination();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQTempDestination info = (ActiveMQTempDestination) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQTempDestination info = (ActiveMQTempDestination) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQTempQueueMarshaller : AbstractCommandMarshaller
|
public class ActiveMQTempQueueMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQTempQueue();
|
return new ActiveMQTempQueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQTempQueue info = (ActiveMQTempQueue) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQTempQueue info = (ActiveMQTempQueue) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQTempTopicMarshaller : AbstractCommandMarshaller
|
public class ActiveMQTempTopicMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQTempTopic();
|
return new ActiveMQTempTopic();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQTempTopic info = (ActiveMQTempTopic) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQTempTopic info = (ActiveMQTempTopic) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQTextMessageMarshaller : ActiveMQMessageMarshaller
|
public class ActiveMQTextMessageMarshaller : ActiveMQMessageMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQTextMessage();
|
return new ActiveMQTextMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQTextMessage info = (ActiveMQTextMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQTextMessage info = (ActiveMQTextMessage) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ActiveMQTopicMarshaller : AbstractCommandMarshaller
|
public class ActiveMQTopicMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ActiveMQTopic();
|
return new ActiveMQTopic();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ActiveMQTopic info = (ActiveMQTopic) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ActiveMQTopic info = (ActiveMQTopic) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,23 +20,26 @@ namespace OpenWire.Core.IO
|
||||||
public class BaseCommandMarshaller : AbstractCommandMarshaller
|
public class BaseCommandMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new BaseCommand();
|
return new BaseCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
BaseCommand info = (BaseCommand) command;
|
BaseCommand info = (BaseCommand) command;
|
||||||
info.setCommandId(dataIn.readShort());
|
info.CommandId = dataIn.ReadInt16();
|
||||||
info.setResponseRequired(dataIn.readBoolean());
|
info.ResponseRequired = dataIn.ReadBoolean();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
BaseCommand info = (BaseCommand) command;
|
BaseCommand info = (BaseCommand) command;
|
||||||
dataOut.writeShort(info.getCommandId());
|
dataOut.Write(info.CommandId);
|
||||||
dataOut.writeBoolean(info.isResponseRequired());
|
dataOut.Write(info.ResponseRequired);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class BrokerIdMarshaller : AbstractCommandMarshaller
|
public class BrokerIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new BrokerId();
|
return new BrokerId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
BrokerId info = (BrokerId) command;
|
BrokerId info = (BrokerId) command;
|
||||||
info.setBrokerId(dataIn.readUTF());
|
info.BrokerIdValue = dataIn.ReadString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
BrokerId info = (BrokerId) command;
|
BrokerId info = (BrokerId) command;
|
||||||
writeUTF(info.getBrokerId(), dataOut);
|
dataOut.Write(info.BrokerIdValue);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,27 +20,30 @@ namespace OpenWire.Core.IO
|
||||||
public class BrokerInfoMarshaller : AbstractCommandMarshaller
|
public class BrokerInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new BrokerInfo();
|
return new BrokerInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
BrokerInfo info = (BrokerInfo) command;
|
BrokerInfo info = (BrokerInfo) command;
|
||||||
info.setBrokerId((org.apache.activemq.command.BrokerId) readObject(dataIn));
|
info.BrokerId = ReadBrokerId(dataIn);
|
||||||
info.setBrokerURL(dataIn.readUTF());
|
info.BrokerURL = dataIn.ReadString();
|
||||||
info.setPeerBrokerInfos((org.apache.activemq.command.BrokerInfo[]) readObject(dataIn));
|
info.PeerBrokerInfos = ReadBrokerInfo[](dataIn);
|
||||||
info.setBrokerName(dataIn.readUTF());
|
info.BrokerName = dataIn.ReadString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
BrokerInfo info = (BrokerInfo) command;
|
BrokerInfo info = (BrokerInfo) command;
|
||||||
writeObject(info.getBrokerId(), dataOut);
|
WriteBrokerId(info.BrokerId, dataOut);
|
||||||
writeUTF(info.getBrokerURL(), dataOut);
|
dataOut.Write(info.BrokerURL);
|
||||||
writeObject(info.getPeerBrokerInfos(), dataOut);
|
WriteBrokerInfo[](info.PeerBrokerInfos, dataOut);
|
||||||
writeUTF(info.getBrokerName(), dataOut);
|
dataOut.Write(info.BrokerName);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class ConnectionIdMarshaller : AbstractCommandMarshaller
|
public class ConnectionIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ConnectionId();
|
return new ConnectionId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ConnectionId info = (ConnectionId) command;
|
ConnectionId info = (ConnectionId) command;
|
||||||
info.setConnectionId(dataIn.readUTF());
|
info.ConnectionIdValue = dataIn.ReadString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ConnectionId info = (ConnectionId) command;
|
ConnectionId info = (ConnectionId) command;
|
||||||
writeUTF(info.getConnectionId(), dataOut);
|
dataOut.Write(info.ConnectionIdValue);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,29 +20,32 @@ namespace OpenWire.Core.IO
|
||||||
public class ConnectionInfoMarshaller : AbstractCommandMarshaller
|
public class ConnectionInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ConnectionInfo();
|
return new ConnectionInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ConnectionInfo info = (ConnectionInfo) command;
|
ConnectionInfo info = (ConnectionInfo) command;
|
||||||
info.setConnectionId((org.apache.activemq.command.ConnectionId) readObject(dataIn));
|
info.ConnectionId = ReadConnectionId(dataIn);
|
||||||
info.setClientId(dataIn.readUTF());
|
info.ClientId = dataIn.ReadString();
|
||||||
info.setPassword(dataIn.readUTF());
|
info.Password = dataIn.ReadString();
|
||||||
info.setUserName(dataIn.readUTF());
|
info.UserName = dataIn.ReadString();
|
||||||
info.setBrokerPath((org.apache.activemq.command.BrokerId[]) readObject(dataIn));
|
info.BrokerPath = ReadBrokerIds(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ConnectionInfo info = (ConnectionInfo) command;
|
ConnectionInfo info = (ConnectionInfo) command;
|
||||||
writeObject(info.getConnectionId(), dataOut);
|
WriteConnectionId(info.ConnectionId, dataOut);
|
||||||
writeUTF(info.getClientId(), dataOut);
|
dataOut.Write(info.ClientId);
|
||||||
writeUTF(info.getPassword(), dataOut);
|
dataOut.Write(info.Password);
|
||||||
writeUTF(info.getUserName(), dataOut);
|
dataOut.Write(info.UserName);
|
||||||
writeObject(info.getBrokerPath(), dataOut);
|
dataOut.WriteBrokerIds(info.BrokerPath);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class ConsumerIdMarshaller : AbstractCommandMarshaller
|
public class ConsumerIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ConsumerId();
|
return new ConsumerId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ConsumerId info = (ConsumerId) command;
|
ConsumerId info = (ConsumerId) command;
|
||||||
info.setConnectionId(dataIn.readUTF());
|
info.ConnectionId = dataIn.ReadString();
|
||||||
info.setSessionId(dataIn.readLong());
|
info.SessionId = dataIn.ReadInt64();
|
||||||
info.setConsumerId(dataIn.readLong());
|
info.ConsumerIdValue = dataIn.ReadInt64();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ConsumerId info = (ConsumerId) command;
|
ConsumerId info = (ConsumerId) command;
|
||||||
writeUTF(info.getConnectionId(), dataOut);
|
dataOut.Write(info.ConnectionId);
|
||||||
dataOut.writeLong(info.getSessionId());
|
dataOut.Write(info.SessionId);
|
||||||
dataOut.writeLong(info.getConsumerId());
|
dataOut.Write(info.ConsumerIdValue);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,45 +20,48 @@ namespace OpenWire.Core.IO
|
||||||
public class ConsumerInfoMarshaller : AbstractCommandMarshaller
|
public class ConsumerInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ConsumerInfo();
|
return new ConsumerInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ConsumerInfo info = (ConsumerInfo) command;
|
ConsumerInfo info = (ConsumerInfo) command;
|
||||||
info.setConsumerId((org.apache.activemq.command.ConsumerId) readObject(dataIn));
|
info.ConsumerId = ReadConsumerId(dataIn);
|
||||||
info.setBrowser(dataIn.readBoolean());
|
info.Browser = dataIn.ReadBoolean();
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setPrefetchSize(dataIn.readInt());
|
info.PrefetchSize = dataIn.ReadInt32();
|
||||||
info.setDispatchAsync(dataIn.readBoolean());
|
info.DispatchAsync = dataIn.ReadBoolean();
|
||||||
info.setSelector(dataIn.readUTF());
|
info.Selector = dataIn.ReadString();
|
||||||
info.setSubcriptionName(dataIn.readUTF());
|
info.SubcriptionName = dataIn.ReadString();
|
||||||
info.setNoLocal(dataIn.readBoolean());
|
info.NoLocal = dataIn.ReadBoolean();
|
||||||
info.setExclusive(dataIn.readBoolean());
|
info.Exclusive = dataIn.ReadBoolean();
|
||||||
info.setRetroactive(dataIn.readBoolean());
|
info.Retroactive = dataIn.ReadBoolean();
|
||||||
info.setPriority(dataIn.readByte());
|
info.Priority = dataIn.ReadByte();
|
||||||
info.setBrokerPath((org.apache.activemq.command.BrokerId[]) readObject(dataIn));
|
info.BrokerPath = ReadBrokerIds(dataIn);
|
||||||
info.setNetworkSubscription(dataIn.readBoolean());
|
info.NetworkSubscription = dataIn.ReadBoolean();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ConsumerInfo info = (ConsumerInfo) command;
|
ConsumerInfo info = (ConsumerInfo) command;
|
||||||
writeObject(info.getConsumerId(), dataOut);
|
WriteConsumerId(info.ConsumerId, dataOut);
|
||||||
dataOut.writeBoolean(info.isBrowser());
|
dataOut.Write(info.Browser);
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
dataOut.writeInt(info.getPrefetchSize());
|
dataOut.Write(info.PrefetchSize);
|
||||||
dataOut.writeBoolean(info.isDispatchAsync());
|
dataOut.Write(info.DispatchAsync);
|
||||||
writeUTF(info.getSelector(), dataOut);
|
dataOut.Write(info.Selector);
|
||||||
writeUTF(info.getSubcriptionName(), dataOut);
|
dataOut.Write(info.SubcriptionName);
|
||||||
dataOut.writeBoolean(info.isNoLocal());
|
dataOut.Write(info.NoLocal);
|
||||||
dataOut.writeBoolean(info.isExclusive());
|
dataOut.Write(info.Exclusive);
|
||||||
dataOut.writeBoolean(info.isRetroactive());
|
dataOut.Write(info.Retroactive);
|
||||||
dataOut.writeByte(info.getPriority());
|
dataOut.Write(info.Priority);
|
||||||
writeObject(info.getBrokerPath(), dataOut);
|
dataOut.WriteBrokerIds(info.BrokerPath);
|
||||||
dataOut.writeBoolean(info.isNetworkSubscription());
|
dataOut.Write(info.NetworkSubscription);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class ControlCommandMarshaller : AbstractCommandMarshaller
|
public class ControlCommandMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ControlCommand();
|
return new ControlCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ControlCommand info = (ControlCommand) command;
|
ControlCommand info = (ControlCommand) command;
|
||||||
info.setCommand(dataIn.readUTF());
|
info.Command = dataIn.ReadString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ControlCommand info = (ControlCommand) command;
|
ControlCommand info = (ControlCommand) command;
|
||||||
writeUTF(info.getCommand(), dataOut);
|
dataOut.Write(info.Command);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class DataArrayResponseMarshaller : AbstractCommandMarshaller
|
public class DataArrayResponseMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new DataArrayResponse();
|
return new DataArrayResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
DataArrayResponse info = (DataArrayResponse) command;
|
DataArrayResponse info = (DataArrayResponse) command;
|
||||||
info.setData((org.apache.activemq.command.DataStructure[]) readObject(dataIn));
|
info.Data = ReadDataStructure[](dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
DataArrayResponse info = (DataArrayResponse) command;
|
DataArrayResponse info = (DataArrayResponse) command;
|
||||||
writeObject(info.getData(), dataOut);
|
WriteDataStructure[](info.Data, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class DataResponseMarshaller : AbstractCommandMarshaller
|
public class DataResponseMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new DataResponse();
|
return new DataResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
DataResponse info = (DataResponse) command;
|
DataResponse info = (DataResponse) command;
|
||||||
info.setData((org.apache.activemq.command.DataStructure) readObject(dataIn));
|
info.Data = ReadDataStructure(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
DataResponse info = (DataResponse) command;
|
DataResponse info = (DataResponse) command;
|
||||||
writeObject(info.getData(), dataOut);
|
WriteDataStructure(info.Data, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,29 +20,32 @@ namespace OpenWire.Core.IO
|
||||||
public class DestinationInfoMarshaller : AbstractCommandMarshaller
|
public class DestinationInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new DestinationInfo();
|
return new DestinationInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
DestinationInfo info = (DestinationInfo) command;
|
DestinationInfo info = (DestinationInfo) command;
|
||||||
info.setConnectionId((org.apache.activemq.command.ConnectionId) readObject(dataIn));
|
info.ConnectionId = ReadConnectionId(dataIn);
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setOperationType(dataIn.readByte());
|
info.OperationType = dataIn.ReadByte();
|
||||||
info.setTimeout(dataIn.readLong());
|
info.Timeout = dataIn.ReadInt64();
|
||||||
info.setBrokerPath((org.apache.activemq.command.BrokerId[]) readObject(dataIn));
|
info.BrokerPath = ReadBrokerIds(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
DestinationInfo info = (DestinationInfo) command;
|
DestinationInfo info = (DestinationInfo) command;
|
||||||
writeObject(info.getConnectionId(), dataOut);
|
WriteConnectionId(info.ConnectionId, dataOut);
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
dataOut.writeByte(info.getOperationType());
|
dataOut.Write(info.OperationType);
|
||||||
dataOut.writeLong(info.getTimeout());
|
dataOut.Write(info.Timeout);
|
||||||
writeObject(info.getBrokerPath(), dataOut);
|
dataOut.WriteBrokerIds(info.BrokerPath);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class ExceptionResponseMarshaller : AbstractCommandMarshaller
|
public class ExceptionResponseMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ExceptionResponse();
|
return new ExceptionResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ExceptionResponse info = (ExceptionResponse) command;
|
ExceptionResponse info = (ExceptionResponse) command;
|
||||||
info.setException((java.lang.Throwable) readObject(dataIn));
|
info.Exception = ReadThrowable(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ExceptionResponse info = (ExceptionResponse) command;
|
ExceptionResponse info = (ExceptionResponse) command;
|
||||||
writeObject(info.getException(), dataOut);
|
WriteThrowable(info.Exception, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class FlushCommandMarshaller : AbstractCommandMarshaller
|
public class FlushCommandMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new FlushCommand();
|
return new FlushCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
FlushCommand info = (FlushCommand) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
FlushCommand info = (FlushCommand) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class IntegerResponseMarshaller : AbstractCommandMarshaller
|
public class IntegerResponseMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new IntegerResponse();
|
return new IntegerResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
IntegerResponse info = (IntegerResponse) command;
|
IntegerResponse info = (IntegerResponse) command;
|
||||||
info.setResult(dataIn.readInt());
|
info.Result = dataIn.ReadInt32();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
IntegerResponse info = (IntegerResponse) command;
|
IntegerResponse info = (IntegerResponse) command;
|
||||||
dataOut.writeInt(info.getResult());
|
dataOut.Write(info.Result);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,23 +20,26 @@ namespace OpenWire.Core.IO
|
||||||
public class JournalQueueAckMarshaller : AbstractCommandMarshaller
|
public class JournalQueueAckMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new JournalQueueAck();
|
return new JournalQueueAck();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
JournalQueueAck info = (JournalQueueAck) command;
|
JournalQueueAck info = (JournalQueueAck) command;
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setMessageAck((org.apache.activemq.command.MessageAck) readObject(dataIn));
|
info.MessageAck = ReadMessageAck(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
JournalQueueAck info = (JournalQueueAck) command;
|
JournalQueueAck info = (JournalQueueAck) command;
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
writeObject(info.getMessageAck(), dataOut);
|
WriteMessageAck(info.MessageAck, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,31 +20,34 @@ namespace OpenWire.Core.IO
|
||||||
public class JournalTopicAckMarshaller : AbstractCommandMarshaller
|
public class JournalTopicAckMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new JournalTopicAck();
|
return new JournalTopicAck();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
JournalTopicAck info = (JournalTopicAck) command;
|
JournalTopicAck info = (JournalTopicAck) command;
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setMessageId((org.apache.activemq.command.MessageId) readObject(dataIn));
|
info.MessageId = ReadMessageId(dataIn);
|
||||||
info.setMessageSequenceId(dataIn.readLong());
|
info.MessageSequenceId = dataIn.ReadInt64();
|
||||||
info.setSubscritionName(dataIn.readUTF());
|
info.SubscritionName = dataIn.ReadString();
|
||||||
info.setClientId(dataIn.readUTF());
|
info.ClientId = dataIn.ReadString();
|
||||||
info.setTransactionId((org.apache.activemq.command.TransactionId) readObject(dataIn));
|
info.TransactionId = ReadTransactionId(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
JournalTopicAck info = (JournalTopicAck) command;
|
JournalTopicAck info = (JournalTopicAck) command;
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
writeObject(info.getMessageId(), dataOut);
|
WriteMessageId(info.MessageId, dataOut);
|
||||||
dataOut.writeLong(info.getMessageSequenceId());
|
dataOut.Write(info.MessageSequenceId);
|
||||||
writeUTF(info.getSubscritionName(), dataOut);
|
dataOut.Write(info.SubscritionName);
|
||||||
writeUTF(info.getClientId(), dataOut);
|
dataOut.Write(info.ClientId);
|
||||||
writeObject(info.getTransactionId(), dataOut);
|
WriteTransactionId(info.TransactionId, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class JournalTraceMarshaller : AbstractCommandMarshaller
|
public class JournalTraceMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new JournalTrace();
|
return new JournalTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
JournalTrace info = (JournalTrace) command;
|
JournalTrace info = (JournalTrace) command;
|
||||||
info.setMessage(dataIn.readUTF());
|
info.Message = dataIn.ReadString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
JournalTrace info = (JournalTrace) command;
|
JournalTrace info = (JournalTrace) command;
|
||||||
writeUTF(info.getMessage(), dataOut);
|
dataOut.Write(info.Message);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class JournalTransactionMarshaller : AbstractCommandMarshaller
|
public class JournalTransactionMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new JournalTransaction();
|
return new JournalTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
JournalTransaction info = (JournalTransaction) command;
|
JournalTransaction info = (JournalTransaction) command;
|
||||||
info.setTransactionId((org.apache.activemq.command.TransactionId) readObject(dataIn));
|
info.TransactionId = ReadTransactionId(dataIn);
|
||||||
info.setType(dataIn.readByte());
|
info.Type = dataIn.ReadByte();
|
||||||
info.setWasPrepared(dataIn.readBoolean());
|
info.WasPrepared = dataIn.ReadBoolean();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
JournalTransaction info = (JournalTransaction) command;
|
JournalTransaction info = (JournalTransaction) command;
|
||||||
writeObject(info.getTransactionId(), dataOut);
|
WriteTransactionId(info.TransactionId, dataOut);
|
||||||
dataOut.writeByte(info.getType());
|
dataOut.Write(info.Type);
|
||||||
dataOut.writeBoolean(info.getWasPrepared());
|
dataOut.Write(info.WasPrepared);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class KeepAliveInfoMarshaller : AbstractCommandMarshaller
|
public class KeepAliveInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new KeepAliveInfo();
|
return new KeepAliveInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
KeepAliveInfo info = (KeepAliveInfo) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
KeepAliveInfo info = (KeepAliveInfo) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,23 +20,26 @@ namespace OpenWire.Core.IO
|
||||||
public class LocalTransactionIdMarshaller : AbstractCommandMarshaller
|
public class LocalTransactionIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new LocalTransactionId();
|
return new LocalTransactionId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
LocalTransactionId info = (LocalTransactionId) command;
|
LocalTransactionId info = (LocalTransactionId) command;
|
||||||
info.setTransactionId(dataIn.readLong());
|
info.TransactionId = dataIn.ReadInt64();
|
||||||
info.setConnectionId((org.apache.activemq.command.ConnectionId) readObject(dataIn));
|
info.ConnectionId = ReadConnectionId(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
LocalTransactionId info = (LocalTransactionId) command;
|
LocalTransactionId info = (LocalTransactionId) command;
|
||||||
dataOut.writeLong(info.getTransactionId());
|
dataOut.Write(info.TransactionId);
|
||||||
writeObject(info.getConnectionId(), dataOut);
|
WriteConnectionId(info.ConnectionId, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,33 +20,36 @@ namespace OpenWire.Core.IO
|
||||||
public class MessageAckMarshaller : AbstractCommandMarshaller
|
public class MessageAckMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new MessageAck();
|
return new MessageAck();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
MessageAck info = (MessageAck) command;
|
MessageAck info = (MessageAck) command;
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setTransactionId((org.apache.activemq.command.TransactionId) readObject(dataIn));
|
info.TransactionId = ReadTransactionId(dataIn);
|
||||||
info.setConsumerId((org.apache.activemq.command.ConsumerId) readObject(dataIn));
|
info.ConsumerId = ReadConsumerId(dataIn);
|
||||||
info.setAckType(dataIn.readByte());
|
info.AckType = dataIn.ReadByte();
|
||||||
info.setFirstMessageId((org.apache.activemq.command.MessageId) readObject(dataIn));
|
info.FirstMessageId = ReadMessageId(dataIn);
|
||||||
info.setLastMessageId((org.apache.activemq.command.MessageId) readObject(dataIn));
|
info.LastMessageId = ReadMessageId(dataIn);
|
||||||
info.setMessageCount(dataIn.readInt());
|
info.MessageCount = dataIn.ReadInt32();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
MessageAck info = (MessageAck) command;
|
MessageAck info = (MessageAck) command;
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
writeObject(info.getTransactionId(), dataOut);
|
WriteTransactionId(info.TransactionId, dataOut);
|
||||||
writeObject(info.getConsumerId(), dataOut);
|
WriteConsumerId(info.ConsumerId, dataOut);
|
||||||
dataOut.writeByte(info.getAckType());
|
dataOut.Write(info.AckType);
|
||||||
writeObject(info.getFirstMessageId(), dataOut);
|
WriteMessageId(info.FirstMessageId, dataOut);
|
||||||
writeObject(info.getLastMessageId(), dataOut);
|
WriteMessageId(info.LastMessageId, dataOut);
|
||||||
dataOut.writeInt(info.getMessageCount());
|
dataOut.Write(info.MessageCount);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,27 +20,30 @@ namespace OpenWire.Core.IO
|
||||||
public class MessageDispatchMarshaller : AbstractCommandMarshaller
|
public class MessageDispatchMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new MessageDispatch();
|
return new MessageDispatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
MessageDispatch info = (MessageDispatch) command;
|
MessageDispatch info = (MessageDispatch) command;
|
||||||
info.setConsumerId((org.apache.activemq.command.ConsumerId) readObject(dataIn));
|
info.ConsumerId = ReadConsumerId(dataIn);
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setMessage((org.apache.activemq.command.Message) readObject(dataIn));
|
info.Message = ReadMessage(dataIn);
|
||||||
info.setRedeliveryCounter(dataIn.readInt());
|
info.RedeliveryCounter = dataIn.ReadInt32();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
MessageDispatch info = (MessageDispatch) command;
|
MessageDispatch info = (MessageDispatch) command;
|
||||||
writeObject(info.getConsumerId(), dataOut);
|
WriteConsumerId(info.ConsumerId, dataOut);
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
writeObject(info.getMessage(), dataOut);
|
WriteMessage(info.Message, dataOut);
|
||||||
dataOut.writeInt(info.getRedeliveryCounter());
|
dataOut.Write(info.RedeliveryCounter);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class MessageIdMarshaller : AbstractCommandMarshaller
|
public class MessageIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new MessageId();
|
return new MessageId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
MessageId info = (MessageId) command;
|
MessageId info = (MessageId) command;
|
||||||
info.setProducerId((org.apache.activemq.command.ProducerId) readObject(dataIn));
|
info.ProducerId = ReadProducerId(dataIn);
|
||||||
info.setProducerSequenceId(dataIn.readLong());
|
info.ProducerSequenceId = dataIn.ReadInt64();
|
||||||
info.setBrokerSequenceId(dataIn.readLong());
|
info.BrokerSequenceId = dataIn.ReadInt64();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
MessageId info = (MessageId) command;
|
MessageId info = (MessageId) command;
|
||||||
writeObject(info.getProducerId(), dataOut);
|
WriteProducerId(info.ProducerId, dataOut);
|
||||||
dataOut.writeLong(info.getProducerSequenceId());
|
dataOut.Write(info.ProducerSequenceId);
|
||||||
dataOut.writeLong(info.getBrokerSequenceId());
|
dataOut.Write(info.BrokerSequenceId);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,69 +20,72 @@ namespace OpenWire.Core.IO
|
||||||
public class MessageMarshaller : AbstractCommandMarshaller
|
public class MessageMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new Message();
|
return new Message();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
Message info = (Message) command;
|
Message info = (Message) command;
|
||||||
info.setProducerId((org.apache.activemq.command.ProducerId) readObject(dataIn));
|
info.ProducerId = ReadProducerId(dataIn);
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setTransactionId((org.apache.activemq.command.TransactionId) readObject(dataIn));
|
info.TransactionId = ReadTransactionId(dataIn);
|
||||||
info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.OriginalDestination = ReadDestination(dataIn);
|
||||||
info.setMessageId((org.apache.activemq.command.MessageId) readObject(dataIn));
|
info.MessageId = ReadMessageId(dataIn);
|
||||||
info.setOriginalTransactionId((org.apache.activemq.command.TransactionId) readObject(dataIn));
|
info.OriginalTransactionId = ReadTransactionId(dataIn);
|
||||||
info.setGroupID(dataIn.readUTF());
|
info.GroupID = dataIn.ReadString();
|
||||||
info.setGroupSequence(dataIn.readInt());
|
info.GroupSequence = dataIn.ReadInt32();
|
||||||
info.setCorrelationId(dataIn.readUTF());
|
info.CorrelationId = dataIn.ReadString();
|
||||||
info.setPersistent(dataIn.readBoolean());
|
info.Persistent = dataIn.ReadBoolean();
|
||||||
info.setExpiration(dataIn.readLong());
|
info.Expiration = dataIn.ReadInt64();
|
||||||
info.setPriority(dataIn.readByte());
|
info.Priority = dataIn.ReadByte();
|
||||||
info.setReplyTo((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.ReplyTo = ReadDestination(dataIn);
|
||||||
info.setTimestamp(dataIn.readLong());
|
info.Timestamp = dataIn.ReadInt64();
|
||||||
info.setType(dataIn.readUTF());
|
info.Type = dataIn.ReadString();
|
||||||
info.setContent((org.activeio.ByteSequence) readObject(dataIn));
|
info.Content = ReadByteSequence(dataIn);
|
||||||
info.setMarshalledProperties((org.activeio.ByteSequence) readObject(dataIn));
|
info.MarshalledProperties = ReadByteSequence(dataIn);
|
||||||
info.setDataStructure((org.apache.activemq.command.DataStructure) readObject(dataIn));
|
info.DataStructure = ReadDataStructure(dataIn);
|
||||||
info.setTargetConsumerId((org.apache.activemq.command.ConsumerId) readObject(dataIn));
|
info.TargetConsumerId = ReadConsumerId(dataIn);
|
||||||
info.setCompressed(dataIn.readBoolean());
|
info.Compressed = dataIn.ReadBoolean();
|
||||||
info.setRedeliveryCounter(dataIn.readInt());
|
info.RedeliveryCounter = dataIn.ReadInt32();
|
||||||
info.setBrokerPath((org.apache.activemq.command.BrokerId[]) readObject(dataIn));
|
info.BrokerPath = ReadBrokerIds(dataIn);
|
||||||
info.setArrival(dataIn.readLong());
|
info.Arrival = dataIn.ReadInt64();
|
||||||
info.setUserID(dataIn.readUTF());
|
info.UserID = dataIn.ReadString();
|
||||||
info.setRecievedByDFBridge(dataIn.readBoolean());
|
info.RecievedByDFBridge = dataIn.ReadBoolean();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
Message info = (Message) command;
|
Message info = (Message) command;
|
||||||
writeObject(info.getProducerId(), dataOut);
|
WriteProducerId(info.ProducerId, dataOut);
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
writeObject(info.getTransactionId(), dataOut);
|
WriteTransactionId(info.TransactionId, dataOut);
|
||||||
writeObject(info.getOriginalDestination(), dataOut);
|
WriteDestination(info.OriginalDestination, dataOut);
|
||||||
writeObject(info.getMessageId(), dataOut);
|
WriteMessageId(info.MessageId, dataOut);
|
||||||
writeObject(info.getOriginalTransactionId(), dataOut);
|
WriteTransactionId(info.OriginalTransactionId, dataOut);
|
||||||
writeUTF(info.getGroupID(), dataOut);
|
dataOut.Write(info.GroupID);
|
||||||
dataOut.writeInt(info.getGroupSequence());
|
dataOut.Write(info.GroupSequence);
|
||||||
writeUTF(info.getCorrelationId(), dataOut);
|
dataOut.Write(info.CorrelationId);
|
||||||
dataOut.writeBoolean(info.isPersistent());
|
dataOut.Write(info.Persistent);
|
||||||
dataOut.writeLong(info.getExpiration());
|
dataOut.Write(info.Expiration);
|
||||||
dataOut.writeByte(info.getPriority());
|
dataOut.Write(info.Priority);
|
||||||
writeObject(info.getReplyTo(), dataOut);
|
WriteDestination(info.ReplyTo, dataOut);
|
||||||
dataOut.writeLong(info.getTimestamp());
|
dataOut.Write(info.Timestamp);
|
||||||
writeUTF(info.getType(), dataOut);
|
dataOut.Write(info.Type);
|
||||||
writeObject(info.getContent(), dataOut);
|
WriteByteSequence(info.Content, dataOut);
|
||||||
writeObject(info.getMarshalledProperties(), dataOut);
|
WriteByteSequence(info.MarshalledProperties, dataOut);
|
||||||
writeObject(info.getDataStructure(), dataOut);
|
WriteDataStructure(info.DataStructure, dataOut);
|
||||||
writeObject(info.getTargetConsumerId(), dataOut);
|
WriteConsumerId(info.TargetConsumerId, dataOut);
|
||||||
dataOut.writeBoolean(info.isCompressed());
|
dataOut.Write(info.Compressed);
|
||||||
dataOut.writeInt(info.getRedeliveryCounter());
|
dataOut.Write(info.RedeliveryCounter);
|
||||||
writeObject(info.getBrokerPath(), dataOut);
|
dataOut.WriteBrokerIds(info.BrokerPath);
|
||||||
dataOut.writeLong(info.getArrival());
|
dataOut.Write(info.Arrival);
|
||||||
writeUTF(info.getUserID(), dataOut);
|
dataOut.Write(info.UserID);
|
||||||
dataOut.writeBoolean(info.isRecievedByDFBridge());
|
dataOut.Write(info.RecievedByDFBridge);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class ProducerIdMarshaller : AbstractCommandMarshaller
|
public class ProducerIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ProducerId();
|
return new ProducerId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ProducerId info = (ProducerId) command;
|
ProducerId info = (ProducerId) command;
|
||||||
info.setConnectionId(dataIn.readUTF());
|
info.ConnectionId = dataIn.ReadString();
|
||||||
info.setProducerId(dataIn.readLong());
|
info.ProducerIdValue = dataIn.ReadInt64();
|
||||||
info.setSessionId(dataIn.readLong());
|
info.SessionId = dataIn.ReadInt64();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ProducerId info = (ProducerId) command;
|
ProducerId info = (ProducerId) command;
|
||||||
writeUTF(info.getConnectionId(), dataOut);
|
dataOut.Write(info.ConnectionId);
|
||||||
dataOut.writeLong(info.getProducerId());
|
dataOut.Write(info.ProducerIdValue);
|
||||||
dataOut.writeLong(info.getSessionId());
|
dataOut.Write(info.SessionId);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class ProducerInfoMarshaller : AbstractCommandMarshaller
|
public class ProducerInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ProducerInfo();
|
return new ProducerInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
ProducerInfo info = (ProducerInfo) command;
|
ProducerInfo info = (ProducerInfo) command;
|
||||||
info.setProducerId((org.apache.activemq.command.ProducerId) readObject(dataIn));
|
info.ProducerId = ReadProducerId(dataIn);
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setBrokerPath((org.apache.activemq.command.BrokerId[]) readObject(dataIn));
|
info.BrokerPath = ReadBrokerIds(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
ProducerInfo info = (ProducerInfo) command;
|
ProducerInfo info = (ProducerInfo) command;
|
||||||
writeObject(info.getProducerId(), dataOut);
|
WriteProducerId(info.ProducerId, dataOut);
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
writeObject(info.getBrokerPath(), dataOut);
|
dataOut.WriteBrokerIds(info.BrokerPath);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class RemoveInfoMarshaller : AbstractCommandMarshaller
|
public class RemoveInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new RemoveInfo();
|
return new RemoveInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
RemoveInfo info = (RemoveInfo) command;
|
RemoveInfo info = (RemoveInfo) command;
|
||||||
info.setObjectId((org.apache.activemq.command.DataStructure) readObject(dataIn));
|
info.ObjectId = ReadDataStructure(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
RemoveInfo info = (RemoveInfo) command;
|
RemoveInfo info = (RemoveInfo) command;
|
||||||
writeObject(info.getObjectId(), dataOut);
|
WriteDataStructure(info.ObjectId, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class RemoveSubscriptionInfoMarshaller : AbstractCommandMarshaller
|
public class RemoveSubscriptionInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new RemoveSubscriptionInfo();
|
return new RemoveSubscriptionInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) command;
|
RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) command;
|
||||||
info.setConnectionId((org.apache.activemq.command.ConnectionId) readObject(dataIn));
|
info.ConnectionId = ReadConnectionId(dataIn);
|
||||||
info.setSubcriptionName(dataIn.readUTF());
|
info.SubcriptionName = dataIn.ReadString();
|
||||||
info.setClientId(dataIn.readUTF());
|
info.ClientId = dataIn.ReadString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) command;
|
RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) command;
|
||||||
writeObject(info.getConnectionId(), dataOut);
|
WriteConnectionId(info.ConnectionId, dataOut);
|
||||||
writeUTF(info.getSubcriptionName(), dataOut);
|
dataOut.Write(info.SubcriptionName);
|
||||||
writeUTF(info.getClientId(), dataOut);
|
dataOut.Write(info.ClientId);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class ResponseMarshaller : AbstractCommandMarshaller
|
public class ResponseMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new Response();
|
return new Response();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
Response info = (Response) command;
|
Response info = (Response) command;
|
||||||
info.setCorrelationId(dataIn.readShort());
|
info.CorrelationId = dataIn.ReadInt16();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
Response info = (Response) command;
|
Response info = (Response) command;
|
||||||
dataOut.writeShort(info.getCorrelationId());
|
dataOut.Write(info.CorrelationId);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,23 +20,26 @@ namespace OpenWire.Core.IO
|
||||||
public class SessionIdMarshaller : AbstractCommandMarshaller
|
public class SessionIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new SessionId();
|
return new SessionId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
SessionId info = (SessionId) command;
|
SessionId info = (SessionId) command;
|
||||||
info.setConnectionId(dataIn.readUTF());
|
info.ConnectionId = dataIn.ReadString();
|
||||||
info.setSessionId(dataIn.readLong());
|
info.SessionIdValue = dataIn.ReadInt64();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
SessionId info = (SessionId) command;
|
SessionId info = (SessionId) command;
|
||||||
writeUTF(info.getConnectionId(), dataOut);
|
dataOut.Write(info.ConnectionId);
|
||||||
dataOut.writeLong(info.getSessionId());
|
dataOut.Write(info.SessionIdValue);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,21 +20,24 @@ namespace OpenWire.Core.IO
|
||||||
public class SessionInfoMarshaller : AbstractCommandMarshaller
|
public class SessionInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new SessionInfo();
|
return new SessionInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
SessionInfo info = (SessionInfo) command;
|
SessionInfo info = (SessionInfo) command;
|
||||||
info.setSessionId((org.apache.activemq.command.SessionId) readObject(dataIn));
|
info.SessionId = ReadSessionId(dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
SessionInfo info = (SessionInfo) command;
|
SessionInfo info = (SessionInfo) command;
|
||||||
writeObject(info.getSessionId(), dataOut);
|
WriteSessionId(info.SessionId, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class ShutdownInfoMarshaller : AbstractCommandMarshaller
|
public class ShutdownInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new ShutdownInfo();
|
return new ShutdownInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
ShutdownInfo info = (ShutdownInfo) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
ShutdownInfo info = (ShutdownInfo) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,27 +20,30 @@ namespace OpenWire.Core.IO
|
||||||
public class SubscriptionInfoMarshaller : AbstractCommandMarshaller
|
public class SubscriptionInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new SubscriptionInfo();
|
return new SubscriptionInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
SubscriptionInfo info = (SubscriptionInfo) command;
|
SubscriptionInfo info = (SubscriptionInfo) command;
|
||||||
info.setClientId(dataIn.readUTF());
|
info.ClientId = dataIn.ReadString();
|
||||||
info.setDestination((org.apache.activemq.command.ActiveMQDestination) readObject(dataIn));
|
info.Destination = ReadDestination(dataIn);
|
||||||
info.setSelector(dataIn.readUTF());
|
info.Selector = dataIn.ReadString();
|
||||||
info.setSubcriptionName(dataIn.readUTF());
|
info.SubcriptionName = dataIn.ReadString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
SubscriptionInfo info = (SubscriptionInfo) command;
|
SubscriptionInfo info = (SubscriptionInfo) command;
|
||||||
writeUTF(info.getClientId(), dataOut);
|
dataOut.Write(info.ClientId);
|
||||||
writeObject(info.getDestination(), dataOut);
|
WriteDestination(info.Destination, dataOut);
|
||||||
writeUTF(info.getSelector(), dataOut);
|
dataOut.Write(info.Selector);
|
||||||
writeUTF(info.getSubcriptionName(), dataOut);
|
dataOut.Write(info.SubcriptionName);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,18 @@ namespace OpenWire.Core.IO
|
||||||
public class TransactionIdMarshaller : AbstractCommandMarshaller
|
public class TransactionIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new TransactionId();
|
return new TransactionId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
TransactionId info = (TransactionId) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
TransactionId info = (TransactionId) command;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class TransactionInfoMarshaller : AbstractCommandMarshaller
|
public class TransactionInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new TransactionInfo();
|
return new TransactionInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
TransactionInfo info = (TransactionInfo) command;
|
TransactionInfo info = (TransactionInfo) command;
|
||||||
info.setConnectionId((org.apache.activemq.command.ConnectionId) readObject(dataIn));
|
info.ConnectionId = ReadConnectionId(dataIn);
|
||||||
info.setTransactionId((org.apache.activemq.command.TransactionId) readObject(dataIn));
|
info.TransactionId = ReadTransactionId(dataIn);
|
||||||
info.setType(dataIn.readByte());
|
info.Type = dataIn.ReadByte();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
TransactionInfo info = (TransactionInfo) command;
|
TransactionInfo info = (TransactionInfo) command;
|
||||||
writeObject(info.getConnectionId(), dataOut);
|
WriteConnectionId(info.ConnectionId, dataOut);
|
||||||
writeObject(info.getTransactionId(), dataOut);
|
WriteTransactionId(info.TransactionId, dataOut);
|
||||||
dataOut.writeByte(info.getType());
|
dataOut.Write(info.Type);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class WireFormatInfoMarshaller : AbstractCommandMarshaller
|
public class WireFormatInfoMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new WireFormatInfo();
|
return new WireFormatInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
WireFormatInfo info = (WireFormatInfo) command;
|
WireFormatInfo info = (WireFormatInfo) command;
|
||||||
info.setMagic((byte[]) readObject(dataIn));
|
info.Magic = Readbyte[](dataIn);
|
||||||
info.setVersion(dataIn.readInt());
|
info.Version = dataIn.ReadInt32();
|
||||||
info.setOptions(dataIn.readInt());
|
info.Options = dataIn.ReadInt32();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
WireFormatInfo info = (WireFormatInfo) command;
|
WireFormatInfo info = (WireFormatInfo) command;
|
||||||
writeObject(info.getMagic(), dataOut);
|
Writebyte[](info.Magic, dataOut);
|
||||||
dataOut.writeInt(info.getVersion());
|
dataOut.Write(info.Version);
|
||||||
dataOut.writeInt(info.getOptions());
|
dataOut.Write(info.Options);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,25 +20,28 @@ namespace OpenWire.Core.IO
|
||||||
public class XATransactionIdMarshaller : AbstractCommandMarshaller
|
public class XATransactionIdMarshaller : AbstractCommandMarshaller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public override Command CreateCommand() {
|
public override Command CreateCommand() {
|
||||||
return new XATransactionId();
|
return new XATransactionId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
public override void BuildCommand(Command command, BinaryReader dataIn) {
|
||||||
base.BuildCommand(command, dataIn);
|
base.BuildCommand(command, dataIn);
|
||||||
|
|
||||||
XATransactionId info = (XATransactionId) command;
|
XATransactionId info = (XATransactionId) command;
|
||||||
info.setFormatId(dataIn.readInt());
|
info.FormatId = dataIn.ReadInt32();
|
||||||
info.setGlobalTransactionId((byte[]) readObject(dataIn));
|
info.GlobalTransactionId = Readbyte[](dataIn);
|
||||||
info.setBranchQualifier((byte[]) readObject(dataIn));
|
info.BranchQualifier = Readbyte[](dataIn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
public override void WriteCommand(Command command, BinaryWriter dataOut) {
|
||||||
base.WriteCommand(command, dataOut);
|
base.WriteCommand(command, dataOut);
|
||||||
|
|
||||||
XATransactionId info = (XATransactionId) command;
|
XATransactionId info = (XATransactionId) command;
|
||||||
dataOut.writeInt(info.getFormatId());
|
dataOut.Write(info.FormatId);
|
||||||
writeObject(info.getGlobalTransactionId(), dataOut);
|
Writebyte[](info.GlobalTransactionId, dataOut);
|
||||||
writeObject(info.getBranchQualifier(), dataOut);
|
Writebyte[](info.BranchQualifier, dataOut);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
using System;
|
using System;
|
||||||
|
using OpenWire.Core.Commands;
|
||||||
|
|
||||||
namespace OpenWire.Core
|
namespace OpenWire.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for ActiveMQQueue.
|
/// Summary description for Queue.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ActiveMQQueue : ActiveMQDestination {
|
public class Queue : Destination {
|
||||||
public ActiveMQQueue() : base(){}
|
public Queue() : base(){}
|
||||||
public ActiveMQQueue(String name) : base(name){}
|
public Queue(String name) : base(name){}
|
||||||
|
|
||||||
public String GetQueueName() {
|
public String GetQueueName() {
|
||||||
return base.GetPhysicalName();
|
return base.GetPhysicalName();
|
|
@ -1,14 +1,15 @@
|
||||||
using System;
|
using System;
|
||||||
|
using OpenWire.Core.Commands;
|
||||||
|
|
||||||
namespace OpenWire.Core
|
namespace OpenWire.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for ActiveMQTopic.
|
/// Summary description for Topic.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ActiveMQTopic : ActiveMQDestination
|
public class Topic : Destination
|
||||||
{
|
{
|
||||||
public ActiveMQTopic(): base() {}
|
public Topic(): base() {}
|
||||||
public ActiveMQTopic(String name):base(name){}
|
public Topic(String name):base(name){}
|
||||||
|
|
||||||
public String GetTopicName()
|
public String GetTopicName()
|
||||||
{
|
{
|
Loading…
Reference in New Issue