alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

ActiveMQ example source code file (JmsClientSystemProperties.java)

This example ActiveMQ source code file (JmsClientSystemProperties.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - ActiveMQ tags/keywords

dest_distro_all, dest_distro_equal, each, file, file, io, report, report, report_xml_file, sampler_cpu, sampler_cpu, sampler_tp, start, string, string

The ActiveMQ JmsClientSystemProperties.java source code

/**
 * 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.tool.properties;

import java.io.File;

public class JmsClientSystemProperties extends AbstractObjectProperties {
    public static final String DEST_DISTRO_ALL    = "all";    // Each client will send/receive to all destination;
    public static final String DEST_DISTRO_EQUAL  = "equal";  // Equally divide the number of destinations to the number of clients
    public static final String DEST_DISTRO_DIVIDE = "divide"; // Divide the destination among the clients, even if some have more destination than others

    public static final String REPORT_VERBOSE  = "verbose"; // Report would be generated to the console
    public static final String REPORT_XML_FILE = "xml"; // Report would be generated to an xml file

    public static final String SAMPLER_TP  = "tp";
    public static final String SAMPLER_CPU = "cpu";

    protected File propsConfigFile;

    protected String reportType = REPORT_XML_FILE;
    protected String reportDir  = "./";
    protected String reportName;

    protected String samplers = SAMPLER_TP + "," + SAMPLER_CPU; // Start both samplers

    protected String spiClass = "org.apache.activemq.tool.spi.ActiveMQReflectionSPI";
    protected String clientPrefix = "JmsClient";
    protected int numClients = 1;
    protected int totalDests = 1;
    protected String destDistro = DEST_DISTRO_ALL;

    public String getReportType() {
        return reportType;
    }

    public void setReportType(String reportType) {
        this.reportType = reportType;
    }

    public String getReportDir() {
        return reportDir;
    }

    public void setReportDir(String reportDir) {
        this.reportDir = reportDir;
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName;
    }

    public String getSamplers() {
        return samplers;
    }

    public void setSamplers(String samplers) {
        this.samplers = samplers;
    }

    public String getSpiClass() {
        return spiClass;
    }

    public void setSpiClass(String spiClass) {
        this.spiClass = spiClass;
    }

    public String getClientPrefix() {
        return clientPrefix;
    }

    public void setClientPrefix(String clientPrefix) {
        this.clientPrefix = clientPrefix;
    }

    public int getNumClients() {
        return numClients;
    }

    public void setNumClients(int numClients) {
        this.numClients = numClients;
    }

    public int getTotalDests() {
        return totalDests;
    }

    public void setTotalDests(int totalDests) {
        this.totalDests = totalDests;
    }

    public String getDestDistro() {
        return destDistro;
    }

    public void setDestDistro(String destDistro) {
        this.destDistro = destDistro;
    }

    public String getPropsConfigFile() {
        return this.propsConfigFile + "";
    }

    public void setPropsConfigFile(String propsConfigFile) {
        this.propsConfigFile = new File(propsConfigFile);
    }
}

Other ActiveMQ examples (source code examples)

Here is a short list of links related to this ActiveMQ JmsClientSystemProperties.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.