001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.activemq.tool.properties;
018
019 public class JmsClientProperties extends AbstractObjectProperties {
020 public static final String SESSION_AUTO_ACKNOWLEDGE = "autoAck";
021 public static final String SESSION_CLIENT_ACKNOWLEDGE = "clientAck";
022 public static final String SESSION_DUPS_OK_ACKNOWLEDGE = "dupsAck";
023 public static final String SESSION_TRANSACTED = "transacted";
024
025 protected String destName = "TEST.FOO";
026 protected boolean destComposite;
027
028 protected String sessAckMode = SESSION_AUTO_ACKNOWLEDGE;
029 protected boolean sessTransacted;
030
031 // commit transaction after X msgs only.
032 protected int commitAfterXMsgs = 1;
033
034 protected String jmsProvider;
035 protected String jmsVersion;
036 protected String jmsProperties;
037
038 public String getDestName() {
039 return destName;
040 }
041
042 public void setDestName(String destName) {
043 this.destName = destName;
044 }
045
046 public boolean isDestComposite() {
047 return destComposite;
048 }
049
050 public void setDestComposite(boolean destComposite) {
051 this.destComposite = destComposite;
052 }
053
054 public String getSessAckMode() {
055 return sessAckMode;
056 }
057
058 public void setSessAckMode(String sessAckMode) {
059 this.sessAckMode = sessAckMode;
060 }
061
062 public boolean isSessTransacted() {
063 return sessTransacted;
064 }
065
066 public void setSessTransacted(boolean sessTransacted) {
067 this.sessTransacted = sessTransacted;
068 }
069
070 public void setCommitAfterXMsgs(int commitAfterXMsg) {
071 this.commitAfterXMsgs = commitAfterXMsg;
072 }
073
074 public int getCommitAfterXMsgs() {
075 return this.commitAfterXMsgs;
076 }
077
078 public String getJmsProvider() {
079 return jmsProvider;
080 }
081
082 public void setJmsProvider(String jmsProvider) {
083 this.jmsProvider = jmsProvider;
084 }
085
086 public String getJmsVersion() {
087 return jmsVersion;
088 }
089
090 public void setJmsVersion(String jmsVersion) {
091 this.jmsVersion = jmsVersion;
092 }
093
094 public String getJmsProperties() {
095 return jmsProperties;
096 }
097
098 public void setJmsProperties(String jmsProperties) {
099 this.jmsProperties = jmsProperties;
100 }
101 }