public class TestProperties extends Object
Constructor and Description |
---|
TestProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getApiName() |
String |
getApiVersion() |
String |
getBrokerUri() |
long |
getDuration() |
String |
getDurationType() |
int |
getFcl() |
int |
getLimitDestinations() |
long |
getMessageSize() |
int |
getParallelCount() |
String |
getProtocol() |
int |
getRate() |
boolean |
isVariableSize() |
void |
load(File testProperties)
Load a properties file (ie.: test.properties)
|
protected void |
load(Properties prop) |
void |
setApiName(String apiName) |
void |
setApiVersion(String apiVersion) |
void |
setBrokerUri(String brokerUri) |
void |
setDuration(long duration) |
void |
setDuration(String durationSpec) |
void |
setDurationType(String durationType) |
void |
setFcl(int fcl) |
void |
setFcl(String fcl) |
void |
setLimitDestinations(int limitDestinations) |
void |
setMessageSize(long messageSize) |
void |
setMessageSize(String messageSize) |
void |
setParallelCount(int parallelCount) |
void |
setParallelCount(String parallelCount) |
void |
setProtocol(String protocol) |
void |
setRate(int rate) |
void |
setRate(String rate) |
void |
setVariableSize(boolean variableSize) |
String |
toString() |
void |
write(File testProperties)
Write to a properties file
|
protected void |
write(Properties prop) |
public static String FILENAME
public void load(File testProperties) throws IOException
MaestroTestProperties
testProperties
- A file object pointing to the file to be loadedIOException
- If the file cannot be readpublic void write(File testProperties) throws IOException
MaestroTestProperties
testProperties
- A file object pointing to the file to be writtenIOException
- If the file cannot be writtenpublic String getBrokerUri()
public void setBrokerUri(String brokerUri)
public String getDurationType()
public void setDurationType(String durationType)
public void setDuration(long duration)
public void setDuration(String durationSpec) throws DurationParseException
DurationParseException
public String getApiName()
public void setApiName(String apiName)
public String getApiVersion()
public void setApiVersion(String apiVersion)
public long getDuration()
public int getFcl()
public void setFcl(int fcl)
public void setFcl(String fcl)
public String getProtocol()
public void setProtocol(String protocol)
public int getLimitDestinations()
public void setLimitDestinations(int limitDestinations)
public String toString()
public final void setMessageSize(long messageSize)
setMessageSize
in interface MaestroTestProperties
public final void setMessageSize(String messageSize)
setMessageSize
in interface MaestroTestProperties
public final long getMessageSize()
getMessageSize
in interface MaestroTestProperties
public final void setParallelCount(int parallelCount)
setParallelCount
in interface MaestroTestProperties
public final void setParallelCount(String parallelCount)
setParallelCount
in interface MaestroTestProperties
public final int getParallelCount()
getParallelCount
in interface MaestroTestProperties
public final void setVariableSize(boolean variableSize)
setVariableSize
in interface MaestroTestProperties
public final boolean isVariableSize()
isVariableSize
in interface MaestroTestProperties
public void setRate(int rate)
setRate
in interface MaestroTestProperties
public void setRate(String rate)
setRate
in interface MaestroTestProperties
public final int getRate()
getRate
in interface MaestroTestProperties
protected void write(Properties prop)
protected void load(Properties prop)
This documentation was released into the public domain.