public class AndesJMSClientConfiguration extends Object implements Cloneable
| Constructor and Description |
|---|
AndesJMSClientConfiguration()
The empty constructor which will create a queue related test case.
|
AndesJMSClientConfiguration(AndesJMSClientConfiguration config)
Copy constructor for the client.
|
AndesJMSClientConfiguration(ExchangeType exchangeType,
String destinationName)
Creates a connection string with the default username, password, hostname, port.
|
AndesJMSClientConfiguration(int port,
ExchangeType exchangeType,
String destinationName)
Creates a connection string with default username, password, hostname and a given port.
|
AndesJMSClientConfiguration(int port,
String userName,
String password,
ExchangeType exchangeType,
String destinationName)
Creates a connection string with a given port, username, password, exchange type
and destination name.
|
AndesJMSClientConfiguration(String xmlConfigFilePath)
Creates a connection string using an xml file.
|
AndesJMSClientConfiguration(String hostName,
int port,
ExchangeType exchangeType,
String destinationName)
Creates a connection string with default username, password and a given host name, port.
|
AndesJMSClientConfiguration(String userName,
String password,
ExchangeType exchangeType,
String destinationName)
Creates a connection string with a given username, password, exchange type
and destination name.
|
AndesJMSClientConfiguration(String userName,
String password,
String hostName,
int port,
ExchangeType exchangeType,
String destinationName)
Creates a connection string with a given username, password, hostname, port, exchange type
and destination name.
|
AndesJMSClientConfiguration(String userName,
String password,
String hostName,
int port,
ExchangeType exchangeType,
String destinationName,
String sslAlias,
String trustStorePath,
String trustStorePassword,
String keyStorePath,
String keyStorePassword)
Creates an SSL connection string with a given username, password, hostname, port, exchange
type and destination name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConnectionString()
Gets the AMQP connection string.
|
String |
getDestinationName()
Gets the destination name for publishing/consuming jms messages.
|
ExchangeType |
getExchangeType()
Gets the exchange type used for publishing/consuming jms messages.
|
String |
getFilePathToWriteStatistics()
Gets the file path to write statistics such as TPS, Average latency against Timestamp.
|
String |
getHostName()
Gets the host name used in the AMQP connection string.
|
String |
getPassword()
Gets the password used in the AMQP connection string.
|
int |
getPort()
Gets the port used in the AMQP connection string.
|
long |
getPrintsPerMessageCount()
Gets the number of console logging per message count
|
long |
getRunningDelay()
Gets the delay used in publishing/consuming messages in milliseconds.
|
String |
getUserName()
Gets the user name used in the AMQP connection string.
|
void |
setConnectionString(String connectionString)
Sets the AMQP transport connection string.
|
void |
setDestinationName(String destinationName)
Sets the destination name for publishing/consuming jms messages.
|
void |
setExchangeType(ExchangeType exchangeType)
Sets the exchange type used for publishing/consuming jms messages Suppressing
"UnusedDeclaration" as this is a configuration
|
void |
setFilePathToWriteStatistics(String filePathToPrintStatistics)
Sets the file path to write statistics such as TPS, Average latency against Timestamp
Suppressing "UnusedDeclaration" as this is a configuration
|
void |
setHostName(String hostName)
Sets host name for the AMQP connection string.
|
void |
setPassword(String password)
Sets password for the AMQP connection string
|
void |
setPort(int port)
Sets the AMQP connection string port.
|
void |
setPrintsPerMessageCount(long printsPerMessageCount)
Sets the number of console logging per message count
|
void |
setRunningDelay(long runningDelay)
Sets the delay used in publishing/consuming messages in milliseconds.
|
void |
setUserName(String userName)
Sets user name for the AMQP connection string
|
String |
toString() |
public AndesJMSClientConfiguration()
public AndesJMSClientConfiguration(ExchangeType exchangeType, String destinationName)
exchangeType - The exchange type.destinationName - The destination name.public AndesJMSClientConfiguration(String hostName, int port, ExchangeType exchangeType, String destinationName)
hostName - The host name used in the AMQP transport connection string.port - The port used in the AMQP transport connection string.exchangeType - The exchange type used for publishing/consuming jms messages.destinationName - The destination name used for publishing/consuming jms messages.public AndesJMSClientConfiguration(int port,
ExchangeType exchangeType,
String destinationName)
port - The port used in the AMQP transport connection string.exchangeType - The exchange type used for publishing/consuming jms messages.destinationName - The destination name used for publishing/consuming jms messages.public AndesJMSClientConfiguration(String userName, String password, ExchangeType exchangeType, String destinationName)
userName - The username to be used in creating the connection string.password - The password to be used in creating the connection string.exchangeType - The exchange type.destinationName - The destination name.public AndesJMSClientConfiguration(int port,
String userName,
String password,
ExchangeType exchangeType,
String destinationName)
userName - The username to be used in creating the connection string.password - The password to be used in creating the connection string.exchangeType - The exchange type.destinationName - The destination name.public AndesJMSClientConfiguration(String userName, String password, String hostName, int port, ExchangeType exchangeType, String destinationName)
userName - The username to be used in creating the connection string.password - The password to be used in creating the connection string.hostName - The host name to be used in creating the connection string.port - The AMQP transport port used in creating the connection stringexchangeType - The exchange type.destinationName - The destination name.public AndesJMSClientConfiguration(String xmlConfigFilePath) throws AndesClientConfigurationException
xmlConfigFilePath - The file path for the xml configuration file.AndesClientConfigurationExceptionpublic AndesJMSClientConfiguration(AndesJMSClientConfiguration config)
config - The configuration file.public AndesJMSClientConfiguration(String userName, String password, String hostName, int port, ExchangeType exchangeType, String destinationName, String sslAlias, String trustStorePath, String trustStorePassword, String keyStorePath, String keyStorePassword)
userName - The username to be used in creating the connection string.password - The password to be used in creating the connection string.hostName - The host name to be used in creating the connection string.port - The AMQP transport port used in creating the connection stringexchangeType - The exchange type.destinationName - The destination name.sslAlias - The ssl alias to use in ssl connection.trustStorePath - The file path for trust store to use in ssl connection.trustStorePassword - The trust store password to use in ssl connection.keyStorePath - The file path for key store to use in ssl connection.keyStorePassword - The key store password to use in ssl connection.public void setUserName(String userName)
userName - The user name.public void setPassword(String password)
password - The passwordpublic void setHostName(String hostName)
hostName - The host namepublic void setPort(int port)
port - the port.public String getUserName()
public String getPassword()
public String getHostName()
public int getPort()
public String getConnectionString()
public void setConnectionString(String connectionString)
connectionString - The connection string.public ExchangeType getExchangeType()
public void setExchangeType(ExchangeType exchangeType)
exchangeType - The exchange typepublic String getDestinationName()
public void setDestinationName(String destinationName)
destinationName - The destination namepublic long getPrintsPerMessageCount()
public void setPrintsPerMessageCount(long printsPerMessageCount)
throws AndesClientConfigurationException
printsPerMessageCount - The number of console logging per message countAndesClientConfigurationExceptionpublic long getRunningDelay()
public void setRunningDelay(long runningDelay)
throws AndesClientConfigurationException
runningDelay - The delay used in publishing/consuming messages in milliseconds.AndesClientConfigurationExceptionpublic String getFilePathToWriteStatistics()
public void setFilePathToWriteStatistics(String filePathToPrintStatistics)
filePathToPrintStatistics - The file path used for writing statistics.Copyright © 2019 WSO2. All rights reserved.