This closes #213 on renaming packages to artemis
This commit is contained in:
commit
4823b3e97c
2
NOTICE
2
NOTICE
|
@ -1,4 +1,4 @@
|
|||
Apache ActiveMQ
|
||||
Apache ActiveMQ Artemis
|
||||
Copyright [2014-2015] The Apache Software Foundation
|
||||
|
||||
This product includes software developed at
|
||||
|
|
|
@ -154,7 +154,7 @@ class in the project tab and click "Run <classname>". If the "Run <classname>"
|
|||
We have shared the style templates that are good for this project. If you want to apply them use these steps:
|
||||
|
||||
* File->Import Settings
|
||||
* Select the file under ./activemq6-cloned-folder/etc/IDEA-style.jar
|
||||
* Select the file under ./artemis-cloned-folder/etc/IDEA-style.jar
|
||||
* Select both Code Style Templates and File templates (it's the default option)
|
||||
* Select OK and restart Idea
|
||||
|
||||
|
@ -234,7 +234,7 @@ Do not use the [maven-eclipse-plugin] to copy the files as it conflicts with [m2
|
|||
|
||||
The code repository for ActiveMQ Artemis is hosted by Apache org and lives here: https://git-wip-us.apache.org/repos/asf/activemq-6.git.
|
||||
|
||||
We also host a mirror of the ActiveMQ repository on GitHub: https://github.com/apache/activemq-6. We use this mirror for all code submissions and reviews. To submit code to ActiveMQ Artemis please open a Pull Request as outlined as part of the GitHub workflow described here: https://guides.github.com/introduction/flow/index.html. Once a pull request is opened it will be reviewed and commented on. Any further changes as a result of comments / review process should be addressed and reflected in the original pull request as outlined in the GitHub workflow. When the pull request has went through the review process and ready to merge, the reviewer should comment with "Ack, Ready to Push". Once an Ack message is received one of the ActiveMQ Artemis core team members will push the changes to upstream Apache ActiveMQ Artemis repository and close the pull request.
|
||||
We also host a mirror of the ActiveMQ Artemis repository on GitHub: https://github.com/apache/activemq-6. We use this mirror for all code submissions and reviews. To submit code to ActiveMQ Artemis please open a Pull Request as outlined as part of the GitHub workflow described here: https://guides.github.com/introduction/flow/index.html. Once a pull request is opened it will be reviewed and commented on. Any further changes as a result of comments / review process should be addressed and reflected in the original pull request as outlined in the GitHub workflow. When the pull request has went through the review process and ready to merge, the reviewer should comment with "Ack, Ready to Push". Once an Ack message is received one of the ActiveMQ Artemis core team members will push the changes to upstream Apache ActiveMQ Artemis repository and close the pull request.
|
||||
|
||||
### Commit Messages
|
||||
|
||||
|
@ -279,7 +279,7 @@ To setup repositories for reviewing and pushing:
|
|||
# Clone the GitHub Mirror of ActiveMQ Artemis Repo:
|
||||
git clone git@github.com:apache/activemq-6.git
|
||||
|
||||
# Add the following section to your <activemq6 repo>/.git/config statement to fetch all pull requests sent to the GitHub mirror. Note that the remote name for git@github.com:apache/activemq-6.git may be different. Be sure to edit all references to the remote name. In this case "activemq".
|
||||
# Add the following section to your <artemis-repo>/.git/config statement to fetch all pull requests sent to the GitHub mirror. Note that the remote name for git@github.com:apache/activemq-6.git may be different. Be sure to edit all references to the remote name. In this case "activemq".
|
||||
|
||||
[remote "origin"]
|
||||
url = git@github.com:apache/activemq-6.git
|
||||
|
@ -297,7 +297,7 @@ To setup repositories for reviewing and pushing:
|
|||
To push commits from a pull request to the apache repository:
|
||||
|
||||
```bash
|
||||
cd <activemq6 repo>
|
||||
cd <artemis-repo>
|
||||
|
||||
# Download all the remote branches etc... including all the pull requests.
|
||||
git fetch --all
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
_ _ _ __ __ ___
|
||||
/ \ ___| |_(_)_ _____| \/ |/ _ \
|
||||
/ _ \ / __| __| | \ / / _ \ |\/| | | | |
|
||||
/ ___ \ (__| |_| |\ V / __/ | | | |_| |
|
||||
/_/ \_\___|\__|_| \_/ \___|_| |_|\__\_\
|
||||
Apache ActiveMQ ${project.version}
|
||||
|
||||
|
|
@ -1,487 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.core.protocol.core.impl;
|
||||
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CLUSTER_TOPOLOGY;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CLUSTER_TOPOLOGY_V2;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CLUSTER_TOPOLOGY_V3;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CREATESESSION;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CREATESESSION_RESP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CREATE_QUEUE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CREATE_SHARED_QUEUE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.DELETE_QUEUE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.DISCONNECT;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.DISCONNECT_V2;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.DISCONNECT_CONSUMER;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.EXCEPTION;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.NULL_RESPONSE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.PACKETS_CONFIRMED;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.PING;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REATTACH_SESSION;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REATTACH_SESSION_RESP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CHECK_FOR_FAILOVER;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_ACKNOWLEDGE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_ADD_METADATA;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_ADD_METADATA2;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_BINDINGQUERY;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_BINDINGQUERY_RESP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_BINDINGQUERY_RESP_V2;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_CLOSE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_COMMIT;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_CONSUMER_CLOSE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_CREATECONSUMER;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_EXPIRED;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_FLOWTOKEN;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_FORCE_CONSUMER_DELIVERY;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_INDIVIDUAL_ACKNOWLEDGE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_PRODUCER_CREDITS;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_PRODUCER_FAIL_CREDITS;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_PRODUCER_REQUEST_CREDITS;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_QUEUEQUERY;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_QUEUEQUERY_RESP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_QUEUEQUERY_RESP_V2;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_RECEIVE_CONTINUATION;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_ROLLBACK;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_SEND_CONTINUATION;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_START;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_STOP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_UNIQUE_ADD_METADATA;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_COMMIT;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_END;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_FAILED;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_FORGET;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_GET_TIMEOUT;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_GET_TIMEOUT_RESP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_INDOUBT_XIDS;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_INDOUBT_XIDS_RESP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_JOIN;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_PREPARE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_RESP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_RESUME;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_ROLLBACK;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_SET_TIMEOUT;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_SET_TIMEOUT_RESP;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_START;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_XA_SUSPEND;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SUBSCRIBE_TOPOLOGY;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SUBSCRIBE_TOPOLOGY_V2;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.activemq.api.core.ActiveMQBuffer;
|
||||
import org.apache.activemq.core.client.ActiveMQClientMessageBundle;
|
||||
import org.apache.activemq.core.protocol.core.Packet;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.CheckFailoverMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.CheckFailoverReplyMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ClusterTopologyChangeMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ClusterTopologyChangeMessage_V2;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ClusterTopologyChangeMessage_V3;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.CreateQueueMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.CreateSessionMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.CreateSessionResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.CreateSharedQueueMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.DisconnectConsumerMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.DisconnectMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.DisconnectMessage_V2;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ActiveMQExceptionMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.NullResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.PacketsConfirmedMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.Ping;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReattachSessionMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReattachSessionResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.RollbackMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionAcknowledgeMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionAddMetaDataMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionAddMetaDataMessageV2;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionBindingQueryMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionBindingQueryResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionBindingQueryResponseMessage_V2;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionCloseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionCommitMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionConsumerCloseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionConsumerFlowCreditMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionCreateConsumerMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionDeleteQueueMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionExpireMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionForceConsumerDelivery;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionIndividualAcknowledgeMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionProducerCreditsFailMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionProducerCreditsMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionQueueQueryMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionQueueQueryResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionQueueQueryResponseMessage_V2;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionReceiveContinuationMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionRequestProducerCreditsMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionSendContinuationMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionUniqueAddMetaDataMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAAfterFailedMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXACommitMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAEndMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAForgetMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAGetInDoubtXidsResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAGetTimeoutResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAJoinMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAPrepareMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAResumeMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXARollbackMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXASetTimeoutMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXASetTimeoutResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionXAStartMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SubscribeClusterTopologyUpdatesMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SubscribeClusterTopologyUpdatesMessageV2;
|
||||
|
||||
public abstract class PacketDecoder implements Serializable
|
||||
{
|
||||
public abstract Packet decode(final ActiveMQBuffer in);
|
||||
|
||||
public Packet decode(byte packetType)
|
||||
{
|
||||
Packet packet;
|
||||
|
||||
switch (packetType)
|
||||
{
|
||||
case PING:
|
||||
{
|
||||
packet = new Ping();
|
||||
break;
|
||||
}
|
||||
case DISCONNECT:
|
||||
{
|
||||
packet = new DisconnectMessage();
|
||||
break;
|
||||
}
|
||||
case DISCONNECT_V2:
|
||||
{
|
||||
packet = new DisconnectMessage_V2();
|
||||
break;
|
||||
}
|
||||
case DISCONNECT_CONSUMER:
|
||||
{
|
||||
packet = new DisconnectConsumerMessage();
|
||||
break;
|
||||
}
|
||||
case EXCEPTION:
|
||||
{
|
||||
packet = new ActiveMQExceptionMessage();
|
||||
break;
|
||||
}
|
||||
case PACKETS_CONFIRMED:
|
||||
{
|
||||
packet = new PacketsConfirmedMessage();
|
||||
break;
|
||||
}
|
||||
case CREATESESSION:
|
||||
{
|
||||
packet = new CreateSessionMessage();
|
||||
break;
|
||||
}
|
||||
case CHECK_FOR_FAILOVER:
|
||||
{
|
||||
packet = new CheckFailoverMessage();
|
||||
break;
|
||||
}
|
||||
case CREATESESSION_RESP:
|
||||
{
|
||||
packet = new CreateSessionResponseMessage();
|
||||
break;
|
||||
}
|
||||
case REATTACH_SESSION:
|
||||
{
|
||||
packet = new ReattachSessionMessage();
|
||||
break;
|
||||
}
|
||||
case REATTACH_SESSION_RESP:
|
||||
{
|
||||
packet = new ReattachSessionResponseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_CLOSE:
|
||||
{
|
||||
packet = new SessionCloseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_CREATECONSUMER:
|
||||
{
|
||||
packet = new SessionCreateConsumerMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_ACKNOWLEDGE:
|
||||
{
|
||||
packet = new SessionAcknowledgeMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_EXPIRED:
|
||||
{
|
||||
packet = new SessionExpireMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_COMMIT:
|
||||
{
|
||||
packet = new SessionCommitMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_ROLLBACK:
|
||||
{
|
||||
packet = new RollbackMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_QUEUEQUERY:
|
||||
{
|
||||
packet = new SessionQueueQueryMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_QUEUEQUERY_RESP:
|
||||
{
|
||||
packet = new SessionQueueQueryResponseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_QUEUEQUERY_RESP_V2:
|
||||
{
|
||||
packet = new SessionQueueQueryResponseMessage_V2();
|
||||
break;
|
||||
}
|
||||
case CREATE_QUEUE:
|
||||
{
|
||||
packet = new CreateQueueMessage();
|
||||
break;
|
||||
}
|
||||
case CREATE_SHARED_QUEUE:
|
||||
{
|
||||
packet = new CreateSharedQueueMessage();
|
||||
break;
|
||||
}
|
||||
case DELETE_QUEUE:
|
||||
{
|
||||
packet = new SessionDeleteQueueMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_BINDINGQUERY:
|
||||
{
|
||||
packet = new SessionBindingQueryMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_BINDINGQUERY_RESP:
|
||||
{
|
||||
packet = new SessionBindingQueryResponseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_BINDINGQUERY_RESP_V2:
|
||||
{
|
||||
packet = new SessionBindingQueryResponseMessage_V2();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_START:
|
||||
{
|
||||
packet = new SessionXAStartMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_FAILED:
|
||||
{
|
||||
packet = new SessionXAAfterFailedMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_END:
|
||||
{
|
||||
packet = new SessionXAEndMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_COMMIT:
|
||||
{
|
||||
packet = new SessionXACommitMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_PREPARE:
|
||||
{
|
||||
packet = new SessionXAPrepareMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_RESP:
|
||||
{
|
||||
packet = new SessionXAResponseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_ROLLBACK:
|
||||
{
|
||||
packet = new SessionXARollbackMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_JOIN:
|
||||
{
|
||||
packet = new SessionXAJoinMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_SUSPEND:
|
||||
{
|
||||
packet = new PacketImpl(PacketImpl.SESS_XA_SUSPEND);
|
||||
break;
|
||||
}
|
||||
case SESS_XA_RESUME:
|
||||
{
|
||||
packet = new SessionXAResumeMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_FORGET:
|
||||
{
|
||||
packet = new SessionXAForgetMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_INDOUBT_XIDS:
|
||||
{
|
||||
packet = new PacketImpl(PacketImpl.SESS_XA_INDOUBT_XIDS);
|
||||
break;
|
||||
}
|
||||
case SESS_XA_INDOUBT_XIDS_RESP:
|
||||
{
|
||||
packet = new SessionXAGetInDoubtXidsResponseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_SET_TIMEOUT:
|
||||
{
|
||||
packet = new SessionXASetTimeoutMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_SET_TIMEOUT_RESP:
|
||||
{
|
||||
packet = new SessionXASetTimeoutResponseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_XA_GET_TIMEOUT:
|
||||
{
|
||||
packet = new PacketImpl(PacketImpl.SESS_XA_GET_TIMEOUT);
|
||||
break;
|
||||
}
|
||||
case SESS_XA_GET_TIMEOUT_RESP:
|
||||
{
|
||||
packet = new SessionXAGetTimeoutResponseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_START:
|
||||
{
|
||||
packet = new PacketImpl(PacketImpl.SESS_START);
|
||||
break;
|
||||
}
|
||||
case SESS_STOP:
|
||||
{
|
||||
packet = new PacketImpl(PacketImpl.SESS_STOP);
|
||||
break;
|
||||
}
|
||||
case SESS_FLOWTOKEN:
|
||||
{
|
||||
packet = new SessionConsumerFlowCreditMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_CONSUMER_CLOSE:
|
||||
{
|
||||
packet = new SessionConsumerCloseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_INDIVIDUAL_ACKNOWLEDGE:
|
||||
{
|
||||
packet = new SessionIndividualAcknowledgeMessage();
|
||||
break;
|
||||
}
|
||||
case NULL_RESPONSE:
|
||||
{
|
||||
packet = new NullResponseMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_RECEIVE_CONTINUATION:
|
||||
{
|
||||
packet = new SessionReceiveContinuationMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_SEND_CONTINUATION:
|
||||
{
|
||||
packet = new SessionSendContinuationMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_PRODUCER_REQUEST_CREDITS:
|
||||
{
|
||||
packet = new SessionRequestProducerCreditsMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_PRODUCER_CREDITS:
|
||||
{
|
||||
packet = new SessionProducerCreditsMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_PRODUCER_FAIL_CREDITS:
|
||||
{
|
||||
packet = new SessionProducerCreditsFailMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_FORCE_CONSUMER_DELIVERY:
|
||||
{
|
||||
packet = new SessionForceConsumerDelivery();
|
||||
break;
|
||||
}
|
||||
case CLUSTER_TOPOLOGY:
|
||||
{
|
||||
packet = new ClusterTopologyChangeMessage();
|
||||
break;
|
||||
}
|
||||
case CLUSTER_TOPOLOGY_V2:
|
||||
{
|
||||
packet = new ClusterTopologyChangeMessage_V2();
|
||||
break;
|
||||
}
|
||||
case CLUSTER_TOPOLOGY_V3:
|
||||
{
|
||||
packet = new ClusterTopologyChangeMessage_V3();
|
||||
break;
|
||||
}
|
||||
case SUBSCRIBE_TOPOLOGY:
|
||||
{
|
||||
packet = new SubscribeClusterTopologyUpdatesMessage();
|
||||
break;
|
||||
}
|
||||
case SUBSCRIBE_TOPOLOGY_V2:
|
||||
{
|
||||
packet = new SubscribeClusterTopologyUpdatesMessageV2();
|
||||
break;
|
||||
}
|
||||
case SESS_ADD_METADATA:
|
||||
{
|
||||
packet = new SessionAddMetaDataMessage();
|
||||
break;
|
||||
}
|
||||
case SESS_ADD_METADATA2:
|
||||
{
|
||||
packet = new SessionAddMetaDataMessageV2();
|
||||
break;
|
||||
}
|
||||
case SESS_UNIQUE_ADD_METADATA:
|
||||
{
|
||||
packet = new SessionUniqueAddMetaDataMessage();
|
||||
break;
|
||||
}
|
||||
case PacketImpl.CHECK_FOR_FAILOVER_REPLY:
|
||||
{
|
||||
packet = new CheckFailoverReplyMessage();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
throw ActiveMQClientMessageBundle.BUNDLE.invalidType(packetType);
|
||||
}
|
||||
}
|
||||
|
||||
return packet;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.reader;
|
|
@ -1,18 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.utils;
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.jms.management;
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.jms.client;
|
||||
|
Binary file not shown.
Binary file not shown.
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.core.protocol.proton.converter.jms;
|
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.core.protocol.proton.plug;
|
|
@ -1 +0,0 @@
|
|||
org.apache.activemq.core.protocol.proton.ProtonProtocolManagerFactory
|
|
@ -1 +0,0 @@
|
|||
org.apache.activemq.core.protocol.openwire.OpenWireProtocolManagerFactory
|
|
@ -1 +0,0 @@
|
|||
org.apache.activemq.core.protocol.stomp.StompProtocolManagerFactory
|
|
@ -1,235 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.core.protocol;
|
||||
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CLUSTER_CONNECT;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.CLUSTER_CONNECT_REPLY;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.NODE_ANNOUNCE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.BACKUP_REQUEST;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.BACKUP_REQUEST_RESPONSE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.QUORUM_VOTE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.QUORUM_VOTE_REPLY;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_APPEND;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_APPEND_TX;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_COMMIT_ROLLBACK;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_DELETE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_DELETE_TX;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_LARGE_MESSAGE_BEGIN;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_LARGE_MESSAGE_END;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_LARGE_MESSAGE_WRITE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_PAGE_EVENT;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_PAGE_WRITE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_PREPARE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.REPLICATION_RESPONSE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_SEND;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SESS_SEND_LARGE;
|
||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.SCALEDOWN_ANNOUNCEMENT;
|
||||
|
||||
import org.apache.activemq.api.core.ActiveMQBuffer;
|
||||
import org.apache.activemq.core.protocol.core.Packet;
|
||||
import org.apache.activemq.core.protocol.core.impl.PacketImpl;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.BackupRegistrationMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.BackupReplicationStartFailedMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ClusterConnectMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ClusterConnectReplyMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.NodeAnnounceMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.BackupRequestMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.BackupResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.QuorumVoteMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.QuorumVoteReplyMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationLiveIsStoppingMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationAddMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationAddTXMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationCommitMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationDeleteMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationDeleteTXMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationLargeMessageBeginMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationLargeMessageEndMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationLargeMessageWriteMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationPageEventMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationPageWriteMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationPrepareMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationResponseMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationStartSyncMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ReplicationSyncFileMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.ScaleDownAnnounceMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionSendLargeMessage;
|
||||
import org.apache.activemq.core.protocol.core.impl.wireformat.SessionSendMessage;
|
||||
import org.apache.activemq.core.server.impl.ServerMessageImpl;
|
||||
|
||||
public class ServerPacketDecoder extends ClientPacketDecoder
|
||||
{
|
||||
private static final long serialVersionUID = 3348673114388400766L;
|
||||
public static final ServerPacketDecoder INSTANCE = new ServerPacketDecoder();
|
||||
|
||||
@Override
|
||||
public Packet decode(final ActiveMQBuffer in)
|
||||
{
|
||||
final byte packetType = in.readByte();
|
||||
|
||||
Packet packet;
|
||||
|
||||
switch (packetType)
|
||||
{
|
||||
|
||||
case SESS_SEND:
|
||||
{
|
||||
packet = new SessionSendMessage(new ServerMessageImpl());
|
||||
break;
|
||||
}
|
||||
case SESS_SEND_LARGE:
|
||||
{
|
||||
packet = new SessionSendLargeMessage(new ServerMessageImpl());
|
||||
break;
|
||||
}
|
||||
case REPLICATION_APPEND:
|
||||
{
|
||||
packet = new ReplicationAddMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_APPEND_TX:
|
||||
{
|
||||
packet = new ReplicationAddTXMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_DELETE:
|
||||
{
|
||||
packet = new ReplicationDeleteMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_DELETE_TX:
|
||||
{
|
||||
packet = new ReplicationDeleteTXMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_PREPARE:
|
||||
{
|
||||
packet = new ReplicationPrepareMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_COMMIT_ROLLBACK:
|
||||
{
|
||||
packet = new ReplicationCommitMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_RESPONSE:
|
||||
{
|
||||
packet = new ReplicationResponseMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_PAGE_WRITE:
|
||||
{
|
||||
packet = new ReplicationPageWriteMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_PAGE_EVENT:
|
||||
{
|
||||
packet = new ReplicationPageEventMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_LARGE_MESSAGE_BEGIN:
|
||||
{
|
||||
packet = new ReplicationLargeMessageBeginMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_LARGE_MESSAGE_END:
|
||||
{
|
||||
packet = new ReplicationLargeMessageEndMessage();
|
||||
break;
|
||||
}
|
||||
case REPLICATION_LARGE_MESSAGE_WRITE:
|
||||
{
|
||||
packet = new ReplicationLargeMessageWriteMessage();
|
||||
break;
|
||||
}
|
||||
case PacketImpl.BACKUP_REGISTRATION:
|
||||
{
|
||||
packet = new BackupRegistrationMessage();
|
||||
break;
|
||||
}
|
||||
case PacketImpl.BACKUP_REGISTRATION_FAILED:
|
||||
{
|
||||
packet = new BackupReplicationStartFailedMessage();
|
||||
break;
|
||||
}
|
||||
case PacketImpl.REPLICATION_START_FINISH_SYNC:
|
||||
{
|
||||
packet = new ReplicationStartSyncMessage();
|
||||
break;
|
||||
}
|
||||
case PacketImpl.REPLICATION_SYNC_FILE:
|
||||
{
|
||||
packet = new ReplicationSyncFileMessage();
|
||||
break;
|
||||
}
|
||||
case PacketImpl.REPLICATION_SCHEDULED_FAILOVER:
|
||||
{
|
||||
packet = new ReplicationLiveIsStoppingMessage();
|
||||
break;
|
||||
}
|
||||
case CLUSTER_CONNECT:
|
||||
{
|
||||
packet = new ClusterConnectMessage();
|
||||
break;
|
||||
}
|
||||
case CLUSTER_CONNECT_REPLY:
|
||||
{
|
||||
packet = new ClusterConnectReplyMessage();
|
||||
break;
|
||||
}
|
||||
case NODE_ANNOUNCE:
|
||||
{
|
||||
packet = new NodeAnnounceMessage();
|
||||
break;
|
||||
}
|
||||
case BACKUP_REQUEST:
|
||||
{
|
||||
packet = new BackupRequestMessage();
|
||||
break;
|
||||
}
|
||||
case BACKUP_REQUEST_RESPONSE:
|
||||
{
|
||||
packet = new BackupResponseMessage();
|
||||
break;
|
||||
}
|
||||
case QUORUM_VOTE:
|
||||
{
|
||||
packet = new QuorumVoteMessage();
|
||||
break;
|
||||
}
|
||||
case QUORUM_VOTE_REPLY:
|
||||
{
|
||||
packet = new QuorumVoteReplyMessage();
|
||||
break;
|
||||
}
|
||||
case SCALEDOWN_ANNOUNCEMENT:
|
||||
{
|
||||
packet = new ScaleDownAnnounceMessage();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
packet = super.decode(packetType);
|
||||
}
|
||||
}
|
||||
|
||||
packet.decode(in);
|
||||
|
||||
return packet;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.spi.core.security;
|
||||
|
|
@ -1 +0,0 @@
|
|||
org.apache.activemq.service.extensions.tests.transactions.DummyTransactionManagerLocator
|
|
@ -22,12 +22,12 @@
|
|||
|
||||
<parent>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-pom</artifactId>
|
||||
<version>10.0.0-SNAPSHOT</version>
|
||||
<artifactId>artemis-pom</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<relativePath>..</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>activemq-boot</artifactId>
|
||||
<artifactId>artemis-boot</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>ActiveMQ Artemis Boot</name>
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.boot;
|
||||
package org.apache.activemq.artemis.boot;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
@ -98,7 +98,7 @@ public class ActiveMQ
|
|||
// Now setup our classloader..
|
||||
URLClassLoader loader = new URLClassLoader(urls.toArray(new URL[urls.size()]));
|
||||
Thread.currentThread().setContextClassLoader(loader);
|
||||
Class<?> clazz = loader.loadClass("org.apache.activemq.cli.ActiveMQ");
|
||||
Class<?> clazz = loader.loadClass("org.apache.activemq.artemis.cli.ActiveMQ");
|
||||
Method method = clazz.getMethod("main", args.getClass());
|
||||
try
|
||||
{
|
|
@ -19,11 +19,11 @@
|
|||
|
||||
<parent>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-pom</artifactId>
|
||||
<version>10.0.0-SNAPSHOT</version>
|
||||
<artifactId>artemis-pom</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>activemq-bootstrap</artifactId>
|
||||
<artifactId>artemis-bootstrap</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>ActiveMQ Artemis Bootstrap</name>
|
||||
|
||||
|
@ -34,17 +34,17 @@
|
|||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-server</artifactId>
|
||||
<artifactId>artemis-server</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-jms-server</artifactId>
|
||||
<artifactId>artemis-jms-server</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-dto</artifactId>
|
||||
<artifactId>artemis-dto</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -76,19 +76,19 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-amqp-protocol</artifactId>
|
||||
<artifactId>artemis-amqp-protocol</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-stomp-protocol</artifactId>
|
||||
<artifactId>artemis-stomp-protocol</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-openwire-protocol</artifactId>
|
||||
<artifactId>artemis-openwire-protocol</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
|
@ -0,0 +1,8 @@
|
|||
_ _ _
|
||||
/ \ ____| |_ ___ __ __(_) _____
|
||||
/ _ \| _ \ __|/ _ \ \/ | |/ __/
|
||||
/ ___ \ | \/ |_/ __/ |\/| | |\___ \
|
||||
/_/ \_\| \__\____|_| |_|_|/___ /
|
||||
Apache ActiveMQ Artemis ${project.version}
|
||||
|
||||
|
|
@ -14,16 +14,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.cli;
|
||||
package org.apache.activemq.artemis.cli;
|
||||
|
||||
import io.airlift.command.Cli;
|
||||
import io.airlift.command.ParseArgumentsUnexpectedException;
|
||||
import org.apache.activemq.cli.commands.Action;
|
||||
import org.apache.activemq.cli.commands.ActionContext;
|
||||
import org.apache.activemq.cli.commands.Create;
|
||||
import org.apache.activemq.cli.commands.HelpAction;
|
||||
import org.apache.activemq.cli.commands.Run;
|
||||
import org.apache.activemq.cli.commands.Stop;
|
||||
import org.apache.activemq.artemis.cli.commands.Action;
|
||||
import org.apache.activemq.artemis.cli.commands.ActionContext;
|
||||
import org.apache.activemq.artemis.cli.commands.Create;
|
||||
import org.apache.activemq.artemis.cli.commands.HelpAction;
|
||||
import org.apache.activemq.artemis.cli.commands.Run;
|
||||
import org.apache.activemq.artemis.cli.commands.Stop;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.cli;
|
||||
package org.apache.activemq.artemis.cli;
|
||||
|
||||
public class ConfigurationException extends Exception
|
||||
{
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.cli.commands;
|
||||
package org.apache.activemq.artemis.cli.commands;
|
||||
|
||||
public interface Action
|
||||
{
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.cli.commands;
|
||||
package org.apache.activemq.artemis.cli.commands;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.PrintStream;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.activemq.cli.commands;
|
||||
package org.apache.activemq.artemis.cli.commands;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.cli.commands;
|
||||
package org.apache.activemq.artemis.cli.commands;
|
||||
|
||||
import io.airlift.command.Help;
|
||||
|
|
@ -14,21 +14,21 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.cli.commands;
|
||||
package org.apache.activemq.artemis.cli.commands;
|
||||
|
||||
import io.airlift.command.Arguments;
|
||||
import io.airlift.command.Command;
|
||||
|
||||
import org.apache.activemq.cli.ActiveMQ;
|
||||
import org.apache.activemq.components.ExternalComponent;
|
||||
import org.apache.activemq.core.server.ActiveMQComponent;
|
||||
import org.apache.activemq.dto.BrokerDTO;
|
||||
import org.apache.activemq.dto.ComponentDTO;
|
||||
import org.apache.activemq.factory.BrokerFactory;
|
||||
import org.apache.activemq.factory.SecurityManagerFactory;
|
||||
import org.apache.activemq.integration.Broker;
|
||||
import org.apache.activemq.integration.bootstrap.ActiveMQBootstrapLogger;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.cli.ActiveMQ;
|
||||
import org.apache.activemq.artemis.components.ExternalComponent;
|
||||
import org.apache.activemq.artemis.core.server.ActiveMQComponent;
|
||||
import org.apache.activemq.artemis.dto.BrokerDTO;
|
||||
import org.apache.activemq.artemis.dto.ComponentDTO;
|
||||
import org.apache.activemq.artemis.factory.BrokerFactory;
|
||||
import org.apache.activemq.artemis.factory.SecurityManagerFactory;
|
||||
import org.apache.activemq.artemis.integration.Broker;
|
||||
import org.apache.activemq.artemis.integration.bootstrap.ActiveMQBootstrapLogger;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URI;
|
|
@ -14,12 +14,12 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.cli.commands;
|
||||
package org.apache.activemq.artemis.cli.commands;
|
||||
|
||||
import io.airlift.command.Arguments;
|
||||
import io.airlift.command.Command;
|
||||
import org.apache.activemq.dto.BrokerDTO;
|
||||
import org.apache.activemq.factory.BrokerFactory;
|
||||
import org.apache.activemq.artemis.dto.BrokerDTO;
|
||||
import org.apache.activemq.artemis.factory.BrokerFactory;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URI;
|
|
@ -14,10 +14,10 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.components;
|
||||
package org.apache.activemq.artemis.components;
|
||||
|
||||
import org.apache.activemq.core.server.ActiveMQComponent;
|
||||
import org.apache.activemq.dto.ComponentDTO;
|
||||
import org.apache.activemq.artemis.core.server.ActiveMQComponent;
|
||||
import org.apache.activemq.artemis.dto.ComponentDTO;
|
||||
|
||||
public interface ExternalComponent extends ActiveMQComponent
|
||||
{
|
|
@ -14,15 +14,15 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.factory;
|
||||
package org.apache.activemq.artemis.factory;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.apache.activemq.core.config.impl.FileSecurityConfiguration;
|
||||
import org.apache.activemq.dto.BasicSecurityDTO;
|
||||
import org.apache.activemq.dto.SecurityDTO;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManagerImpl;
|
||||
import org.apache.activemq.artemis.core.config.impl.FileSecurityConfiguration;
|
||||
import org.apache.activemq.artemis.dto.BasicSecurityDTO;
|
||||
import org.apache.activemq.artemis.dto.SecurityDTO;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManagerImpl;
|
||||
|
||||
public class BasicSecurityHandler implements SecurityHandler
|
||||
{
|
|
@ -14,14 +14,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.factory;
|
||||
package org.apache.activemq.artemis.factory;
|
||||
|
||||
import org.apache.activemq.cli.ConfigurationException;
|
||||
import org.apache.activemq.dto.BrokerDTO;
|
||||
import org.apache.activemq.dto.ServerDTO;
|
||||
import org.apache.activemq.integration.Broker;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.utils.FactoryFinder;
|
||||
import org.apache.activemq.artemis.cli.ConfigurationException;
|
||||
import org.apache.activemq.artemis.dto.BrokerDTO;
|
||||
import org.apache.activemq.artemis.dto.ServerDTO;
|
||||
import org.apache.activemq.artemis.integration.Broker;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.utils.FactoryFinder;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
@ -40,7 +40,7 @@ public class BrokerFactory
|
|||
BrokerFactoryHandler factory = null;
|
||||
try
|
||||
{
|
||||
FactoryFinder finder = new FactoryFinder("META-INF/services/org/apache/activemq/broker/");
|
||||
FactoryFinder finder = new FactoryFinder("META-INF/services/org/apache/activemq/artemis/broker/");
|
||||
factory = (BrokerFactoryHandler) finder.newInstance(configURI.getScheme());
|
||||
}
|
||||
catch (IOException ioe)
|
||||
|
@ -76,7 +76,7 @@ public class BrokerFactory
|
|||
|
||||
try
|
||||
{
|
||||
FactoryFinder finder = new FactoryFinder("META-INF/services/org/apache/activemq/broker/server/");
|
||||
FactoryFinder finder = new FactoryFinder("META-INF/services/org/apache/activemq/artemis/broker/server/");
|
||||
handler = (BrokerHandler) finder.newInstance(configURI.getScheme());
|
||||
}
|
||||
catch (IOException ioe)
|
|
@ -14,9 +14,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.factory;
|
||||
package org.apache.activemq.artemis.factory;
|
||||
|
||||
import org.apache.activemq.dto.BrokerDTO;
|
||||
import org.apache.activemq.artemis.dto.BrokerDTO;
|
||||
|
||||
import java.net.URI;
|
||||
|
|
@ -14,11 +14,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.factory;
|
||||
package org.apache.activemq.artemis.factory;
|
||||
|
||||
import org.apache.activemq.dto.ServerDTO;
|
||||
import org.apache.activemq.integration.Broker;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.dto.ServerDTO;
|
||||
import org.apache.activemq.artemis.integration.Broker;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
|
||||
public interface BrokerHandler
|
||||
{
|
|
@ -14,12 +14,12 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.factory;
|
||||
package org.apache.activemq.artemis.factory;
|
||||
|
||||
import org.apache.activemq.dto.ServerDTO;
|
||||
import org.apache.activemq.integration.Broker;
|
||||
import org.apache.activemq.integration.FileBroker;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.dto.ServerDTO;
|
||||
import org.apache.activemq.artemis.integration.Broker;
|
||||
import org.apache.activemq.artemis.integration.FileBroker;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
|
||||
public class FileBrokerHandler implements BrokerHandler
|
||||
{
|
|
@ -14,10 +14,10 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.factory;
|
||||
package org.apache.activemq.artemis.factory;
|
||||
|
||||
import org.apache.activemq.dto.SecurityDTO;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.dto.SecurityDTO;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
|
||||
public interface SecurityHandler
|
||||
{
|
|
@ -14,11 +14,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.factory;
|
||||
package org.apache.activemq.artemis.factory;
|
||||
|
||||
import org.apache.activemq.dto.SecurityDTO;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.utils.FactoryFinder;
|
||||
import org.apache.activemq.artemis.dto.SecurityDTO;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.utils.FactoryFinder;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
|
@ -29,7 +29,7 @@ public class SecurityManagerFactory
|
|||
{
|
||||
if (config != null)
|
||||
{
|
||||
FactoryFinder finder = new FactoryFinder("META-INF/services/org/apache/activemq/broker/security/");
|
||||
FactoryFinder finder = new FactoryFinder("META-INF/services/org/apache/activemq/artemis/broker/security/");
|
||||
SecurityHandler securityHandler = (SecurityHandler)finder.newInstance(config.getClass().getAnnotation(XmlRootElement.class).name());
|
||||
return securityHandler.createSecurityManager(config);
|
||||
}
|
|
@ -14,11 +14,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.factory;
|
||||
package org.apache.activemq.artemis.factory;
|
||||
|
||||
import org.apache.activemq.cli.ConfigurationException;
|
||||
import org.apache.activemq.dto.BrokerDTO;
|
||||
import org.apache.activemq.dto.XmlUtil;
|
||||
import org.apache.activemq.artemis.cli.ConfigurationException;
|
||||
import org.apache.activemq.artemis.dto.BrokerDTO;
|
||||
import org.apache.activemq.artemis.dto.XmlUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URI;
|
|
@ -14,9 +14,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.integration;
|
||||
package org.apache.activemq.artemis.integration;
|
||||
|
||||
import org.apache.activemq.core.server.ActiveMQComponent;
|
||||
import org.apache.activemq.artemis.core.server.ActiveMQComponent;
|
||||
|
||||
/**
|
||||
* A Broker os a set of ActiveMQComponents that create a Server, for instance core and jms.
|
|
@ -14,15 +14,15 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.integration;
|
||||
package org.apache.activemq.artemis.integration;
|
||||
|
||||
import org.apache.activemq.core.config.FileDeploymentManager;
|
||||
import org.apache.activemq.core.config.impl.FileConfiguration;
|
||||
import org.apache.activemq.core.server.ActiveMQComponent;
|
||||
import org.apache.activemq.dto.ServerDTO;
|
||||
import org.apache.activemq.integration.bootstrap.ActiveMQBootstrapLogger;
|
||||
import org.apache.activemq.jms.server.config.impl.FileJMSConfiguration;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManager;
|
||||
import org.apache.activemq.artemis.core.config.FileDeploymentManager;
|
||||
import org.apache.activemq.artemis.core.config.impl.FileConfiguration;
|
||||
import org.apache.activemq.artemis.core.server.ActiveMQComponent;
|
||||
import org.apache.activemq.artemis.dto.ServerDTO;
|
||||
import org.apache.activemq.artemis.integration.bootstrap.ActiveMQBootstrapLogger;
|
||||
import org.apache.activemq.artemis.jms.server.config.impl.FileJMSConfiguration;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager;
|
||||
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.util.ArrayList;
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.integration.bootstrap;
|
||||
package org.apache.activemq.artemis.integration.bootstrap;
|
||||
|
||||
|
||||
import org.jboss.logging.annotations.MessageBundle;
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.integration.bootstrap;
|
||||
package org.apache.activemq.artemis.integration.bootstrap;
|
||||
|
||||
import org.jboss.logging.BasicLogger;
|
||||
import org.jboss.logging.Logger;
|
|
@ -14,4 +14,4 @@
|
|||
## See the License for the specific language governing permissions and
|
||||
## limitations under the License.
|
||||
## ---------------------------------------------------------------------------
|
||||
class=org.apache.activemq.factory.BasicSecurityHandler
|
||||
class=org.apache.activemq.artemis.factory.BasicSecurityHandler
|
|
@ -14,4 +14,4 @@
|
|||
## See the License for the specific language governing permissions and
|
||||
## limitations under the License.
|
||||
## ---------------------------------------------------------------------------
|
||||
class=org.apache.activemq.factory.FileBrokerHandler
|
||||
class=org.apache.activemq.artemis.factory.FileBrokerHandler
|
|
@ -14,4 +14,4 @@
|
|||
## See the License for the specific language governing permissions and
|
||||
## limitations under the License.
|
||||
## ---------------------------------------------------------------------------
|
||||
class=org.apache.activemq.factory.XmlBrokerFactoryHandler
|
||||
class=org.apache.activemq.artemis.factory.XmlBrokerFactoryHandler
|
|
@ -53,7 +53,7 @@ JAVA_ARGS="-XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -X
|
|||
# Load Profile Data
|
||||
. "$ACTIVEMQ_INSTANCE/etc/activemq.profile"
|
||||
|
||||
CLASSPATH="$ACTIVEMQ_HOME/lib/activemq-boot.jar"
|
||||
CLASSPATH="$ACTIVEMQ_HOME/lib/artemis-boot.jar"
|
||||
|
||||
# OS specific support.
|
||||
cygwin=false;
|
||||
|
@ -116,4 +116,4 @@ exec "$JAVACMD" $JAVA_ARGS $ACTIVEMQ_CLUSTER_PROPS \
|
|||
-Djava.util.logging.manager="$ACTIVEMQ_LOG_MANAGER" \
|
||||
-Dlogging.configuration="$ACTIVEMQ_LOGGING_CONF" \
|
||||
$DEBUG_ARGS \
|
||||
org.apache.activemq.boot.ActiveMQ $@
|
||||
org.apache.activemq.artemis.boot.ActiveMQ $@
|
|
@ -20,7 +20,7 @@
|
|||
<service>
|
||||
<id>activemq-${host}</id>
|
||||
<name>ActiveMQ: ${host}</name>
|
||||
<description>Apache ActiveMQ is a reliable messaging broker</description>
|
||||
<description>Apache ActiveMQ Artemis is a reliable messaging broker</description>
|
||||
|
||||
<logpath>${activemq.instance}\log</logpath>
|
||||
<logmode>roll</logmode>
|
||||
|
@ -40,7 +40,7 @@
|
|||
-->
|
||||
|
||||
<argument>-classpath</argument>
|
||||
<argument>"${activemq.home}\lib\activemq-boot.jar"</argument>
|
||||
<argument>"${activemq.home}\lib\artemis-boot.jar"</argument>
|
||||
<argument>"-Dactivemq.home=${activemq.home}"</argument>
|
||||
<argument>"-Dactivemq.instance=${activemq.instance}"</argument>
|
||||
<argument>"-Ddata.dir=${activemq.instance}/data"</argument>
|
||||
|
@ -52,7 +52,7 @@
|
|||
<argument>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005</argument>
|
||||
-->
|
||||
|
||||
<argument>org.apache.activemq.boot.ActiveMQ</argument>
|
||||
<argument>ActiveMQ</argument>
|
||||
|
||||
<argument>run</argument>
|
||||
|
|
@ -59,7 +59,7 @@ call "%ACTIVEMQ_INSTANCE%\etc\activemq.profile.cmd" %*
|
|||
rem "Create full JVM Args"
|
||||
set JVM_ARGS=%JAVA_ARGS%
|
||||
if not "%ACTIVEMQ_CLUSTER_PROPS%"=="" set JVM_ARGS=%JVM_ARGS% %ACTIVEMQ_CLUSTER_PROPS%
|
||||
set JVM_ARGS=%JVM_ARGS% -classpath "%ACTIVEMQ_HOME%\lib\activemq-boot.jar"
|
||||
set JVM_ARGS=%JVM_ARGS% -classpath "%ACTIVEMQ_HOME%\lib\artemis-boot.jar"
|
||||
set JVM_ARGS=%JVM_ARGS% -Dactivemq.home="%ACTIVEMQ_HOME%"
|
||||
set JVM_ARGS=%JVM_ARGS% -Dactivemq.instance="%ACTIVEMQ_INSTANCE%"
|
||||
set JVM_ARGS=%JVM_ARGS% -Ddata.dir="%ACTIVEMQ_DATA_DIR%"
|
||||
|
@ -67,7 +67,7 @@ set JVM_ARGS=%JVM_ARGS% -Djava.util.logging.manager="%ACTIVEMQ_LOG_MANAGER%"
|
|||
set JVM_ARGS=%JVM_ARGS% -Dlogging.configuration="%ACTIVEMQ_LOGGING_CONF%"
|
||||
if not "%DEBUG_ARGS%"=="" set JVM_ARGS=%JVM_ARGS% %DEBUG_ARGS%
|
||||
|
||||
"%_JAVACMD%" %JVM_ARGS% org.apache.activemq.boot.ActiveMQ %*
|
||||
"%_JAVACMD%" %JVM_ARGS% org.apache.activemq.artemis.boot.ActiveMQ %*
|
||||
|
||||
:END
|
||||
endlocal
|
|
@ -17,16 +17,16 @@
|
|||
|
||||
# Additional logger names to configure (root logger is always configured)
|
||||
# Root logger option
|
||||
loggers=org.jboss.logging,org.apache.activemq.core.server,org.apache.activemq.utils,org.apache.activemq.journal,org.apache.activemq.jms.server,org.apache.activemq.integration.bootstrap
|
||||
loggers=org.jboss.logging,org.apache.activemq.artemis.core.server,org.apache.activemq.artemis.utils,org.apache.activemq.artemis.journal,org.apache.activemq.artemis.jms.server,org.apache.activemq.artemis.integration.bootstrap
|
||||
|
||||
# Root logger level
|
||||
logger.level=INFO
|
||||
# ActiveMQ logger levels
|
||||
logger.org.apache.activemq.core.server.level=INFO
|
||||
logger.org.apache.activemq.journal.level=INFO
|
||||
logger.org.apache.activemq.utils.level=INFO
|
||||
logger.org.apache.activemq.jms.level=INFO
|
||||
logger.org.apache.activemq.integration.bootstrap.level=INFO
|
||||
logger.org.apache.activemq.artemis.core.server.level=INFO
|
||||
logger.org.apache.activemq.artemis.journal.level=INFO
|
||||
logger.org.apache.activemq.artemis.utils.level=INFO
|
||||
logger.org.apache.activemq.artemis.jms.level=INFO
|
||||
logger.org.apache.activemq.artemis.integration.bootstrap.level=INFO
|
||||
# Root logger handlers
|
||||
logger.handlers=FILE,CONSOLE
|
||||
|
|
@ -14,13 +14,13 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.test;
|
||||
package org.apache.activemq.artemis.test;
|
||||
|
||||
import org.apache.activemq.core.server.impl.ActiveMQServerImpl;
|
||||
import org.apache.activemq.dto.ServerDTO;
|
||||
import org.apache.activemq.integration.FileBroker;
|
||||
import org.apache.activemq.jms.server.impl.JMSServerManagerImpl;
|
||||
import org.apache.activemq.spi.core.security.ActiveMQSecurityManagerImpl;
|
||||
import org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl;
|
||||
import org.apache.activemq.artemis.dto.ServerDTO;
|
||||
import org.apache.activemq.artemis.integration.FileBroker;
|
||||
import org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl;
|
||||
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManagerImpl;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
|
@ -19,11 +19,11 @@
|
|||
|
||||
<parent>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-pom</artifactId>
|
||||
<version>10.0.0-SNAPSHOT</version>
|
||||
<artifactId>artemis-pom</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>activemq-commons</artifactId>
|
||||
<artifactId>artemis-commons</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>ActiveMQ Artemis Commons</name>
|
||||
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.ADDRESS_EXISTS;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* An operation failed because an address exists on the server.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQAddressExistsException extends ActiveMQException
|
|||
|
||||
public ActiveMQAddressExistsException()
|
||||
{
|
||||
super(ADDRESS_EXISTS);
|
||||
super(ActiveMQExceptionType.ADDRESS_EXISTS);
|
||||
}
|
||||
|
||||
public ActiveMQAddressExistsException(String msg)
|
||||
{
|
||||
super(ADDRESS_EXISTS, msg);
|
||||
super(ActiveMQExceptionType.ADDRESS_EXISTS, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.ADDRESS_FULL;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* An address is full.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQAddressFullException extends ActiveMQException
|
|||
|
||||
public ActiveMQAddressFullException(String message)
|
||||
{
|
||||
super(ADDRESS_FULL, message);
|
||||
super(ActiveMQExceptionType.ADDRESS_FULL, message);
|
||||
}
|
||||
|
||||
public ActiveMQAddressFullException()
|
||||
{
|
||||
super(ADDRESS_FULL);
|
||||
super(ActiveMQExceptionType.ADDRESS_FULL);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.ALREADY_REPLICATING;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* The server is already paired with a replicating backup.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQAlreadyReplicatingException extends ActiveMQException
|
|||
|
||||
public ActiveMQAlreadyReplicatingException()
|
||||
{
|
||||
super(ALREADY_REPLICATING);
|
||||
super(ActiveMQExceptionType.ALREADY_REPLICATING);
|
||||
}
|
||||
|
||||
public ActiveMQAlreadyReplicatingException(String msg)
|
||||
{
|
||||
super(ALREADY_REPLICATING, msg);
|
||||
super(ActiveMQExceptionType.ALREADY_REPLICATING, msg);
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
|
|
@ -14,12 +14,12 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
import io.netty.buffer.Unpooled;
|
||||
import org.apache.activemq.core.buffers.impl.ChannelBufferWrapper;
|
||||
import org.apache.activemq.artemis.core.buffers.impl.ChannelBufferWrapper;
|
||||
|
||||
/**
|
||||
* Factory class to create instances of {@link ActiveMQBuffer}.
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* Security exception thrown when the cluster user fails authentication.
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.CONNECTION_TIMEDOUT;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A client timed out will connecting to ActiveMQ server.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQConnectionTimedOutException extends ActiveMQException
|
|||
|
||||
public ActiveMQConnectionTimedOutException()
|
||||
{
|
||||
super(CONNECTION_TIMEDOUT);
|
||||
super(ActiveMQExceptionType.CONNECTION_TIMEDOUT);
|
||||
}
|
||||
|
||||
public ActiveMQConnectionTimedOutException(String msg)
|
||||
{
|
||||
super(CONNECTION_TIMEDOUT, msg);
|
||||
super(ActiveMQExceptionType.CONNECTION_TIMEDOUT, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.DISCONNECTED;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A client was disconnected from ActiveMQ server when the server has shut down.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQDisconnectedException extends ActiveMQException
|
|||
|
||||
public ActiveMQDisconnectedException()
|
||||
{
|
||||
super(DISCONNECTED);
|
||||
super(ActiveMQExceptionType.DISCONNECTED);
|
||||
}
|
||||
|
||||
public ActiveMQDisconnectedException(String message)
|
||||
{
|
||||
super(DISCONNECTED, message);
|
||||
super(ActiveMQExceptionType.DISCONNECTED, message);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.DUPLICATE_ID_REJECTED;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A DuplicateID was rejected.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQDuplicateIdException extends ActiveMQException
|
|||
|
||||
public ActiveMQDuplicateIdException()
|
||||
{
|
||||
super(DUPLICATE_ID_REJECTED);
|
||||
super(ActiveMQExceptionType.DUPLICATE_ID_REJECTED);
|
||||
}
|
||||
|
||||
public ActiveMQDuplicateIdException(String message)
|
||||
{
|
||||
super(DUPLICATE_ID_REJECTED, message);
|
||||
super(ActiveMQExceptionType.DUPLICATE_ID_REJECTED, message);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.DUPLICATE_METADATA;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A Session Metadata was set in duplication
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQDuplicateMetaDataException extends ActiveMQException
|
|||
|
||||
public ActiveMQDuplicateMetaDataException()
|
||||
{
|
||||
super(DUPLICATE_METADATA);
|
||||
super(ActiveMQExceptionType.DUPLICATE_METADATA);
|
||||
}
|
||||
|
||||
public ActiveMQDuplicateMetaDataException(String msg)
|
||||
{
|
||||
super(DUPLICATE_METADATA, msg);
|
||||
super(ActiveMQExceptionType.DUPLICATE_METADATA, msg);
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* ActiveMQException is the root exception for the ActiveMQ API.
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.EnumSet;
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.IO_ERROR;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* Unexpected I/O error occurred on the server.
|
||||
|
@ -27,16 +25,16 @@ public final class ActiveMQIOErrorException extends ActiveMQException
|
|||
|
||||
public ActiveMQIOErrorException()
|
||||
{
|
||||
super(IO_ERROR);
|
||||
super(ActiveMQExceptionType.IO_ERROR);
|
||||
}
|
||||
|
||||
public ActiveMQIOErrorException(String msg)
|
||||
{
|
||||
super(IO_ERROR, msg);
|
||||
super(ActiveMQExceptionType.IO_ERROR, msg);
|
||||
}
|
||||
|
||||
public ActiveMQIOErrorException(String msg, Throwable cause)
|
||||
{
|
||||
super(IO_ERROR, msg, cause);
|
||||
super(ActiveMQExceptionType.IO_ERROR, msg, cause);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.ILLEGAL_STATE;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A ActiveMQ resource is not in a legal state (e.g. calling ClientConsumer.receive() if a
|
||||
|
@ -28,11 +26,11 @@ public final class ActiveMQIllegalStateException extends ActiveMQException
|
|||
|
||||
public ActiveMQIllegalStateException()
|
||||
{
|
||||
super(ILLEGAL_STATE);
|
||||
super(ActiveMQExceptionType.ILLEGAL_STATE);
|
||||
}
|
||||
|
||||
public ActiveMQIllegalStateException(String message)
|
||||
{
|
||||
super(ILLEGAL_STATE, message);
|
||||
super(ActiveMQExceptionType.ILLEGAL_STATE, message);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.INCOMPATIBLE_CLIENT_SERVER_VERSIONS;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* The server version and the client version are incompatible.
|
||||
|
@ -29,11 +27,11 @@ public final class ActiveMQIncompatibleClientServerException extends ActiveMQExc
|
|||
|
||||
public ActiveMQIncompatibleClientServerException()
|
||||
{
|
||||
super(INCOMPATIBLE_CLIENT_SERVER_VERSIONS);
|
||||
super(ActiveMQExceptionType.INCOMPATIBLE_CLIENT_SERVER_VERSIONS);
|
||||
}
|
||||
|
||||
public ActiveMQIncompatibleClientServerException(String msg)
|
||||
{
|
||||
super(INCOMPATIBLE_CLIENT_SERVER_VERSIONS, msg);
|
||||
super(ActiveMQExceptionType.INCOMPATIBLE_CLIENT_SERVER_VERSIONS, msg);
|
||||
}
|
||||
}
|
|
@ -14,13 +14,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.INTERCEPTOR_REJECTED_PACKET;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* An outgoing interceptor returned false.
|
||||
* See org.apache.activemq.api.core.client.ServerLocator#addOutgoingInterceptor(org.apache.activemq.api.core.Interceptor)
|
||||
* See org.apache.activemq.artemis.api.core.client.ServerLocator#addOutgoingInterceptor(org.apache.activemq.artemis.api.core.Interceptor)
|
||||
*/
|
||||
// XXX I doubt any reader will make much sense of this Javadoc's text.
|
||||
public final class ActiveMQInterceptorRejectedPacketException extends ActiveMQException
|
||||
|
@ -29,11 +27,11 @@ public final class ActiveMQInterceptorRejectedPacketException extends ActiveMQEx
|
|||
|
||||
public ActiveMQInterceptorRejectedPacketException()
|
||||
{
|
||||
super(INTERCEPTOR_REJECTED_PACKET);
|
||||
super(ActiveMQExceptionType.INTERCEPTOR_REJECTED_PACKET);
|
||||
}
|
||||
|
||||
public ActiveMQInterceptorRejectedPacketException(String msg)
|
||||
{
|
||||
super(INTERCEPTOR_REJECTED_PACKET, msg);
|
||||
super(ActiveMQExceptionType.INTERCEPTOR_REJECTED_PACKET, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.INTERNAL_ERROR;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* Internal error which prevented ActiveMQ from performing an important operation.
|
||||
|
@ -27,21 +25,21 @@ public final class ActiveMQInternalErrorException extends ActiveMQException
|
|||
|
||||
public ActiveMQInternalErrorException()
|
||||
{
|
||||
super(INTERNAL_ERROR);
|
||||
super(ActiveMQExceptionType.INTERNAL_ERROR);
|
||||
}
|
||||
|
||||
public ActiveMQInternalErrorException(String msg)
|
||||
{
|
||||
super(INTERNAL_ERROR, msg);
|
||||
super(ActiveMQExceptionType.INTERNAL_ERROR, msg);
|
||||
}
|
||||
|
||||
public ActiveMQInternalErrorException(String message, Exception e)
|
||||
{
|
||||
super(INTERNAL_ERROR, message, e);
|
||||
super(ActiveMQExceptionType.INTERNAL_ERROR, message, e);
|
||||
}
|
||||
|
||||
public ActiveMQInternalErrorException(String message, Throwable t)
|
||||
{
|
||||
super(INTERNAL_ERROR, message, t);
|
||||
super(ActiveMQExceptionType.INTERNAL_ERROR, message, t);
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* When an interruption happens, we will just throw a non-checked exception.
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.INVALID_FILTER_EXPRESSION;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A filter expression was found to be invalid.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQInvalidFilterExpressionException extends ActiveMQExce
|
|||
|
||||
public ActiveMQInvalidFilterExpressionException()
|
||||
{
|
||||
super(INVALID_FILTER_EXPRESSION);
|
||||
super(ActiveMQExceptionType.INVALID_FILTER_EXPRESSION);
|
||||
}
|
||||
|
||||
public ActiveMQInvalidFilterExpressionException(String msg)
|
||||
{
|
||||
super(INVALID_FILTER_EXPRESSION, msg);
|
||||
super(ActiveMQExceptionType.INVALID_FILTER_EXPRESSION, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.INVALID_TRANSIENT_QUEUE_USE;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* An operation failed because a queue exists on the server.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQInvalidTransientQueueUseException extends ActiveMQExc
|
|||
|
||||
public ActiveMQInvalidTransientQueueUseException()
|
||||
{
|
||||
super(INVALID_TRANSIENT_QUEUE_USE);
|
||||
super(ActiveMQExceptionType.INVALID_TRANSIENT_QUEUE_USE);
|
||||
}
|
||||
|
||||
public ActiveMQInvalidTransientQueueUseException(String msg)
|
||||
{
|
||||
super(INVALID_TRANSIENT_QUEUE_USE, msg);
|
||||
super(ActiveMQExceptionType.INVALID_TRANSIENT_QUEUE_USE, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.LARGE_MESSAGE_ERROR_BODY;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A problem occurred while manipulating the body of a large message.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQLargeMessageException extends ActiveMQException
|
|||
|
||||
public ActiveMQLargeMessageException()
|
||||
{
|
||||
super(LARGE_MESSAGE_ERROR_BODY);
|
||||
super(ActiveMQExceptionType.LARGE_MESSAGE_ERROR_BODY);
|
||||
}
|
||||
|
||||
public ActiveMQLargeMessageException(String msg)
|
||||
{
|
||||
super(LARGE_MESSAGE_ERROR_BODY, msg);
|
||||
super(ActiveMQExceptionType.LARGE_MESSAGE_ERROR_BODY, msg);
|
||||
}
|
||||
}
|
|
@ -14,11 +14,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.LARGE_MESSAGE_INTERRUPTED;
|
||||
|
||||
/**
|
||||
*/
|
||||
// XXX
|
||||
|
@ -28,11 +26,11 @@ public class ActiveMQLargeMessageInterruptedException extends ActiveMQException
|
|||
|
||||
public ActiveMQLargeMessageInterruptedException(String message)
|
||||
{
|
||||
super(LARGE_MESSAGE_INTERRUPTED, message);
|
||||
super(ActiveMQExceptionType.LARGE_MESSAGE_INTERRUPTED, message);
|
||||
}
|
||||
|
||||
public ActiveMQLargeMessageInterruptedException()
|
||||
{
|
||||
super(LARGE_MESSAGE_INTERRUPTED);
|
||||
super(ActiveMQExceptionType.LARGE_MESSAGE_INTERRUPTED);
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
|
||||
/**
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.QUEUE_DOES_NOT_EXIST;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* An operation failed because a queue does not exist on the server.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQNonExistentQueueException extends ActiveMQException
|
|||
|
||||
public ActiveMQNonExistentQueueException()
|
||||
{
|
||||
super(QUEUE_DOES_NOT_EXIST);
|
||||
super(ActiveMQExceptionType.QUEUE_DOES_NOT_EXIST);
|
||||
}
|
||||
|
||||
public ActiveMQNonExistentQueueException(String msg)
|
||||
{
|
||||
super(QUEUE_DOES_NOT_EXIST, msg);
|
||||
super(ActiveMQExceptionType.QUEUE_DOES_NOT_EXIST, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.NOT_CONNECTED;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A client is not able to connect to ActiveMQ server.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQNotConnectedException extends ActiveMQException
|
|||
|
||||
public ActiveMQNotConnectedException(String message)
|
||||
{
|
||||
super(NOT_CONNECTED, message);
|
||||
super(ActiveMQExceptionType.NOT_CONNECTED, message);
|
||||
}
|
||||
|
||||
public ActiveMQNotConnectedException()
|
||||
{
|
||||
super(NOT_CONNECTED);
|
||||
super(ActiveMQExceptionType.NOT_CONNECTED);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.OBJECT_CLOSED;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A client operation failed because the calling resource (ClientSession, ClientProducer, etc.) is
|
||||
|
@ -28,11 +26,11 @@ public final class ActiveMQObjectClosedException extends ActiveMQException
|
|||
|
||||
public ActiveMQObjectClosedException()
|
||||
{
|
||||
super(OBJECT_CLOSED);
|
||||
super(ActiveMQExceptionType.OBJECT_CLOSED);
|
||||
}
|
||||
|
||||
public ActiveMQObjectClosedException(String msg)
|
||||
{
|
||||
super(OBJECT_CLOSED, msg);
|
||||
super(ActiveMQExceptionType.OBJECT_CLOSED, msg);
|
||||
}
|
||||
}
|
|
@ -14,10 +14,10 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A PropertyConversionException is thrown by {@code org.apache.activemq.api.core.Message} methods when a
|
||||
* A PropertyConversionException is thrown by {@code org.apache.activemq.artemis.api.core.Message} methods when a
|
||||
* property can not be converted to the expected type.
|
||||
*/
|
||||
public final class ActiveMQPropertyConversionException extends RuntimeException
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.QUEUE_EXISTS;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* An operation failed because a queue exists on the server.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQQueueExistsException extends ActiveMQException
|
|||
|
||||
public ActiveMQQueueExistsException()
|
||||
{
|
||||
super(QUEUE_EXISTS);
|
||||
super(ActiveMQExceptionType.QUEUE_EXISTS);
|
||||
}
|
||||
|
||||
public ActiveMQQueueExistsException(String msg)
|
||||
{
|
||||
super(QUEUE_EXISTS, msg);
|
||||
super(ActiveMQExceptionType.QUEUE_EXISTS, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.SECURITY_EXCEPTION;
|
||||
import static org.apache.activemq.artemis.api.core.ActiveMQExceptionType.SECURITY_EXCEPTION;
|
||||
|
||||
/**
|
||||
* A security problem occurred (authentication issues, permission issues,...)
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.SESSION_CREATION_REJECTED;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* The creation of a session was rejected by the server (e.g. if the server is starting and has not
|
||||
|
@ -28,11 +26,11 @@ public final class ActiveMQSessionCreationException extends ActiveMQException
|
|||
|
||||
public ActiveMQSessionCreationException()
|
||||
{
|
||||
super(SESSION_CREATION_REJECTED);
|
||||
super(ActiveMQExceptionType.SESSION_CREATION_REJECTED);
|
||||
}
|
||||
|
||||
public ActiveMQSessionCreationException(String msg)
|
||||
{
|
||||
super(SESSION_CREATION_REJECTED, msg);
|
||||
super(ActiveMQExceptionType.SESSION_CREATION_REJECTED, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.TRANSACTION_OUTCOME_UNKNOWN;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* The outcome of a transaction is unknown.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQTransactionOutcomeUnknownException extends ActiveMQEx
|
|||
|
||||
public ActiveMQTransactionOutcomeUnknownException()
|
||||
{
|
||||
super(TRANSACTION_OUTCOME_UNKNOWN);
|
||||
super(ActiveMQExceptionType.TRANSACTION_OUTCOME_UNKNOWN);
|
||||
}
|
||||
|
||||
public ActiveMQTransactionOutcomeUnknownException(String msg)
|
||||
{
|
||||
super(TRANSACTION_OUTCOME_UNKNOWN, msg);
|
||||
super(ActiveMQExceptionType.TRANSACTION_OUTCOME_UNKNOWN, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.TRANSACTION_ROLLED_BACK;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A transaction was rolled back.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQTransactionRolledBackException extends ActiveMQExcept
|
|||
|
||||
public ActiveMQTransactionRolledBackException()
|
||||
{
|
||||
super(TRANSACTION_ROLLED_BACK);
|
||||
super(ActiveMQExceptionType.TRANSACTION_ROLLED_BACK);
|
||||
}
|
||||
|
||||
public ActiveMQTransactionRolledBackException(String msg)
|
||||
{
|
||||
super(TRANSACTION_ROLLED_BACK, msg);
|
||||
super(ActiveMQExceptionType.TRANSACTION_ROLLED_BACK, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.UNBLOCKED;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A blocking call from a client was unblocked during failover.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQUnBlockedException extends ActiveMQException
|
|||
|
||||
public ActiveMQUnBlockedException()
|
||||
{
|
||||
super(UNBLOCKED);
|
||||
super(ActiveMQExceptionType.UNBLOCKED);
|
||||
}
|
||||
|
||||
public ActiveMQUnBlockedException(String msg)
|
||||
{
|
||||
super(UNBLOCKED, msg);
|
||||
super(ActiveMQExceptionType.UNBLOCKED, msg);
|
||||
}
|
||||
}
|
|
@ -14,9 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
|
||||
import static org.apache.activemq.api.core.ActiveMQExceptionType.UNSUPPORTED_PACKET;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
/**
|
||||
* A packet of unsupported type was received by ActiveMQ PacketHandler.
|
||||
|
@ -27,11 +25,11 @@ public final class ActiveMQUnsupportedPacketException extends ActiveMQException
|
|||
|
||||
public ActiveMQUnsupportedPacketException()
|
||||
{
|
||||
super(UNSUPPORTED_PACKET);
|
||||
super(ActiveMQExceptionType.UNSUPPORTED_PACKET);
|
||||
}
|
||||
|
||||
public ActiveMQUnsupportedPacketException(String msg)
|
||||
{
|
||||
super(UNSUPPORTED_PACKET, msg);
|
||||
super(ActiveMQExceptionType.UNSUPPORTED_PACKET, msg);
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.api.core;
|
||||
package org.apache.activemq.artemis.api.core;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue