mirror of https://github.com/apache/activemq.git
Added latest generated C++ commands and marshalling code
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
60c65ba7ff
commit
cc7678ee9b
|
@ -5,6 +5,11 @@
|
|||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
|
@ -13,5 +18,8 @@
|
|||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/ActiveMQObjectMessage.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
ActiveMQObjectMessage::ActiveMQObjectMessage()
|
||||
{
|
||||
}
|
||||
|
||||
ActiveMQObjectMessage::~ActiveMQObjectMessage()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQObjectMessage_hpp_
|
||||
#define ActiveMQObjectMessage_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/ActiveMQMessage.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class ActiveMQObjectMessage : public ActiveMQMessage
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
const static int TYPE = 26;
|
||||
|
||||
public:
|
||||
ActiveMQObjectMessage() ;
|
||||
virtual ~ActiveMQObjectMessage() ;
|
||||
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*ActiveMQObjectMessage_hpp_*/
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/ConnectionError.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
ConnectionError::ConnectionError()
|
||||
{
|
||||
this->exception = NULL ;
|
||||
this->connectionId = NULL ;
|
||||
}
|
||||
|
||||
ConnectionError::~ConnectionError()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BrokerError ConnectionError::getException()
|
||||
{
|
||||
return exception ;
|
||||
}
|
||||
|
||||
void ConnectionError::setException(BrokerError exception)
|
||||
{
|
||||
this->exception = exception ;
|
||||
}
|
||||
|
||||
|
||||
p<ConnectionId> ConnectionError::getConnectionId()
|
||||
{
|
||||
return connectionId ;
|
||||
}
|
||||
|
||||
void ConnectionError::setConnectionId(p<ConnectionId> connectionId)
|
||||
{
|
||||
this->connectionId = connectionId ;
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ConnectionError_hpp_
|
||||
#define ConnectionError_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class ConnectionError : public BaseCommand
|
||||
{
|
||||
private:
|
||||
BrokerError exception ;
|
||||
p<ConnectionId> connectionId ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 16;
|
||||
|
||||
public:
|
||||
ConnectionError() ;
|
||||
virtual ~ConnectionError() ;
|
||||
|
||||
|
||||
virtual BrokerError getException() ;
|
||||
virtual void setException(BrokerError exception) ;
|
||||
|
||||
virtual p<ConnectionId> getConnectionId() ;
|
||||
virtual void setConnectionId(p<ConnectionId> connectionId) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*ConnectionError_hpp_*/
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/ControlCommand.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
ControlCommand::ControlCommand()
|
||||
{
|
||||
this->command = NULL ;
|
||||
}
|
||||
|
||||
ControlCommand::~ControlCommand()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<string> ControlCommand::getCommand()
|
||||
{
|
||||
return command ;
|
||||
}
|
||||
|
||||
void ControlCommand::setCommand(p<string> command)
|
||||
{
|
||||
this->command = command ;
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ControlCommand_hpp_
|
||||
#define ControlCommand_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class ControlCommand : public BaseCommand
|
||||
{
|
||||
private:
|
||||
p<string> command ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 14;
|
||||
|
||||
public:
|
||||
ControlCommand() ;
|
||||
virtual ~ControlCommand() ;
|
||||
|
||||
|
||||
virtual p<string> getCommand() ;
|
||||
virtual void setCommand(p<string> command) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*ControlCommand_hpp_*/
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/DataArrayResponse.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
DataArrayResponse::DataArrayResponse()
|
||||
{
|
||||
this->data = NULL ;
|
||||
}
|
||||
|
||||
DataArrayResponse::~DataArrayResponse()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
DataStructure[] DataArrayResponse::getData()
|
||||
{
|
||||
return data ;
|
||||
}
|
||||
|
||||
void DataArrayResponse::setData(DataStructure[] data)
|
||||
{
|
||||
this->data = data ;
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef DataArrayResponse_hpp_
|
||||
#define DataArrayResponse_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/Response.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class DataArrayResponse : public Response
|
||||
{
|
||||
private:
|
||||
DataStructure[] data ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 33;
|
||||
|
||||
public:
|
||||
DataArrayResponse() ;
|
||||
virtual ~DataArrayResponse() ;
|
||||
|
||||
|
||||
virtual DataStructure[] getData() ;
|
||||
virtual void setData(DataStructure[] data) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*DataArrayResponse_hpp_*/
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/DataResponse.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
DataResponse::DataResponse()
|
||||
{
|
||||
this->data = NULL ;
|
||||
}
|
||||
|
||||
DataResponse::~DataResponse()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
DataStructure DataResponse::getData()
|
||||
{
|
||||
return data ;
|
||||
}
|
||||
|
||||
void DataResponse::setData(DataStructure data)
|
||||
{
|
||||
this->data = data ;
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef DataResponse_hpp_
|
||||
#define DataResponse_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/Response.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class DataResponse : public Response
|
||||
{
|
||||
private:
|
||||
DataStructure data ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 32;
|
||||
|
||||
public:
|
||||
DataResponse() ;
|
||||
virtual ~DataResponse() ;
|
||||
|
||||
|
||||
virtual DataStructure getData() ;
|
||||
virtual void setData(DataStructure data) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*DataResponse_hpp_*/
|
|
@ -0,0 +1,97 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/DestinationInfo.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
DestinationInfo::DestinationInfo()
|
||||
{
|
||||
this->connectionId = NULL ;
|
||||
this->destination = NULL ;
|
||||
this->operationType = NULL ;
|
||||
this->timeout = NULL ;
|
||||
this->brokerPath = NULL ;
|
||||
}
|
||||
|
||||
DestinationInfo::~DestinationInfo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<ConnectionId> DestinationInfo::getConnectionId()
|
||||
{
|
||||
return connectionId ;
|
||||
}
|
||||
|
||||
void DestinationInfo::setConnectionId(p<ConnectionId> connectionId)
|
||||
{
|
||||
this->connectionId = connectionId ;
|
||||
}
|
||||
|
||||
|
||||
ActiveMQDestination DestinationInfo::getDestination()
|
||||
{
|
||||
return destination ;
|
||||
}
|
||||
|
||||
void DestinationInfo::setDestination(ActiveMQDestination destination)
|
||||
{
|
||||
this->destination = destination ;
|
||||
}
|
||||
|
||||
|
||||
byte DestinationInfo::getOperationType()
|
||||
{
|
||||
return operationType ;
|
||||
}
|
||||
|
||||
void DestinationInfo::setOperationType(byte operationType)
|
||||
{
|
||||
this->operationType = operationType ;
|
||||
}
|
||||
|
||||
|
||||
long DestinationInfo::getTimeout()
|
||||
{
|
||||
return timeout ;
|
||||
}
|
||||
|
||||
void DestinationInfo::setTimeout(long timeout)
|
||||
{
|
||||
this->timeout = timeout ;
|
||||
}
|
||||
|
||||
|
||||
BrokerId[] DestinationInfo::getBrokerPath()
|
||||
{
|
||||
return brokerPath ;
|
||||
}
|
||||
|
||||
void DestinationInfo::setBrokerPath(BrokerId[] brokerPath)
|
||||
{
|
||||
this->brokerPath = brokerPath ;
|
||||
}
|
|
@ -0,0 +1,95 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef DestinationInfo_hpp_
|
||||
#define DestinationInfo_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class DestinationInfo : public BaseCommand
|
||||
{
|
||||
private:
|
||||
p<ConnectionId> connectionId ;
|
||||
ActiveMQDestination destination ;
|
||||
byte operationType ;
|
||||
long timeout ;
|
||||
BrokerId[] brokerPath ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 8;
|
||||
|
||||
public:
|
||||
DestinationInfo() ;
|
||||
virtual ~DestinationInfo() ;
|
||||
|
||||
|
||||
virtual p<ConnectionId> getConnectionId() ;
|
||||
virtual void setConnectionId(p<ConnectionId> connectionId) ;
|
||||
|
||||
virtual ActiveMQDestination getDestination() ;
|
||||
virtual void setDestination(ActiveMQDestination destination) ;
|
||||
|
||||
virtual byte getOperationType() ;
|
||||
virtual void setOperationType(byte operationType) ;
|
||||
|
||||
virtual long getTimeout() ;
|
||||
virtual void setTimeout(long timeout) ;
|
||||
|
||||
virtual BrokerId[] getBrokerPath() ;
|
||||
virtual void setBrokerPath(BrokerId[] brokerPath) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*DestinationInfo_hpp_*/
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/DiscoveryEvent.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
DiscoveryEvent::DiscoveryEvent()
|
||||
{
|
||||
this->serviceName = NULL ;
|
||||
this->brokerName = NULL ;
|
||||
}
|
||||
|
||||
DiscoveryEvent::~DiscoveryEvent()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<string> DiscoveryEvent::getServiceName()
|
||||
{
|
||||
return serviceName ;
|
||||
}
|
||||
|
||||
void DiscoveryEvent::setServiceName(p<string> serviceName)
|
||||
{
|
||||
this->serviceName = serviceName ;
|
||||
}
|
||||
|
||||
|
||||
p<string> DiscoveryEvent::getBrokerName()
|
||||
{
|
||||
return brokerName ;
|
||||
}
|
||||
|
||||
void DiscoveryEvent::setBrokerName(p<string> brokerName)
|
||||
{
|
||||
this->brokerName = brokerName ;
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef DiscoveryEvent_hpp_
|
||||
#define DiscoveryEvent_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class DiscoveryEvent : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
p<string> serviceName ;
|
||||
p<string> brokerName ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 40;
|
||||
|
||||
public:
|
||||
DiscoveryEvent() ;
|
||||
virtual ~DiscoveryEvent() ;
|
||||
|
||||
|
||||
virtual p<string> getServiceName() ;
|
||||
virtual void setServiceName(p<string> serviceName) ;
|
||||
|
||||
virtual p<string> getBrokerName() ;
|
||||
virtual void setBrokerName(p<string> brokerName) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*DiscoveryEvent_hpp_*/
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/FlushCommand.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
FlushCommand::FlushCommand()
|
||||
{
|
||||
}
|
||||
|
||||
FlushCommand::~FlushCommand()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef FlushCommand_hpp_
|
||||
#define FlushCommand_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class FlushCommand : public BaseCommand
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
const static int TYPE = 15;
|
||||
|
||||
public:
|
||||
FlushCommand() ;
|
||||
virtual ~FlushCommand() ;
|
||||
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*FlushCommand_hpp_*/
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/IntegerResponse.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
IntegerResponse::IntegerResponse()
|
||||
{
|
||||
this->result = NULL ;
|
||||
}
|
||||
|
||||
IntegerResponse::~IntegerResponse()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
int IntegerResponse::getResult()
|
||||
{
|
||||
return result ;
|
||||
}
|
||||
|
||||
void IntegerResponse::setResult(int result)
|
||||
{
|
||||
this->result = result ;
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef IntegerResponse_hpp_
|
||||
#define IntegerResponse_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/Response.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class IntegerResponse : public Response
|
||||
{
|
||||
private:
|
||||
int result ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 34;
|
||||
|
||||
public:
|
||||
IntegerResponse() ;
|
||||
virtual ~IntegerResponse() ;
|
||||
|
||||
|
||||
virtual int getResult() ;
|
||||
virtual void setResult(int result) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*IntegerResponse_hpp_*/
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/JournalQueueAck.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
JournalQueueAck::JournalQueueAck()
|
||||
{
|
||||
this->destination = NULL ;
|
||||
this->messageAck = NULL ;
|
||||
}
|
||||
|
||||
JournalQueueAck::~JournalQueueAck()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ActiveMQDestination JournalQueueAck::getDestination()
|
||||
{
|
||||
return destination ;
|
||||
}
|
||||
|
||||
void JournalQueueAck::setDestination(ActiveMQDestination destination)
|
||||
{
|
||||
this->destination = destination ;
|
||||
}
|
||||
|
||||
|
||||
MessageAck JournalQueueAck::getMessageAck()
|
||||
{
|
||||
return messageAck ;
|
||||
}
|
||||
|
||||
void JournalQueueAck::setMessageAck(MessageAck messageAck)
|
||||
{
|
||||
this->messageAck = messageAck ;
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef JournalQueueAck_hpp_
|
||||
#define JournalQueueAck_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class JournalQueueAck : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
ActiveMQDestination destination ;
|
||||
MessageAck messageAck ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 52;
|
||||
|
||||
public:
|
||||
JournalQueueAck() ;
|
||||
virtual ~JournalQueueAck() ;
|
||||
|
||||
|
||||
virtual ActiveMQDestination getDestination() ;
|
||||
virtual void setDestination(ActiveMQDestination destination) ;
|
||||
|
||||
virtual MessageAck getMessageAck() ;
|
||||
virtual void setMessageAck(MessageAck messageAck) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*JournalQueueAck_hpp_*/
|
|
@ -0,0 +1,109 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/JournalTopicAck.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
JournalTopicAck::JournalTopicAck()
|
||||
{
|
||||
this->destination = NULL ;
|
||||
this->messageId = NULL ;
|
||||
this->messageSequenceId = NULL ;
|
||||
this->subscritionName = NULL ;
|
||||
this->clientId = NULL ;
|
||||
this->transactionId = NULL ;
|
||||
}
|
||||
|
||||
JournalTopicAck::~JournalTopicAck()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ActiveMQDestination JournalTopicAck::getDestination()
|
||||
{
|
||||
return destination ;
|
||||
}
|
||||
|
||||
void JournalTopicAck::setDestination(ActiveMQDestination destination)
|
||||
{
|
||||
this->destination = destination ;
|
||||
}
|
||||
|
||||
|
||||
p<MessageId> JournalTopicAck::getMessageId()
|
||||
{
|
||||
return messageId ;
|
||||
}
|
||||
|
||||
void JournalTopicAck::setMessageId(p<MessageId> messageId)
|
||||
{
|
||||
this->messageId = messageId ;
|
||||
}
|
||||
|
||||
|
||||
long JournalTopicAck::getMessageSequenceId()
|
||||
{
|
||||
return messageSequenceId ;
|
||||
}
|
||||
|
||||
void JournalTopicAck::setMessageSequenceId(long messageSequenceId)
|
||||
{
|
||||
this->messageSequenceId = messageSequenceId ;
|
||||
}
|
||||
|
||||
|
||||
p<string> JournalTopicAck::getSubscritionName()
|
||||
{
|
||||
return subscritionName ;
|
||||
}
|
||||
|
||||
void JournalTopicAck::setSubscritionName(p<string> subscritionName)
|
||||
{
|
||||
this->subscritionName = subscritionName ;
|
||||
}
|
||||
|
||||
|
||||
p<string> JournalTopicAck::getClientId()
|
||||
{
|
||||
return clientId ;
|
||||
}
|
||||
|
||||
void JournalTopicAck::setClientId(p<string> clientId)
|
||||
{
|
||||
this->clientId = clientId ;
|
||||
}
|
||||
|
||||
|
||||
p<TransactionId> JournalTopicAck::getTransactionId()
|
||||
{
|
||||
return transactionId ;
|
||||
}
|
||||
|
||||
void JournalTopicAck::setTransactionId(p<TransactionId> transactionId)
|
||||
{
|
||||
this->transactionId = transactionId ;
|
||||
}
|
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef JournalTopicAck_hpp_
|
||||
#define JournalTopicAck_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class JournalTopicAck : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
ActiveMQDestination destination ;
|
||||
p<MessageId> messageId ;
|
||||
long messageSequenceId ;
|
||||
p<string> subscritionName ;
|
||||
p<string> clientId ;
|
||||
p<TransactionId> transactionId ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 50;
|
||||
|
||||
public:
|
||||
JournalTopicAck() ;
|
||||
virtual ~JournalTopicAck() ;
|
||||
|
||||
|
||||
virtual ActiveMQDestination getDestination() ;
|
||||
virtual void setDestination(ActiveMQDestination destination) ;
|
||||
|
||||
virtual p<MessageId> getMessageId() ;
|
||||
virtual void setMessageId(p<MessageId> messageId) ;
|
||||
|
||||
virtual long getMessageSequenceId() ;
|
||||
virtual void setMessageSequenceId(long messageSequenceId) ;
|
||||
|
||||
virtual p<string> getSubscritionName() ;
|
||||
virtual void setSubscritionName(p<string> subscritionName) ;
|
||||
|
||||
virtual p<string> getClientId() ;
|
||||
virtual void setClientId(p<string> clientId) ;
|
||||
|
||||
virtual p<TransactionId> getTransactionId() ;
|
||||
virtual void setTransactionId(p<TransactionId> transactionId) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*JournalTopicAck_hpp_*/
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/JournalTrace.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
JournalTrace::JournalTrace()
|
||||
{
|
||||
this->message = NULL ;
|
||||
}
|
||||
|
||||
JournalTrace::~JournalTrace()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<string> JournalTrace::getMessage()
|
||||
{
|
||||
return message ;
|
||||
}
|
||||
|
||||
void JournalTrace::setMessage(p<string> message)
|
||||
{
|
||||
this->message = message ;
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef JournalTrace_hpp_
|
||||
#define JournalTrace_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class JournalTrace : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
p<string> message ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 53;
|
||||
|
||||
public:
|
||||
JournalTrace() ;
|
||||
virtual ~JournalTrace() ;
|
||||
|
||||
|
||||
virtual p<string> getMessage() ;
|
||||
virtual void setMessage(p<string> message) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*JournalTrace_hpp_*/
|
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/JournalTransaction.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
JournalTransaction::JournalTransaction()
|
||||
{
|
||||
this->transactionId = NULL ;
|
||||
this->type = NULL ;
|
||||
this->wasPrepared = NULL ;
|
||||
}
|
||||
|
||||
JournalTransaction::~JournalTransaction()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<TransactionId> JournalTransaction::getTransactionId()
|
||||
{
|
||||
return transactionId ;
|
||||
}
|
||||
|
||||
void JournalTransaction::setTransactionId(p<TransactionId> transactionId)
|
||||
{
|
||||
this->transactionId = transactionId ;
|
||||
}
|
||||
|
||||
|
||||
byte JournalTransaction::getType()
|
||||
{
|
||||
return type ;
|
||||
}
|
||||
|
||||
void JournalTransaction::setType(byte type)
|
||||
{
|
||||
this->type = type ;
|
||||
}
|
||||
|
||||
|
||||
bool JournalTransaction::getWasPrepared()
|
||||
{
|
||||
return wasPrepared ;
|
||||
}
|
||||
|
||||
void JournalTransaction::setWasPrepared(bool wasPrepared)
|
||||
{
|
||||
this->wasPrepared = wasPrepared ;
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef JournalTransaction_hpp_
|
||||
#define JournalTransaction_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class JournalTransaction : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
p<TransactionId> transactionId ;
|
||||
byte type ;
|
||||
bool wasPrepared ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 54;
|
||||
|
||||
public:
|
||||
JournalTransaction() ;
|
||||
virtual ~JournalTransaction() ;
|
||||
|
||||
|
||||
virtual p<TransactionId> getTransactionId() ;
|
||||
virtual void setTransactionId(p<TransactionId> transactionId) ;
|
||||
|
||||
virtual byte getType() ;
|
||||
virtual void setType(byte type) ;
|
||||
|
||||
virtual bool getWasPrepared() ;
|
||||
virtual void setWasPrepared(bool wasPrepared) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*JournalTransaction_hpp_*/
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/KeepAliveInfo.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
KeepAliveInfo::KeepAliveInfo()
|
||||
{
|
||||
}
|
||||
|
||||
KeepAliveInfo::~KeepAliveInfo()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef KeepAliveInfo_hpp_
|
||||
#define KeepAliveInfo_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class KeepAliveInfo : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
const static int TYPE = 10;
|
||||
|
||||
public:
|
||||
KeepAliveInfo() ;
|
||||
virtual ~KeepAliveInfo() ;
|
||||
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*KeepAliveInfo_hpp_*/
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/LocalTransactionId.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
LocalTransactionId::LocalTransactionId()
|
||||
{
|
||||
this->value = NULL ;
|
||||
this->connectionId = NULL ;
|
||||
}
|
||||
|
||||
LocalTransactionId::~LocalTransactionId()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
long LocalTransactionId::getValue()
|
||||
{
|
||||
return value ;
|
||||
}
|
||||
|
||||
void LocalTransactionId::setValue(long value)
|
||||
{
|
||||
this->value = value ;
|
||||
}
|
||||
|
||||
|
||||
p<ConnectionId> LocalTransactionId::getConnectionId()
|
||||
{
|
||||
return connectionId ;
|
||||
}
|
||||
|
||||
void LocalTransactionId::setConnectionId(p<ConnectionId> connectionId)
|
||||
{
|
||||
this->connectionId = connectionId ;
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef LocalTransactionId_hpp_
|
||||
#define LocalTransactionId_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/TransactionId.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class LocalTransactionId : public TransactionId
|
||||
{
|
||||
private:
|
||||
long value ;
|
||||
p<ConnectionId> connectionId ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 111;
|
||||
|
||||
public:
|
||||
LocalTransactionId() ;
|
||||
virtual ~LocalTransactionId() ;
|
||||
|
||||
|
||||
virtual long getValue() ;
|
||||
virtual void setValue(long value) ;
|
||||
|
||||
virtual p<ConnectionId> getConnectionId() ;
|
||||
virtual void setConnectionId(p<ConnectionId> connectionId) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*LocalTransactionId_hpp_*/
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/MessageDispatch.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
MessageDispatch::MessageDispatch()
|
||||
{
|
||||
this->consumerId = NULL ;
|
||||
this->destination = NULL ;
|
||||
this->message = NULL ;
|
||||
this->redeliveryCounter = NULL ;
|
||||
}
|
||||
|
||||
MessageDispatch::~MessageDispatch()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<ConsumerId> MessageDispatch::getConsumerId()
|
||||
{
|
||||
return consumerId ;
|
||||
}
|
||||
|
||||
void MessageDispatch::setConsumerId(p<ConsumerId> consumerId)
|
||||
{
|
||||
this->consumerId = consumerId ;
|
||||
}
|
||||
|
||||
|
||||
ActiveMQDestination MessageDispatch::getDestination()
|
||||
{
|
||||
return destination ;
|
||||
}
|
||||
|
||||
void MessageDispatch::setDestination(ActiveMQDestination destination)
|
||||
{
|
||||
this->destination = destination ;
|
||||
}
|
||||
|
||||
|
||||
Message MessageDispatch::getMessage()
|
||||
{
|
||||
return message ;
|
||||
}
|
||||
|
||||
void MessageDispatch::setMessage(Message message)
|
||||
{
|
||||
this->message = message ;
|
||||
}
|
||||
|
||||
|
||||
int MessageDispatch::getRedeliveryCounter()
|
||||
{
|
||||
return redeliveryCounter ;
|
||||
}
|
||||
|
||||
void MessageDispatch::setRedeliveryCounter(int redeliveryCounter)
|
||||
{
|
||||
this->redeliveryCounter = redeliveryCounter ;
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef MessageDispatch_hpp_
|
||||
#define MessageDispatch_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class MessageDispatch : public BaseCommand
|
||||
{
|
||||
private:
|
||||
p<ConsumerId> consumerId ;
|
||||
ActiveMQDestination destination ;
|
||||
Message message ;
|
||||
int redeliveryCounter ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 21;
|
||||
|
||||
public:
|
||||
MessageDispatch() ;
|
||||
virtual ~MessageDispatch() ;
|
||||
|
||||
|
||||
virtual p<ConsumerId> getConsumerId() ;
|
||||
virtual void setConsumerId(p<ConsumerId> consumerId) ;
|
||||
|
||||
virtual ActiveMQDestination getDestination() ;
|
||||
virtual void setDestination(ActiveMQDestination destination) ;
|
||||
|
||||
virtual Message getMessage() ;
|
||||
virtual void setMessage(Message message) ;
|
||||
|
||||
virtual int getRedeliveryCounter() ;
|
||||
virtual void setRedeliveryCounter(int redeliveryCounter) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*MessageDispatch_hpp_*/
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/MessageDispatchNotification.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* Marshalling code for Open Wire Format for MessageDispatchNotification
|
||||
*
|
||||
*
|
||||
* NOTE!: This file is autogenerated - do not modify!
|
||||
* if you need to make a change, please see the Groovy scripts in the
|
||||
* activemq-core module
|
||||
*
|
||||
*/
|
||||
MessageDispatchNotification::MessageDispatchNotification()
|
||||
{
|
||||
this->consumerId = NULL ;
|
||||
this->destination = NULL ;
|
||||
this->deliverySequenceId = NULL ;
|
||||
this->messageId = NULL ;
|
||||
}
|
||||
|
||||
MessageDispatchNotification::~MessageDispatchNotification()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<ConsumerId> MessageDispatchNotification::getConsumerId()
|
||||
{
|
||||
return consumerId ;
|
||||
}
|
||||
|
||||
void MessageDispatchNotification::setConsumerId(p<ConsumerId> consumerId)
|
||||
{
|
||||
this->consumerId = consumerId ;
|
||||
}
|
||||
|
||||
|
||||
ActiveMQDestination MessageDispatchNotification::getDestination()
|
||||
{
|
||||
return destination ;
|
||||
}
|
||||
|
||||
void MessageDispatchNotification::setDestination(ActiveMQDestination destination)
|
||||
{
|
||||
this->destination = destination ;
|
||||
}
|
||||
|
||||
|
||||
long MessageDispatchNotification::getDeliverySequenceId()
|
||||
{
|
||||
return deliverySequenceId ;
|
||||
}
|
||||
|
||||
void MessageDispatchNotification::setDeliverySequenceId(long deliverySequenceId)
|
||||
{
|
||||
this->deliverySequenceId = deliverySequenceId ;
|
||||
}
|
||||
|
||||
|
||||
p<MessageId> MessageDispatchNotification::getMessageId()
|
||||
{
|
||||
return messageId ;
|
||||
}
|
||||
|
||||
void MessageDispatchNotification::setMessageId(p<MessageId> messageId)
|
||||
{
|
||||
this->messageId = messageId ;
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef MessageDispatchNotification_hpp_
|
||||
#define MessageDispatchNotification_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* Marshalling code for Open Wire Format for MessageDispatchNotification
|
||||
*
|
||||
*
|
||||
* NOTE!: This file is autogenerated - do not modify!
|
||||
* if you need to make a change, please see the Groovy scripts in the
|
||||
* activemq-core module
|
||||
*
|
||||
*/
|
||||
class MessageDispatchNotification : public BaseCommand
|
||||
{
|
||||
private:
|
||||
p<ConsumerId> consumerId ;
|
||||
ActiveMQDestination destination ;
|
||||
long deliverySequenceId ;
|
||||
p<MessageId> messageId ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 90;
|
||||
|
||||
public:
|
||||
MessageDispatchNotification() ;
|
||||
virtual ~MessageDispatchNotification() ;
|
||||
|
||||
|
||||
virtual p<ConsumerId> getConsumerId() ;
|
||||
virtual void setConsumerId(p<ConsumerId> consumerId) ;
|
||||
|
||||
virtual ActiveMQDestination getDestination() ;
|
||||
virtual void setDestination(ActiveMQDestination destination) ;
|
||||
|
||||
virtual long getDeliverySequenceId() ;
|
||||
virtual void setDeliverySequenceId(long deliverySequenceId) ;
|
||||
|
||||
virtual p<MessageId> getMessageId() ;
|
||||
virtual void setMessageId(p<MessageId> messageId) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*MessageDispatchNotification_hpp_*/
|
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/MessageId.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
MessageId::MessageId()
|
||||
{
|
||||
this->producerId = NULL ;
|
||||
this->producerSequenceId = NULL ;
|
||||
this->brokerSequenceId = NULL ;
|
||||
}
|
||||
|
||||
MessageId::~MessageId()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<ProducerId> MessageId::getProducerId()
|
||||
{
|
||||
return producerId ;
|
||||
}
|
||||
|
||||
void MessageId::setProducerId(p<ProducerId> producerId)
|
||||
{
|
||||
this->producerId = producerId ;
|
||||
}
|
||||
|
||||
|
||||
long MessageId::getProducerSequenceId()
|
||||
{
|
||||
return producerSequenceId ;
|
||||
}
|
||||
|
||||
void MessageId::setProducerSequenceId(long producerSequenceId)
|
||||
{
|
||||
this->producerSequenceId = producerSequenceId ;
|
||||
}
|
||||
|
||||
|
||||
long MessageId::getBrokerSequenceId()
|
||||
{
|
||||
return brokerSequenceId ;
|
||||
}
|
||||
|
||||
void MessageId::setBrokerSequenceId(long brokerSequenceId)
|
||||
{
|
||||
this->brokerSequenceId = brokerSequenceId ;
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef MessageId_hpp_
|
||||
#define MessageId_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class MessageId : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
p<ProducerId> producerId ;
|
||||
long producerSequenceId ;
|
||||
long brokerSequenceId ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 110;
|
||||
|
||||
public:
|
||||
MessageId() ;
|
||||
virtual ~MessageId() ;
|
||||
|
||||
|
||||
virtual p<ProducerId> getProducerId() ;
|
||||
virtual void setProducerId(p<ProducerId> producerId) ;
|
||||
|
||||
virtual long getProducerSequenceId() ;
|
||||
virtual void setProducerSequenceId(long producerSequenceId) ;
|
||||
|
||||
virtual long getBrokerSequenceId() ;
|
||||
virtual void setBrokerSequenceId(long brokerSequenceId) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*MessageId_hpp_*/
|
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/RemoveSubscriptionInfo.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
RemoveSubscriptionInfo::RemoveSubscriptionInfo()
|
||||
{
|
||||
this->connectionId = NULL ;
|
||||
this->subcriptionName = NULL ;
|
||||
this->clientId = NULL ;
|
||||
}
|
||||
|
||||
RemoveSubscriptionInfo::~RemoveSubscriptionInfo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<ConnectionId> RemoveSubscriptionInfo::getConnectionId()
|
||||
{
|
||||
return connectionId ;
|
||||
}
|
||||
|
||||
void RemoveSubscriptionInfo::setConnectionId(p<ConnectionId> connectionId)
|
||||
{
|
||||
this->connectionId = connectionId ;
|
||||
}
|
||||
|
||||
|
||||
p<string> RemoveSubscriptionInfo::getSubcriptionName()
|
||||
{
|
||||
return subcriptionName ;
|
||||
}
|
||||
|
||||
void RemoveSubscriptionInfo::setSubcriptionName(p<string> subcriptionName)
|
||||
{
|
||||
this->subcriptionName = subcriptionName ;
|
||||
}
|
||||
|
||||
|
||||
p<string> RemoveSubscriptionInfo::getClientId()
|
||||
{
|
||||
return clientId ;
|
||||
}
|
||||
|
||||
void RemoveSubscriptionInfo::setClientId(p<string> clientId)
|
||||
{
|
||||
this->clientId = clientId ;
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef RemoveSubscriptionInfo_hpp_
|
||||
#define RemoveSubscriptionInfo_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class RemoveSubscriptionInfo : public BaseCommand
|
||||
{
|
||||
private:
|
||||
p<ConnectionId> connectionId ;
|
||||
p<string> subcriptionName ;
|
||||
p<string> clientId ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 0;
|
||||
|
||||
public:
|
||||
RemoveSubscriptionInfo() ;
|
||||
virtual ~RemoveSubscriptionInfo() ;
|
||||
|
||||
|
||||
virtual p<ConnectionId> getConnectionId() ;
|
||||
virtual void setConnectionId(p<ConnectionId> connectionId) ;
|
||||
|
||||
virtual p<string> getSubcriptionName() ;
|
||||
virtual void setSubcriptionName(p<string> subcriptionName) ;
|
||||
|
||||
virtual p<string> getClientId() ;
|
||||
virtual void setClientId(p<string> clientId) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*RemoveSubscriptionInfo_hpp_*/
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/ShutdownInfo.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
ShutdownInfo::ShutdownInfo()
|
||||
{
|
||||
}
|
||||
|
||||
ShutdownInfo::~ShutdownInfo()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ShutdownInfo_hpp_
|
||||
#define ShutdownInfo_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class ShutdownInfo : public BaseCommand
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
const static int TYPE = 11;
|
||||
|
||||
public:
|
||||
ShutdownInfo() ;
|
||||
virtual ~ShutdownInfo() ;
|
||||
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*ShutdownInfo_hpp_*/
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/SubscriptionInfo.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
SubscriptionInfo::SubscriptionInfo()
|
||||
{
|
||||
this->clientId = NULL ;
|
||||
this->destination = NULL ;
|
||||
this->selector = NULL ;
|
||||
this->subcriptionName = NULL ;
|
||||
}
|
||||
|
||||
SubscriptionInfo::~SubscriptionInfo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<string> SubscriptionInfo::getClientId()
|
||||
{
|
||||
return clientId ;
|
||||
}
|
||||
|
||||
void SubscriptionInfo::setClientId(p<string> clientId)
|
||||
{
|
||||
this->clientId = clientId ;
|
||||
}
|
||||
|
||||
|
||||
ActiveMQDestination SubscriptionInfo::getDestination()
|
||||
{
|
||||
return destination ;
|
||||
}
|
||||
|
||||
void SubscriptionInfo::setDestination(ActiveMQDestination destination)
|
||||
{
|
||||
this->destination = destination ;
|
||||
}
|
||||
|
||||
|
||||
p<string> SubscriptionInfo::getSelector()
|
||||
{
|
||||
return selector ;
|
||||
}
|
||||
|
||||
void SubscriptionInfo::setSelector(p<string> selector)
|
||||
{
|
||||
this->selector = selector ;
|
||||
}
|
||||
|
||||
|
||||
p<string> SubscriptionInfo::getSubcriptionName()
|
||||
{
|
||||
return subcriptionName ;
|
||||
}
|
||||
|
||||
void SubscriptionInfo::setSubcriptionName(p<string> subcriptionName)
|
||||
{
|
||||
this->subcriptionName = subcriptionName ;
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef SubscriptionInfo_hpp_
|
||||
#define SubscriptionInfo_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class SubscriptionInfo : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
p<string> clientId ;
|
||||
ActiveMQDestination destination ;
|
||||
p<string> selector ;
|
||||
p<string> subcriptionName ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 55;
|
||||
|
||||
public:
|
||||
SubscriptionInfo() ;
|
||||
virtual ~SubscriptionInfo() ;
|
||||
|
||||
|
||||
virtual p<string> getClientId() ;
|
||||
virtual void setClientId(p<string> clientId) ;
|
||||
|
||||
virtual ActiveMQDestination getDestination() ;
|
||||
virtual void setDestination(ActiveMQDestination destination) ;
|
||||
|
||||
virtual p<string> getSelector() ;
|
||||
virtual void setSelector(p<string> selector) ;
|
||||
|
||||
virtual p<string> getSubcriptionName() ;
|
||||
virtual void setSubcriptionName(p<string> subcriptionName) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*SubscriptionInfo_hpp_*/
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/TransactionId.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
TransactionId::TransactionId()
|
||||
{
|
||||
}
|
||||
|
||||
TransactionId::~TransactionId()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef TransactionId_hpp_
|
||||
#define TransactionId_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class TransactionId : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
const static int TYPE = 0;
|
||||
|
||||
public:
|
||||
TransactionId() ;
|
||||
virtual ~TransactionId() ;
|
||||
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*TransactionId_hpp_*/
|
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/TransactionInfo.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
TransactionInfo::TransactionInfo()
|
||||
{
|
||||
this->connectionId = NULL ;
|
||||
this->transactionId = NULL ;
|
||||
this->type = NULL ;
|
||||
}
|
||||
|
||||
TransactionInfo::~TransactionInfo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
p<ConnectionId> TransactionInfo::getConnectionId()
|
||||
{
|
||||
return connectionId ;
|
||||
}
|
||||
|
||||
void TransactionInfo::setConnectionId(p<ConnectionId> connectionId)
|
||||
{
|
||||
this->connectionId = connectionId ;
|
||||
}
|
||||
|
||||
|
||||
p<TransactionId> TransactionInfo::getTransactionId()
|
||||
{
|
||||
return transactionId ;
|
||||
}
|
||||
|
||||
void TransactionInfo::setTransactionId(p<TransactionId> transactionId)
|
||||
{
|
||||
this->transactionId = transactionId ;
|
||||
}
|
||||
|
||||
|
||||
byte TransactionInfo::getType()
|
||||
{
|
||||
return type ;
|
||||
}
|
||||
|
||||
void TransactionInfo::setType(byte type)
|
||||
{
|
||||
this->type = type ;
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef TransactionInfo_hpp_
|
||||
#define TransactionInfo_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class TransactionInfo : public BaseCommand
|
||||
{
|
||||
private:
|
||||
p<ConnectionId> connectionId ;
|
||||
p<TransactionId> transactionId ;
|
||||
byte type ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 7;
|
||||
|
||||
public:
|
||||
TransactionInfo() ;
|
||||
virtual ~TransactionInfo() ;
|
||||
|
||||
|
||||
virtual p<ConnectionId> getConnectionId() ;
|
||||
virtual void setConnectionId(p<ConnectionId> connectionId) ;
|
||||
|
||||
virtual p<TransactionId> getTransactionId() ;
|
||||
virtual void setTransactionId(p<TransactionId> transactionId) ;
|
||||
|
||||
virtual byte getType() ;
|
||||
virtual void setType(byte type) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*TransactionInfo_hpp_*/
|
|
@ -0,0 +1,121 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/WireFormatInfo.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
WireFormatInfo::WireFormatInfo()
|
||||
{
|
||||
this->magic = NULL ;
|
||||
this->version = NULL ;
|
||||
this->cacheEnabled = NULL ;
|
||||
this->stackTraceEnabled = NULL ;
|
||||
this->tcpNoDelayEnabled = NULL ;
|
||||
this->prefixPacketSize = NULL ;
|
||||
this->tightEncodingEnabled = NULL ;
|
||||
}
|
||||
|
||||
WireFormatInfo::~WireFormatInfo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
byte[] WireFormatInfo::getMagic()
|
||||
{
|
||||
return magic ;
|
||||
}
|
||||
|
||||
void WireFormatInfo::setMagic(byte[] magic)
|
||||
{
|
||||
this->magic = magic ;
|
||||
}
|
||||
|
||||
|
||||
int WireFormatInfo::getVersion()
|
||||
{
|
||||
return version ;
|
||||
}
|
||||
|
||||
void WireFormatInfo::setVersion(int version)
|
||||
{
|
||||
this->version = version ;
|
||||
}
|
||||
|
||||
|
||||
bool WireFormatInfo::getCacheEnabled()
|
||||
{
|
||||
return cacheEnabled ;
|
||||
}
|
||||
|
||||
void WireFormatInfo::setCacheEnabled(bool cacheEnabled)
|
||||
{
|
||||
this->cacheEnabled = cacheEnabled ;
|
||||
}
|
||||
|
||||
|
||||
bool WireFormatInfo::getStackTraceEnabled()
|
||||
{
|
||||
return stackTraceEnabled ;
|
||||
}
|
||||
|
||||
void WireFormatInfo::setStackTraceEnabled(bool stackTraceEnabled)
|
||||
{
|
||||
this->stackTraceEnabled = stackTraceEnabled ;
|
||||
}
|
||||
|
||||
|
||||
bool WireFormatInfo::getTcpNoDelayEnabled()
|
||||
{
|
||||
return tcpNoDelayEnabled ;
|
||||
}
|
||||
|
||||
void WireFormatInfo::setTcpNoDelayEnabled(bool tcpNoDelayEnabled)
|
||||
{
|
||||
this->tcpNoDelayEnabled = tcpNoDelayEnabled ;
|
||||
}
|
||||
|
||||
|
||||
bool WireFormatInfo::getPrefixPacketSize()
|
||||
{
|
||||
return prefixPacketSize ;
|
||||
}
|
||||
|
||||
void WireFormatInfo::setPrefixPacketSize(bool prefixPacketSize)
|
||||
{
|
||||
this->prefixPacketSize = prefixPacketSize ;
|
||||
}
|
||||
|
||||
|
||||
bool WireFormatInfo::getTightEncodingEnabled()
|
||||
{
|
||||
return tightEncodingEnabled ;
|
||||
}
|
||||
|
||||
void WireFormatInfo::setTightEncodingEnabled(bool tightEncodingEnabled)
|
||||
{
|
||||
this->tightEncodingEnabled = tightEncodingEnabled ;
|
||||
}
|
|
@ -0,0 +1,103 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef WireFormatInfo_hpp_
|
||||
#define WireFormatInfo_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/AbstractCommand.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class WireFormatInfo : public AbstractCommand
|
||||
{
|
||||
private:
|
||||
byte[] magic ;
|
||||
int version ;
|
||||
bool cacheEnabled ;
|
||||
bool stackTraceEnabled ;
|
||||
bool tcpNoDelayEnabled ;
|
||||
bool prefixPacketSize ;
|
||||
bool tightEncodingEnabled ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 1;
|
||||
|
||||
public:
|
||||
WireFormatInfo() ;
|
||||
virtual ~WireFormatInfo() ;
|
||||
|
||||
|
||||
virtual byte[] getMagic() ;
|
||||
virtual void setMagic(byte[] magic) ;
|
||||
|
||||
virtual int getVersion() ;
|
||||
virtual void setVersion(int version) ;
|
||||
|
||||
virtual bool getCacheEnabled() ;
|
||||
virtual void setCacheEnabled(bool cacheEnabled) ;
|
||||
|
||||
virtual bool getStackTraceEnabled() ;
|
||||
virtual void setStackTraceEnabled(bool stackTraceEnabled) ;
|
||||
|
||||
virtual bool getTcpNoDelayEnabled() ;
|
||||
virtual void setTcpNoDelayEnabled(bool tcpNoDelayEnabled) ;
|
||||
|
||||
virtual bool getPrefixPacketSize() ;
|
||||
virtual void setPrefixPacketSize(bool prefixPacketSize) ;
|
||||
|
||||
virtual bool getTightEncodingEnabled() ;
|
||||
virtual void setTightEncodingEnabled(bool tightEncodingEnabled) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*WireFormatInfo_hpp_*/
|
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "command/XATransactionId.hpp"
|
||||
|
||||
using namespace apache::activemq::client::command;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
XATransactionId::XATransactionId()
|
||||
{
|
||||
this->formatId = NULL ;
|
||||
this->globalTransactionId = NULL ;
|
||||
this->branchQualifier = NULL ;
|
||||
}
|
||||
|
||||
XATransactionId::~XATransactionId()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
int XATransactionId::getFormatId()
|
||||
{
|
||||
return formatId ;
|
||||
}
|
||||
|
||||
void XATransactionId::setFormatId(int formatId)
|
||||
{
|
||||
this->formatId = formatId ;
|
||||
}
|
||||
|
||||
|
||||
byte[] XATransactionId::getGlobalTransactionId()
|
||||
{
|
||||
return globalTransactionId ;
|
||||
}
|
||||
|
||||
void XATransactionId::setGlobalTransactionId(byte[] globalTransactionId)
|
||||
{
|
||||
this->globalTransactionId = globalTransactionId ;
|
||||
}
|
||||
|
||||
|
||||
byte[] XATransactionId::getBranchQualifier()
|
||||
{
|
||||
return branchQualifier ;
|
||||
}
|
||||
|
||||
void XATransactionId::setBranchQualifier(byte[] branchQualifier)
|
||||
{
|
||||
this->branchQualifier = branchQualifier ;
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef XATransactionId_hpp_
|
||||
#define XATransactionId_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BaseCommand.hpp"
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "command/TransactionId.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace command
|
||||
{
|
||||
using namespace ifr;
|
||||
using namespace apache::activemq::client;
|
||||
|
||||
/*
|
||||
*
|
||||
* 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-core module
|
||||
*
|
||||
*/
|
||||
class XATransactionId : public TransactionId
|
||||
{
|
||||
private:
|
||||
int formatId ;
|
||||
byte[] globalTransactionId ;
|
||||
byte[] branchQualifier ;
|
||||
|
||||
public:
|
||||
const static int TYPE = 112;
|
||||
|
||||
public:
|
||||
XATransactionId() ;
|
||||
virtual ~XATransactionId() ;
|
||||
|
||||
|
||||
virtual int getFormatId() ;
|
||||
virtual void setFormatId(int formatId) ;
|
||||
|
||||
virtual byte[] getGlobalTransactionId() ;
|
||||
virtual void setGlobalTransactionId(byte[] globalTransactionId) ;
|
||||
|
||||
virtual byte[] getBranchQualifier() ;
|
||||
virtual void setBranchQualifier(byte[] branchQualifier) ;
|
||||
|
||||
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*XATransactionId_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQBytesMessageMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQBytesMessageMarshaller::ActiveMQBytesMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQBytesMessageMarshaller::~ActiveMQBytesMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQBytesMessageMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQBytesMessage();
|
||||
}
|
||||
|
||||
byte ActiveMQBytesMessageMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQBytesMessage.ID_ActiveMQBytesMessage;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQBytesMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQBytesMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQBytesMessage& info = (ActiveMQBytesMessage&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQBytesMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQBytesMessageMarshaller_hpp_
|
||||
#define ActiveMQBytesMessageMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQMessageMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQBytesMessageMarshaller : public ActiveMQMessageMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQBytesMessageMarshaller() ;
|
||||
virtual ~ActiveMQBytesMessageMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQBytesMessageMarshaller_hpp_*/
|
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQDestinationMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQDestinationMarshaller::ActiveMQDestinationMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQDestinationMarshaller::~ActiveMQDestinationMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQDestinationMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
ActiveMQDestination& info = (ActiveMQDestination&) o;
|
||||
info.setPhysicalName(tightUnmarshalString(dataIn, bs));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQDestinationMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQDestination& info = (ActiveMQDestination&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += writeString(info.getPhysicalName(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQDestinationMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
ActiveMQDestination& info = (ActiveMQDestination&) o;
|
||||
writeString(info.getPhysicalName(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQDestinationMarshaller_hpp_
|
||||
#define ActiveMQDestinationMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseDataStreamMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQDestinationMarshaller : public BaseDataStreamMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQDestinationMarshaller() ;
|
||||
virtual ~ActiveMQDestinationMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQDestinationMarshaller_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQMapMessageMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQMapMessageMarshaller::ActiveMQMapMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQMapMessageMarshaller::~ActiveMQMapMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQMapMessageMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQMapMessage();
|
||||
}
|
||||
|
||||
byte ActiveMQMapMessageMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQMapMessage.ID_ActiveMQMapMessage;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQMapMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQMapMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQMapMessage& info = (ActiveMQMapMessage&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQMapMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQMapMessageMarshaller_hpp_
|
||||
#define ActiveMQMapMessageMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQMessageMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQMapMessageMarshaller : public ActiveMQMessageMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQMapMessageMarshaller() ;
|
||||
virtual ~ActiveMQMapMessageMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQMapMessageMarshaller_hpp_*/
|
|
@ -0,0 +1,91 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQMessageMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQMessageMarshaller::ActiveMQMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQMessageMarshaller::~ActiveMQMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQMessageMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQMessage();
|
||||
}
|
||||
|
||||
byte ActiveMQMessageMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQMessage.ID_ActiveMQMessage;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
ActiveMQMessage& info = (ActiveMQMessage&) o;
|
||||
|
||||
info.beforeUnmarshall(wireFormat);
|
||||
|
||||
|
||||
info.afterUnmarshall(wireFormat);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQMessage& info = (ActiveMQMessage&) o;
|
||||
|
||||
info.beforeMarshall(wireFormat);
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
ActiveMQMessage& info = (ActiveMQMessage&) o;
|
||||
|
||||
info.afterMarshall(wireFormat);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQMessageMarshaller_hpp_
|
||||
#define ActiveMQMessageMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/MessageMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQMessageMarshaller : public MessageMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQMessageMarshaller() ;
|
||||
virtual ~ActiveMQMessageMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQMessageMarshaller_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQObjectMessageMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQObjectMessageMarshaller::ActiveMQObjectMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQObjectMessageMarshaller::~ActiveMQObjectMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQObjectMessageMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQObjectMessage();
|
||||
}
|
||||
|
||||
byte ActiveMQObjectMessageMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQObjectMessage.ID_ActiveMQObjectMessage;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQObjectMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQObjectMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQObjectMessage& info = (ActiveMQObjectMessage&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQObjectMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQObjectMessageMarshaller_hpp_
|
||||
#define ActiveMQObjectMessageMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQMessageMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQObjectMessageMarshaller : public ActiveMQMessageMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQObjectMessageMarshaller() ;
|
||||
virtual ~ActiveMQObjectMessageMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQObjectMessageMarshaller_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQQueueMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQQueueMarshaller::ActiveMQQueueMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQQueueMarshaller::~ActiveMQQueueMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQQueueMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQQueue();
|
||||
}
|
||||
|
||||
byte ActiveMQQueueMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQQueue.ID_ActiveMQQueue;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQQueueMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQQueueMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQQueue& info = (ActiveMQQueue&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQQueueMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQQueueMarshaller_hpp_
|
||||
#define ActiveMQQueueMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQDestinationMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQQueueMarshaller : public ActiveMQDestinationMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQQueueMarshaller() ;
|
||||
virtual ~ActiveMQQueueMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQQueueMarshaller_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQStreamMessageMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQStreamMessageMarshaller::ActiveMQStreamMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQStreamMessageMarshaller::~ActiveMQStreamMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQStreamMessageMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQStreamMessage();
|
||||
}
|
||||
|
||||
byte ActiveMQStreamMessageMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQStreamMessage.ID_ActiveMQStreamMessage;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQStreamMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQStreamMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQStreamMessage& info = (ActiveMQStreamMessage&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQStreamMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQStreamMessageMarshaller_hpp_
|
||||
#define ActiveMQStreamMessageMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQMessageMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQStreamMessageMarshaller : public ActiveMQMessageMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQStreamMessageMarshaller() ;
|
||||
virtual ~ActiveMQStreamMessageMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQStreamMessageMarshaller_hpp_*/
|
|
@ -0,0 +1,67 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQTempDestinationMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQTempDestinationMarshaller::ActiveMQTempDestinationMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQTempDestinationMarshaller::~ActiveMQTempDestinationMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQTempDestinationMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQTempDestinationMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQTempDestination& info = (ActiveMQTempDestination&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQTempDestinationMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQTempDestinationMarshaller_hpp_
|
||||
#define ActiveMQTempDestinationMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQDestinationMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQTempDestinationMarshaller : public ActiveMQDestinationMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQTempDestinationMarshaller() ;
|
||||
virtual ~ActiveMQTempDestinationMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQTempDestinationMarshaller_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQTempQueueMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQTempQueueMarshaller::ActiveMQTempQueueMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQTempQueueMarshaller::~ActiveMQTempQueueMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQTempQueueMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQTempQueue();
|
||||
}
|
||||
|
||||
byte ActiveMQTempQueueMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQTempQueue.ID_ActiveMQTempQueue;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQTempQueueMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQTempQueueMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQTempQueue& info = (ActiveMQTempQueue&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQTempQueueMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQTempQueueMarshaller_hpp_
|
||||
#define ActiveMQTempQueueMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQTempDestinationMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQTempQueueMarshaller : public ActiveMQTempDestinationMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQTempQueueMarshaller() ;
|
||||
virtual ~ActiveMQTempQueueMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQTempQueueMarshaller_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQTempTopicMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQTempTopicMarshaller::ActiveMQTempTopicMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQTempTopicMarshaller::~ActiveMQTempTopicMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQTempTopicMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQTempTopic();
|
||||
}
|
||||
|
||||
byte ActiveMQTempTopicMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQTempTopic.ID_ActiveMQTempTopic;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQTempTopicMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQTempTopicMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQTempTopic& info = (ActiveMQTempTopic&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQTempTopicMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQTempTopicMarshaller_hpp_
|
||||
#define ActiveMQTempTopicMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQTempDestinationMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQTempTopicMarshaller : public ActiveMQTempDestinationMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQTempTopicMarshaller() ;
|
||||
virtual ~ActiveMQTempTopicMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQTempTopicMarshaller_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQTextMessageMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQTextMessageMarshaller::ActiveMQTextMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQTextMessageMarshaller::~ActiveMQTextMessageMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQTextMessageMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQTextMessage();
|
||||
}
|
||||
|
||||
byte ActiveMQTextMessageMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQTextMessage.ID_ActiveMQTextMessage;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQTextMessageMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQTextMessageMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQTextMessage& info = (ActiveMQTextMessage&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQTextMessageMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQTextMessageMarshaller_hpp_
|
||||
#define ActiveMQTextMessageMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQMessageMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQTextMessageMarshaller : public ActiveMQMessageMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQTextMessageMarshaller() ;
|
||||
virtual ~ActiveMQTextMessageMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQTextMessageMarshaller_hpp_*/
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ActiveMQTopicMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ActiveMQTopicMarshaller::ActiveMQTopicMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ActiveMQTopicMarshaller::~ActiveMQTopicMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ActiveMQTopicMarshaller::createObject()
|
||||
{
|
||||
return new ActiveMQTopic();
|
||||
}
|
||||
|
||||
byte ActiveMQTopicMarshaller::getDataStructureType()
|
||||
{
|
||||
return ActiveMQTopic.ID_ActiveMQTopic;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ActiveMQTopicMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ActiveMQTopicMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ActiveMQTopic& info = (ActiveMQTopic&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ActiveMQTopicMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ActiveMQTopicMarshaller_hpp_
|
||||
#define ActiveMQTopicMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ActiveMQDestinationMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ActiveMQTopicMarshaller : public ActiveMQDestinationMarshaller
|
||||
{
|
||||
public:
|
||||
ActiveMQTopicMarshaller() ;
|
||||
virtual ~ActiveMQTopicMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ActiveMQTopicMarshaller_hpp_*/
|
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/BaseCommandMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
BaseCommandMarshaller::BaseCommandMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
BaseCommandMarshaller::~BaseCommandMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void BaseCommandMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
BaseCommand& info = (BaseCommand&) o;
|
||||
info.setCommandId(dataIn.readShort());
|
||||
info.setResponseRequired(bs.readBoolean());
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int BaseCommandMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
BaseCommand& info = (BaseCommand&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
bs.writeBoolean(info.isResponseRequired());
|
||||
|
||||
return rc + 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void BaseCommandMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
BaseCommand& info = (BaseCommand&) o;
|
||||
DataStreamMarshaller.writeShort(info.getCommandId(), dataOut);
|
||||
bs.readBoolean();
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef BaseCommandMarshaller_hpp_
|
||||
#define BaseCommandMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseDataStreamMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class BaseCommandMarshaller : public BaseDataStreamMarshaller
|
||||
{
|
||||
public:
|
||||
BaseCommandMarshaller() ;
|
||||
virtual ~BaseCommandMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*BaseCommandMarshaller_hpp_*/
|
|
@ -19,8 +19,13 @@
|
|||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
BrokerIdMarshaller::BrokerIdMarshaller()
|
||||
{
|
||||
// no-op
|
||||
|
@ -31,23 +36,50 @@ BrokerIdMarshaller::~BrokerIdMarshaller()
|
|||
// no-op
|
||||
}
|
||||
|
||||
p<ICommand> BrokerIdMarshaller::createCommand()
|
||||
|
||||
|
||||
DataStructure* BrokerIdMarshaller::createObject()
|
||||
{
|
||||
return new BrokerId() ;
|
||||
return new BrokerId();
|
||||
}
|
||||
|
||||
void BrokerIdMarshaller::buildCommand(p<ICommand> command, p<BinaryReader> reader)
|
||||
byte BrokerIdMarshaller::getDataStructureType()
|
||||
{
|
||||
//AbstractCommandMarshaller::buildCommand(command, reader) ;
|
||||
|
||||
p<BrokerId> brokerId = (p<BrokerId>&)command ;
|
||||
brokerId->setValue( reader->readString()->c_str() ) ;
|
||||
return BrokerId.ID_BrokerId;
|
||||
}
|
||||
|
||||
void BrokerIdMarshaller::writeCommand(p<ICommand> command, p<BinaryWriter> writer)
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void BrokerIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
//AbstractCommandMarshaller::writeCommand(command, writer) ;
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
BrokerId& info = (BrokerId&) o;
|
||||
info.setValue(tightUnmarshalString(dataIn, bs));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int BrokerIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
BrokerId& info = (BrokerId&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += writeString(info.getValue(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void BrokerIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
BrokerId& info = (BrokerId&) o;
|
||||
writeString(info.getValue(), dataOut, bs);
|
||||
|
||||
p<BrokerId> brokerId = (p<BrokerId>&)command ;
|
||||
writer->writeString( brokerId->getValue() ) ;
|
||||
}
|
||||
|
|
|
@ -1,27 +1,37 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef BrokerIdMarshaller_hpp_
|
||||
#define BrokerIdMarshaller_hpp_
|
||||
|
||||
#include "command/ICommand.hpp"
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
#include "marshal/AbstractCommandMarshaller.hpp"
|
||||
|
||||
#include "command/BaseDataStreamMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
|
@ -39,21 +49,23 @@ namespace apache
|
|||
/*
|
||||
*
|
||||
*/
|
||||
class BrokerIdMarshaller : public AbstractCommandMarshaller
|
||||
class BrokerIdMarshaller : public BaseDataStreamMarshaller
|
||||
{
|
||||
public:
|
||||
BrokerIdMarshaller() ;
|
||||
virtual ~BrokerIdMarshaller() ;
|
||||
|
||||
virtual p<ICommand> createCommand() ;
|
||||
virtual void buildCommand(p<ICommand> command, p<BinaryReader> reader) ;
|
||||
virtual void writeCommand(p<ICommand> command, p<BinaryWriter> writer) ;
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*BrokerIdMarshaller_hpp_*/
|
||||
#endif /*BrokerIdMarshaller_hpp_*/
|
||||
|
|
|
@ -19,8 +19,13 @@
|
|||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
BrokerInfoMarshaller::BrokerInfoMarshaller()
|
||||
{
|
||||
// no-op
|
||||
|
@ -31,29 +36,73 @@ BrokerInfoMarshaller::~BrokerInfoMarshaller()
|
|||
// no-op
|
||||
}
|
||||
|
||||
p<ICommand> BrokerInfoMarshaller::createCommand()
|
||||
|
||||
|
||||
DataStructure* BrokerInfoMarshaller::createObject()
|
||||
{
|
||||
return new BrokerInfo() ;
|
||||
return new BrokerInfo();
|
||||
}
|
||||
|
||||
void BrokerInfoMarshaller::buildCommand(p<ICommand> command, p<BinaryReader> reader)
|
||||
byte BrokerInfoMarshaller::getDataStructureType()
|
||||
{
|
||||
//AbstractCommandMarshaller::buildCommand(command, reader) ;
|
||||
|
||||
p<BrokerInfo> brokerInfo = (p<BrokerInfo>&)command ;
|
||||
brokerInfo->setBrokerId( (p<BrokerId>&)CommandMarshallerRegistry::getBrokerInfoMarshaller()->readCommand(reader) ) ;
|
||||
brokerInfo->setBrokerURL( reader->readString()->c_str() ) ;
|
||||
brokerInfo->setPeerBrokerInfo( AbstractCommandMarshaller::readBrokerInfos(reader) ) ;
|
||||
brokerInfo->setBrokerName( reader->readString()->c_str() ) ;
|
||||
return BrokerInfo.ID_BrokerInfo;
|
||||
}
|
||||
|
||||
void BrokerInfoMarshaller::writeCommand(p<ICommand> command, p<BinaryWriter> writer)
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void BrokerInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
//AbstractCommandMarshaller::writeCommand(command, writer) ;
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
BrokerInfo& info = (BrokerInfo&) o;
|
||||
info.setBrokerId((BrokerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
|
||||
info.setBrokerURL(tightUnmarshalString(dataIn, bs));
|
||||
|
||||
if (bs.readBoolean()) {
|
||||
short size = dataIn.readShort();
|
||||
BrokerInfo value[] = new BrokerInfo[size];
|
||||
for( int i=0; i < size; i++ ) {
|
||||
value[i] = (BrokerInfo) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
|
||||
}
|
||||
info.setPeerBrokerInfos(value);
|
||||
}
|
||||
else {
|
||||
info.setPeerBrokerInfos(null);
|
||||
}
|
||||
info.setBrokerName(tightUnmarshalString(dataIn, bs));
|
||||
info.setSlaveBroker(bs.readBoolean());
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int BrokerInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
BrokerInfo& info = (BrokerInfo&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += marshal1CachedObject(wireFormat, info.getBrokerId(), bs);
|
||||
rc += writeString(info.getBrokerURL(), bs);
|
||||
rc += marshalObjectArray(wireFormat, info.getPeerBrokerInfos(), bs);
|
||||
rc += writeString(info.getBrokerName(), bs);
|
||||
bs.writeBoolean(info.isSlaveBroker());
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void BrokerInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
BrokerInfo& info = (BrokerInfo&) o;
|
||||
marshal2CachedObject(wireFormat, info.getBrokerId(), dataOut, bs);
|
||||
writeString(info.getBrokerURL(), dataOut, bs);
|
||||
marshalObjectArray(wireFormat, info.getPeerBrokerInfos(), dataOut, bs);
|
||||
writeString(info.getBrokerName(), dataOut, bs);
|
||||
bs.readBoolean();
|
||||
|
||||
p<BrokerInfo> brokerInfo = (p<BrokerInfo>&)command ;
|
||||
CommandMarshallerRegistry::getBrokerInfoMarshaller()->writeCommand(brokerInfo->getBrokerId(), writer) ;
|
||||
writer->writeString( brokerInfo->getBrokerURL() ) ;
|
||||
AbstractCommandMarshaller::writeBrokerInfos( brokerInfo->getPeerBrokerInfo(), writer) ;
|
||||
writer->writeString( brokerInfo->getBrokerName() ) ;
|
||||
}
|
||||
|
|
|
@ -1,28 +1,37 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef BrokerInfoMarshaller_hpp_
|
||||
#define BrokerInfoMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
#include "command/ICommand.hpp"
|
||||
#include "command/BrokerInfo.hpp"
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
#include "marshal/AbstractCommandMarshaller.hpp"
|
||||
|
||||
#include "command/BaseCommandMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
|
@ -40,21 +49,23 @@ namespace apache
|
|||
/*
|
||||
*
|
||||
*/
|
||||
class BrokerInfoMarshaller : public AbstractCommandMarshaller
|
||||
class BrokerInfoMarshaller : public BaseCommandMarshaller
|
||||
{
|
||||
public:
|
||||
BrokerInfoMarshaller() ;
|
||||
virtual ~BrokerInfoMarshaller() ;
|
||||
|
||||
virtual p<ICommand> createCommand() ;
|
||||
virtual void buildCommand(p<ICommand> command, p<BinaryReader> reader) ;
|
||||
virtual void writeCommand(p<ICommand> command, p<BinaryWriter> writer) ;
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*BrokerInfoMarshaller_hpp_*/
|
||||
#endif /*BrokerInfoMarshaller_hpp_*/
|
||||
|
|
|
@ -0,0 +1,88 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ConnectionErrorMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ConnectionErrorMarshaller::ConnectionErrorMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ConnectionErrorMarshaller::~ConnectionErrorMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ConnectionErrorMarshaller::createObject()
|
||||
{
|
||||
return new ConnectionError();
|
||||
}
|
||||
|
||||
byte ConnectionErrorMarshaller::getDataStructureType()
|
||||
{
|
||||
return ConnectionError.ID_ConnectionError;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ConnectionErrorMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
ConnectionError& info = (ConnectionError&) o;
|
||||
info.setException((Throwable) tightUnmarsalThrowable(wireFormat, dataIn, bs));
|
||||
info.setConnectionId((ConnectionId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ConnectionErrorMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ConnectionError& info = (ConnectionError&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += marshalBrokerError(wireFormat, info.getException(), bs);
|
||||
rc += marshal1NestedObject(wireFormat, info.getConnectionId(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ConnectionErrorMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
ConnectionError& info = (ConnectionError&) o;
|
||||
marshalBrokerError(wireFormat, info.getException(), dataOut, bs);
|
||||
marshal2NestedObject(wireFormat, info.getConnectionId(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ConnectionErrorMarshaller_hpp_
|
||||
#define ConnectionErrorMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseCommandMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ConnectionErrorMarshaller : public BaseCommandMarshaller
|
||||
{
|
||||
public:
|
||||
ConnectionErrorMarshaller() ;
|
||||
virtual ~ConnectionErrorMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ConnectionErrorMarshaller_hpp_*/
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ConnectionIdMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ConnectionIdMarshaller::ConnectionIdMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ConnectionIdMarshaller::~ConnectionIdMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ConnectionIdMarshaller::createObject()
|
||||
{
|
||||
return new ConnectionId();
|
||||
}
|
||||
|
||||
byte ConnectionIdMarshaller::getDataStructureType()
|
||||
{
|
||||
return ConnectionId.ID_ConnectionId;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ConnectionIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
ConnectionId& info = (ConnectionId&) o;
|
||||
info.setValue(tightUnmarshalString(dataIn, bs));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ConnectionIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ConnectionId& info = (ConnectionId&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += writeString(info.getValue(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ConnectionIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
ConnectionId& info = (ConnectionId&) o;
|
||||
writeString(info.getValue(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ConnectionIdMarshaller_hpp_
|
||||
#define ConnectionIdMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseDataStreamMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ConnectionIdMarshaller : public BaseDataStreamMarshaller
|
||||
{
|
||||
public:
|
||||
ConnectionIdMarshaller() ;
|
||||
virtual ~ConnectionIdMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ConnectionIdMarshaller_hpp_*/
|
|
@ -0,0 +1,108 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ConnectionInfoMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ConnectionInfoMarshaller::ConnectionInfoMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ConnectionInfoMarshaller::~ConnectionInfoMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ConnectionInfoMarshaller::createObject()
|
||||
{
|
||||
return new ConnectionInfo();
|
||||
}
|
||||
|
||||
byte ConnectionInfoMarshaller::getDataStructureType()
|
||||
{
|
||||
return ConnectionInfo.ID_ConnectionInfo;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ConnectionInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
ConnectionInfo& info = (ConnectionInfo&) o;
|
||||
info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
|
||||
info.setClientId(tightUnmarshalString(dataIn, bs));
|
||||
info.setPassword(tightUnmarshalString(dataIn, bs));
|
||||
info.setUserName(tightUnmarshalString(dataIn, bs));
|
||||
|
||||
if (bs.readBoolean()) {
|
||||
short size = dataIn.readShort();
|
||||
BrokerId value[] = new BrokerId[size];
|
||||
for( int i=0; i < size; i++ ) {
|
||||
value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
|
||||
}
|
||||
info.setBrokerPath(value);
|
||||
}
|
||||
else {
|
||||
info.setBrokerPath(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ConnectionInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ConnectionInfo& info = (ConnectionInfo&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += marshal1CachedObject(wireFormat, info.getConnectionId(), bs);
|
||||
rc += writeString(info.getClientId(), bs);
|
||||
rc += writeString(info.getPassword(), bs);
|
||||
rc += writeString(info.getUserName(), bs);
|
||||
rc += marshalObjectArray(wireFormat, info.getBrokerPath(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ConnectionInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
ConnectionInfo& info = (ConnectionInfo&) o;
|
||||
marshal2CachedObject(wireFormat, info.getConnectionId(), dataOut, bs);
|
||||
writeString(info.getClientId(), dataOut, bs);
|
||||
writeString(info.getPassword(), dataOut, bs);
|
||||
writeString(info.getUserName(), dataOut, bs);
|
||||
marshalObjectArray(wireFormat, info.getBrokerPath(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ConnectionInfoMarshaller_hpp_
|
||||
#define ConnectionInfoMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseCommandMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ConnectionInfoMarshaller : public BaseCommandMarshaller
|
||||
{
|
||||
public:
|
||||
ConnectionInfoMarshaller() ;
|
||||
virtual ~ConnectionInfoMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ConnectionInfoMarshaller_hpp_*/
|
|
@ -0,0 +1,91 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ConsumerIdMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ConsumerIdMarshaller::ConsumerIdMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ConsumerIdMarshaller::~ConsumerIdMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ConsumerIdMarshaller::createObject()
|
||||
{
|
||||
return new ConsumerId();
|
||||
}
|
||||
|
||||
byte ConsumerIdMarshaller::getDataStructureType()
|
||||
{
|
||||
return ConsumerId.ID_ConsumerId;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ConsumerIdMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
ConsumerId& info = (ConsumerId&) o;
|
||||
info.setConnectionId(tightUnmarshalString(dataIn, bs));
|
||||
info.setSessionId(tightUnmarshalLong(wireFormat, dataIn, bs));
|
||||
info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ConsumerIdMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ConsumerId& info = (ConsumerId&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += writeString(info.getConnectionId(), bs);
|
||||
rc += marshal1Long(wireFormat, info.getSessionId(), bs);
|
||||
rc += marshal1Long(wireFormat, info.getValue(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ConsumerIdMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
ConsumerId& info = (ConsumerId&) o;
|
||||
writeString(info.getConnectionId(), dataOut, bs);
|
||||
marshal2Long(wireFormat, info.getSessionId(), dataOut, bs);
|
||||
marshal2Long(wireFormat, info.getValue(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ConsumerIdMarshaller_hpp_
|
||||
#define ConsumerIdMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseDataStreamMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ConsumerIdMarshaller : public BaseDataStreamMarshaller
|
||||
{
|
||||
public:
|
||||
ConsumerIdMarshaller() ;
|
||||
virtual ~ConsumerIdMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ConsumerIdMarshaller_hpp_*/
|
|
@ -0,0 +1,130 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ConsumerInfoMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ConsumerInfoMarshaller::ConsumerInfoMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ConsumerInfoMarshaller::~ConsumerInfoMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ConsumerInfoMarshaller::createObject()
|
||||
{
|
||||
return new ConsumerInfo();
|
||||
}
|
||||
|
||||
byte ConsumerInfoMarshaller::getDataStructureType()
|
||||
{
|
||||
return ConsumerInfo.ID_ConsumerInfo;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ConsumerInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
ConsumerInfo& info = (ConsumerInfo&) o;
|
||||
info.setConsumerId((ConsumerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
|
||||
info.setBrowser(bs.readBoolean());
|
||||
info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
|
||||
info.setPrefetchSize(dataIn.readInt());
|
||||
info.setDispatchAsync(bs.readBoolean());
|
||||
info.setSelector(tightUnmarshalString(dataIn, bs));
|
||||
info.setSubcriptionName(tightUnmarshalString(dataIn, bs));
|
||||
info.setNoLocal(bs.readBoolean());
|
||||
info.setExclusive(bs.readBoolean());
|
||||
info.setRetroactive(bs.readBoolean());
|
||||
info.setPriority(dataIn.readByte());
|
||||
|
||||
if (bs.readBoolean()) {
|
||||
short size = dataIn.readShort();
|
||||
BrokerId value[] = new BrokerId[size];
|
||||
for( int i=0; i < size; i++ ) {
|
||||
value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
|
||||
}
|
||||
info.setBrokerPath(value);
|
||||
}
|
||||
else {
|
||||
info.setBrokerPath(null);
|
||||
}
|
||||
info.setNetworkSubscription(bs.readBoolean());
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ConsumerInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ConsumerInfo& info = (ConsumerInfo&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += marshal1CachedObject(wireFormat, info.getConsumerId(), bs);
|
||||
bs.writeBoolean(info.isBrowser());
|
||||
rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
|
||||
bs.writeBoolean(info.isDispatchAsync());
|
||||
rc += writeString(info.getSelector(), bs);
|
||||
rc += writeString(info.getSubcriptionName(), bs);
|
||||
bs.writeBoolean(info.isNoLocal());
|
||||
bs.writeBoolean(info.isExclusive());
|
||||
bs.writeBoolean(info.isRetroactive());
|
||||
rc += marshalObjectArray(wireFormat, info.getBrokerPath(), bs);
|
||||
bs.writeBoolean(info.isNetworkSubscription());
|
||||
|
||||
return rc + 2;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ConsumerInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
ConsumerInfo& info = (ConsumerInfo&) o;
|
||||
marshal2CachedObject(wireFormat, info.getConsumerId(), dataOut, bs);
|
||||
bs.readBoolean();
|
||||
marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
|
||||
DataStreamMarshaller.writeInt(info.getPrefetchSize(), dataOut);
|
||||
bs.readBoolean();
|
||||
writeString(info.getSelector(), dataOut, bs);
|
||||
writeString(info.getSubcriptionName(), dataOut, bs);
|
||||
bs.readBoolean();
|
||||
bs.readBoolean();
|
||||
bs.readBoolean();
|
||||
DataStreamMarshaller.writeByte(info.getPriority(), dataOut);
|
||||
marshalObjectArray(wireFormat, info.getBrokerPath(), dataOut, bs);
|
||||
bs.readBoolean();
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ConsumerInfoMarshaller_hpp_
|
||||
#define ConsumerInfoMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseCommandMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ConsumerInfoMarshaller : public BaseCommandMarshaller
|
||||
{
|
||||
public:
|
||||
ConsumerInfoMarshaller() ;
|
||||
virtual ~ConsumerInfoMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ConsumerInfoMarshaller_hpp_*/
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/ControlCommandMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
ControlCommandMarshaller::ControlCommandMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
ControlCommandMarshaller::~ControlCommandMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* ControlCommandMarshaller::createObject()
|
||||
{
|
||||
return new ControlCommand();
|
||||
}
|
||||
|
||||
byte ControlCommandMarshaller::getDataStructureType()
|
||||
{
|
||||
return ControlCommand.ID_ControlCommand;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void ControlCommandMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
ControlCommand& info = (ControlCommand&) o;
|
||||
info.setCommand(tightUnmarshalString(dataIn, bs));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int ControlCommandMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
ControlCommand& info = (ControlCommand&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += writeString(info.getCommand(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void ControlCommandMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
ControlCommand& info = (ControlCommand&) o;
|
||||
writeString(info.getCommand(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ControlCommandMarshaller_hpp_
|
||||
#define ControlCommandMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseCommandMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class ControlCommandMarshaller : public BaseCommandMarshaller
|
||||
{
|
||||
public:
|
||||
ControlCommandMarshaller() ;
|
||||
virtual ~ControlCommandMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*ControlCommandMarshaller_hpp_*/
|
|
@ -0,0 +1,96 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/DataArrayResponseMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
DataArrayResponseMarshaller::DataArrayResponseMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
DataArrayResponseMarshaller::~DataArrayResponseMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* DataArrayResponseMarshaller::createObject()
|
||||
{
|
||||
return new DataArrayResponse();
|
||||
}
|
||||
|
||||
byte DataArrayResponseMarshaller::getDataStructureType()
|
||||
{
|
||||
return DataArrayResponse.ID_DataArrayResponse;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void DataArrayResponseMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
DataArrayResponse& info = (DataArrayResponse&) o;
|
||||
|
||||
if (bs.readBoolean()) {
|
||||
short size = dataIn.readShort();
|
||||
DataStructure value[] = new DataStructure[size];
|
||||
for( int i=0; i < size; i++ ) {
|
||||
value[i] = (DataStructure) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
|
||||
}
|
||||
info.setData(value);
|
||||
}
|
||||
else {
|
||||
info.setData(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int DataArrayResponseMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
DataArrayResponse& info = (DataArrayResponse&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += marshalObjectArray(wireFormat, info.getData(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void DataArrayResponseMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
DataArrayResponse& info = (DataArrayResponse&) o;
|
||||
marshalObjectArray(wireFormat, info.getData(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef DataArrayResponseMarshaller_hpp_
|
||||
#define DataArrayResponseMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ResponseMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class DataArrayResponseMarshaller : public ResponseMarshaller
|
||||
{
|
||||
public:
|
||||
DataArrayResponseMarshaller() ;
|
||||
virtual ~DataArrayResponseMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*DataArrayResponseMarshaller_hpp_*/
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/DataResponseMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
DataResponseMarshaller::DataResponseMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
DataResponseMarshaller::~DataResponseMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* DataResponseMarshaller::createObject()
|
||||
{
|
||||
return new DataResponse();
|
||||
}
|
||||
|
||||
byte DataResponseMarshaller::getDataStructureType()
|
||||
{
|
||||
return DataResponse.ID_DataResponse;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void DataResponseMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
DataResponse& info = (DataResponse&) o;
|
||||
info.setData((DataStructure) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int DataResponseMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
DataResponse& info = (DataResponse&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += marshal1NestedObject(wireFormat, info.getData(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void DataResponseMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
DataResponse& info = (DataResponse&) o;
|
||||
marshal2NestedObject(wireFormat, info.getData(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef DataResponseMarshaller_hpp_
|
||||
#define DataResponseMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/ResponseMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class DataResponseMarshaller : public ResponseMarshaller
|
||||
{
|
||||
public:
|
||||
DataResponseMarshaller() ;
|
||||
virtual ~DataResponseMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*DataResponseMarshaller_hpp_*/
|
|
@ -0,0 +1,107 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/DestinationInfoMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
DestinationInfoMarshaller::DestinationInfoMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
DestinationInfoMarshaller::~DestinationInfoMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* DestinationInfoMarshaller::createObject()
|
||||
{
|
||||
return new DestinationInfo();
|
||||
}
|
||||
|
||||
byte DestinationInfoMarshaller::getDataStructureType()
|
||||
{
|
||||
return DestinationInfo.ID_DestinationInfo;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void DestinationInfoMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
DestinationInfo& info = (DestinationInfo&) o;
|
||||
info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
|
||||
info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
|
||||
info.setOperationType(dataIn.readByte());
|
||||
info.setTimeout(tightUnmarshalLong(wireFormat, dataIn, bs));
|
||||
|
||||
if (bs.readBoolean()) {
|
||||
short size = dataIn.readShort();
|
||||
BrokerId value[] = new BrokerId[size];
|
||||
for( int i=0; i < size; i++ ) {
|
||||
value[i] = (BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
|
||||
}
|
||||
info.setBrokerPath(value);
|
||||
}
|
||||
else {
|
||||
info.setBrokerPath(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int DestinationInfoMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
DestinationInfo& info = (DestinationInfo&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += marshal1CachedObject(wireFormat, info.getConnectionId(), bs);
|
||||
rc += marshal1CachedObject(wireFormat, info.getDestination(), bs);
|
||||
rc += marshal1Long(wireFormat, info.getTimeout(), bs);
|
||||
rc += marshalObjectArray(wireFormat, info.getBrokerPath(), bs);
|
||||
|
||||
return rc + 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void DestinationInfoMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
DestinationInfo& info = (DestinationInfo&) o;
|
||||
marshal2CachedObject(wireFormat, info.getConnectionId(), dataOut, bs);
|
||||
marshal2CachedObject(wireFormat, info.getDestination(), dataOut, bs);
|
||||
DataStreamMarshaller.writeByte(info.getOperationType(), dataOut);
|
||||
marshal2Long(wireFormat, info.getTimeout(), dataOut, bs);
|
||||
marshalObjectArray(wireFormat, info.getBrokerPath(), dataOut, bs);
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef DestinationInfoMarshaller_hpp_
|
||||
#define DestinationInfoMarshaller_hpp_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "command/DataStructure.hpp"
|
||||
|
||||
/* we could cut this down - for now include all possible headers */
|
||||
#include "command/BrokerId.hpp"
|
||||
#include "command/ConnectionId.hpp"
|
||||
#include "command/ConsumerId.hpp"
|
||||
#include "command/ProducerId.hpp"
|
||||
#include "command/SessionId.hpp"
|
||||
|
||||
#include "io/BinaryReader.hpp"
|
||||
#include "io/BinaryWriter.hpp"
|
||||
|
||||
#include "command/BaseCommandMarshaller.hpp"
|
||||
#include "util/ifr/p"
|
||||
|
||||
namespace apache
|
||||
{
|
||||
namespace activemq
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
namespace marshal
|
||||
{
|
||||
using namespace ifr ;
|
||||
using namespace apache::activemq::client::command;
|
||||
using namespace apache::activemq::client::io;
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
class DestinationInfoMarshaller : public BaseCommandMarshaller
|
||||
{
|
||||
public:
|
||||
DestinationInfoMarshaller() ;
|
||||
virtual ~DestinationInfoMarshaller() ;
|
||||
|
||||
virtual DataStructure* createCommand() ;
|
||||
virtual byte getDataStructureType() ;
|
||||
|
||||
virtual void unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs) ;
|
||||
virtual int marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) ;
|
||||
virtual void marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) ;
|
||||
} ;
|
||||
|
||||
/* namespace */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /*DestinationInfoMarshaller_hpp_*/
|
|
@ -0,0 +1,88 @@
|
|||
/*
|
||||
* Copyright 2006 The Apache Software Foundation or its licensors, as
|
||||
* applicable.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "marshal/DiscoveryEventMarshaller.hpp"
|
||||
|
||||
using namespace apache::activemq::client::marshal;
|
||||
|
||||
/*
|
||||
* 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-core module
|
||||
*/
|
||||
|
||||
DiscoveryEventMarshaller::DiscoveryEventMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
DiscoveryEventMarshaller::~DiscoveryEventMarshaller()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
|
||||
DataStructure* DiscoveryEventMarshaller::createObject()
|
||||
{
|
||||
return new DiscoveryEvent();
|
||||
}
|
||||
|
||||
byte DiscoveryEventMarshaller::getDataStructureType()
|
||||
{
|
||||
return DiscoveryEvent.ID_DiscoveryEvent;
|
||||
}
|
||||
|
||||
/*
|
||||
* Un-marshal an object instance from the data input stream
|
||||
*/
|
||||
void DiscoveryEventMarshaller::unmarshal(OpenWireFormat& wireFormat, Object o, BinaryReader& dataIn, BooleanStream& bs)
|
||||
{
|
||||
base.unmarshal(wireFormat, o, dataIn, bs);
|
||||
|
||||
DiscoveryEvent& info = (DiscoveryEvent&) o;
|
||||
info.setServiceName(tightUnmarshalString(dataIn, bs));
|
||||
info.setBrokerName(tightUnmarshalString(dataIn, bs));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write the booleans that this object uses to a BooleanStream
|
||||
*/
|
||||
int DiscoveryEventMarshaller::marshal1(OpenWireFormat& wireFormat, Object& o, BooleanStream& bs) {
|
||||
DiscoveryEvent& info = (DiscoveryEvent&) o;
|
||||
|
||||
int rc = base.marshal1(wireFormat, info, bs);
|
||||
rc += writeString(info.getServiceName(), bs);
|
||||
rc += writeString(info.getBrokerName(), bs);
|
||||
|
||||
return rc + 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a object instance to data output stream
|
||||
*/
|
||||
void DiscoveryEventMarshaller::marshal2(OpenWireFormat& wireFormat, Object& o, BinaryWriter& dataOut, BooleanStream& bs) {
|
||||
base.marshal2(wireFormat, o, dataOut, bs);
|
||||
|
||||
DiscoveryEvent& info = (DiscoveryEvent&) o;
|
||||
writeString(info.getServiceName(), dataOut, bs);
|
||||
writeString(info.getBrokerName(), dataOut, bs);
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue