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() |
int |
getHttpPort() |
java.lang.String |
getJmsHost() |
int |
getJmsPort() |
int |
getJmxPort() |
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 |
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()