1 18 package org.apache.activemq.tool.properties; 19 20 import java.io.File ; 21 22 public class JmsClientSystemProperties extends AbstractObjectProperties { 23 public static final String DEST_DISTRO_ALL = "all"; public static final String DEST_DISTRO_EQUAL = "equal"; public static final String DEST_DISTRO_DIVIDE = "divide"; 27 public static final String REPORT_VERBOSE = "verbose"; public static final String REPORT_XML_FILE = "xml"; 30 public static final String SAMPLER_TP = "tp"; 31 public static final String SAMPLER_CPU = "cpu"; 32 33 protected File propsConfigFile = null; 34 35 protected String reportType = REPORT_XML_FILE; 36 protected String reportDir = "./"; 37 protected String reportName = null; 38 39 protected String samplers = SAMPLER_TP + "," + SAMPLER_CPU; 41 protected String spiClass = "org.apache.activemq.tool.spi.ActiveMQReflectionSPI"; 42 protected String clientPrefix = "JmsClient"; 43 protected int numClients = 1; 44 protected int totalDests = 1; 45 protected String destDistro = DEST_DISTRO_ALL; 46 47 public String getReportType() { 48 return reportType; 49 } 50 51 public void setReportType(String reportType) { 52 this.reportType = reportType; 53 } 54 55 public String getReportDir() { 56 return reportDir; 57 } 58 59 public void setReportDir(String reportDir) { 60 this.reportDir = reportDir; 61 } 62 63 public String getReportName() { 64 return reportName; 65 } 66 67 public void setReportName(String reportName) { 68 this.reportName = reportName; 69 } 70 71 public String getSamplers() { 72 return samplers; 73 } 74 75 public void setSamplers(String samplers) { 76 this.samplers = samplers; 77 } 78 79 public String getSpiClass() { 80 return spiClass; 81 } 82 83 public void setSpiClass(String spiClass) { 84 this.spiClass = spiClass; 85 } 86 87 public String getClientPrefix() { 88 return clientPrefix; 89 } 90 91 public void setClientPrefix(String clientPrefix) { 92 this.clientPrefix = clientPrefix; 93 } 94 95 public int getNumClients() { 96 return numClients; 97 } 98 99 public void setNumClients(int numClients) { 100 this.numClients = numClients; 101 } 102 103 public int getTotalDests() { 104 return totalDests; 105 } 106 107 public void setTotalDests(int totalDests) { 108 this.totalDests = totalDests; 109 } 110 111 public String getDestDistro() { 112 return destDistro; 113 } 114 115 public void setDestDistro(String destDistro) { 116 this.destDistro = destDistro; 117 } 118 119 public String getPropsConfigFile() { 120 return this.propsConfigFile + ""; 121 } 122 123 public void setPropsConfigFile(String propsConfigFile) { 124 this.propsConfigFile = new File (propsConfigFile); 125 } 126 } 127 | Popular Tags |