public class XdEnvironment
extends java.lang.Object
implements org.springframework.beans.factory.BeanClassLoaderAware
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTTP_PREFIX |
static java.lang.String |
RESULT_LOCATION |
static java.lang.String |
XD_ADMIN_HOST |
static java.lang.String |
XD_HTTP_PORT |
static java.lang.String |
XD_JMX_PORT |
Constructor and Description |
---|
XdEnvironment() |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getAdminServerUrl() |
java.lang.String |
getBaseDir() |
java.lang.String |
getContainerLogLocation() |
java.lang.String |
getDataNodePort()
The hadoop data node port that is available for this environment.
|
javax.sql.DataSource |
getDataSource() |
java.lang.String |
getGemfireHost()
Retrieves the Gemfire host.
|
int |
getGemfirePort()
Retrieves the Gemfire port.
|
int |
getHttpPort() |
java.lang.String |
getJmsHost() |
int |
getJmsPort() |
int |
getJmxPort() |
java.lang.String |
getKafkaBrokerList()
Retrieves the Kafka Broker List.
|
java.lang.String |
getKafkaZkConnect()
Retrieves the Kafka ZK Connection String.
|
org.springframework.data.mongodb.MongoDbFactory |
getMongoDbFactory()
The mongo db factory to be used for the tests.
|
java.lang.String |
getMongoHost()
Retrieves the host where the mongo server is running.
|
java.lang.String |
getMongoPort()
Retrieves the port that the mongo server is monitoring.
|
java.lang.String |
getNameNode()
The hadoop name node that is available for this environment.
|
java.lang.String |
getPrivateKey() |
org.springframework.amqp.rabbit.connection.CachingConnectionFactory |
getRabbitConnectionFactory() |
java.lang.String |
getRabbitMQHost()
Default value is the same as the admin server host.
|
java.lang.String |
getSparkAppJar()
Retrieves the location of the SparkApp Jar
|
java.lang.String |
getSparkAppJarSource()
Retrieves the location of the spark app jar to be used for the test.
|
java.lang.String |
getSparkAppMainClass()
Retrieves the package.class of the Spark App
|
java.lang.String |
getSparkAppName()
Retrieves the name associated with the Spark App
|
java.lang.String |
getSparkMaster()
Retrieves URI (spark://host:port or the local setting (local[x]) for the spark master
|
java.lang.String |
getTcpClientHost()
Retrieves the TCP Client host.
|
int |
getTcpClientPort()
Retrieves the TCP Client port.
|
java.lang.String |
getTwitterAccessToken()
The Twitter Access Token
|
java.lang.String |
getTwitterAccessTokenSecret()
The Twitter Access Token Secret
|
java.lang.String |
getTwitterConsumerKey()
The twitter consumer key
|
java.lang.String |
getTwitterConsumerSecretKey()
The twitter consumer secret key
|
void |
initalizeEc2Environment()
If not running tests on a local XD Instance it will retrieve the information from the artifact and setup the
environment to test against a remote XD.
|
boolean |
isOnEc2() |
void |
setBeanClassLoader(java.lang.ClassLoader beanClassLoader) |
public static final java.lang.String XD_ADMIN_HOST
public static final java.lang.String XD_HTTP_PORT
public static final java.lang.String XD_JMX_PORT
public static final java.lang.String RESULT_LOCATION
public static final java.lang.String HTTP_PREFIX
@PostConstruct public void initalizeEc2Environment() throws java.net.MalformedURLException
java.net.MalformedURLException
public void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public java.net.URL getAdminServerUrl()
public int getJmxPort()
public int getHttpPort()
public java.lang.String getPrivateKey()
public boolean isOnEc2()
public java.lang.String getContainerLogLocation()
public java.lang.String getBaseDir()
public javax.sql.DataSource getDataSource()
public org.springframework.amqp.rabbit.connection.CachingConnectionFactory getRabbitConnectionFactory()
public java.lang.String getJmsHost()
public int getJmsPort()
public java.lang.String getRabbitMQHost()
public java.lang.String getTwitterConsumerKey()
public java.lang.String getTwitterConsumerSecretKey()
public java.lang.String getTwitterAccessToken()
public java.lang.String getTwitterAccessTokenSecret()
public java.lang.String getNameNode()
public java.lang.String getDataNodePort()
public org.springframework.data.mongodb.MongoDbFactory getMongoDbFactory()
public java.lang.String getMongoHost()
public java.lang.String getMongoPort()
public java.lang.String getGemfireHost()
public int getGemfirePort()
public java.lang.String getKafkaBrokerList()
public java.lang.String getKafkaZkConnect()
public int getTcpClientPort()
public java.lang.String getTcpClientHost()
public java.lang.String getSparkAppName()
public java.lang.String getSparkAppJar()
public java.lang.String getSparkMaster()
public java.lang.String getSparkAppMainClass()
public java.lang.String getSparkAppJarSource()