|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.test.AbstractTestDelegate
org.jboss.test.JBossTestServices
org.jboss.test.JBossTestClusteredServices
public class JBossTestClusteredServices
Derived implementation of JBossTestServices for cluster testing.
JBossTestServices
Field Summary | |
---|---|
protected ArrayList |
adaptors
|
protected ArrayList |
httpURLs
|
protected ArrayList |
namingURLs
|
protected ArrayList |
namingURLsHA
|
protected ArrayList |
servers
|
Fields inherited from class org.jboss.test.JBossTestServices |
---|
DEFAULT_BEANCOUNT, DEFAULT_ITERATIONCOUNT, DEFAULT_LOGIN_CONFIG, DEFAULT_PASSWORD, DEFAULT_THREADCOUNT, DEFAULT_USERNAME, DEPLOYER_NAME, initialContext, jndiEnv, lc, server |
Fields inherited from class org.jboss.test.AbstractTestDelegate |
---|
clazz, enableSecurity, log, logging, policy, securityPolicyName |
Constructor Summary | |
---|---|
JBossTestClusteredServices(Class clazz)
|
Method Summary | |
---|---|
void |
deploy(MBeanServerConnection server,
String name)
Deploy a package on the given server with the main deployer. |
MBeanServerConnection |
getAdaptor(int index)
|
MBeanServerConnection[] |
getAdaptors()
|
String |
getHANamingURL(int index)
|
String[] |
getHANamingURLs()
Get the JNDI provider urls for the cluster nodes |
String |
getHttpURL(int index)
|
String[] |
getHttpURLs()
Get the default web container urls for the cluster nodes |
String |
getNamingURL(int index)
|
String[] |
getNamingURLs()
Get the JNDI provider urls for the cluster nodes |
String |
getServer(int index)
|
int |
getServerCount()
|
String[] |
getServers()
|
void |
init()
Initializes the InitialContext if not set. |
protected Object |
invoke(ObjectName name,
String method,
Object[] args,
String[] sig)
Override to invoke the operation on all servers |
void |
redeploy(MBeanServerConnection server,
String name)
|
void |
setServerNames(String[] snames)
This method gives overriding testcases to set the cluster servernames |
void |
setUp()
The JUnit setup method |
void |
tearDown()
The teardown method for JUnit |
void |
undeploy(MBeanServerConnection server,
String name)
Undeploy a package from the given server with the main deployer. |
Methods inherited from class org.jboss.test.JBossTestServices |
---|
deploy, getDeployURL, getInitialContext, getServer, getServerHost, invoke, login, logout, redeploy, reinit, undeploy |
Methods inherited from class org.jboss.test.AbstractTestDelegate |
---|
enableTrace, getDelegate, getLog, log, setUpLogging, setUpSecurity, tearDownLogging, tearDownSecurity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArrayList adaptors
protected ArrayList servers
protected ArrayList namingURLs
protected ArrayList namingURLsHA
protected ArrayList httpURLs
Constructor Detail |
---|
public JBossTestClusteredServices(Class clazz)
Method Detail |
---|
public void setUp() throws Exception
JBossTestServices
setUp
in class JBossTestServices
Exception
- for any errorpublic void tearDown() throws Exception
JBossTestServices
tearDown
in class JBossTestServices
Exception
- for any errorpublic int getServerCount()
public MBeanServerConnection[] getAdaptors() throws Exception
Exception
public MBeanServerConnection getAdaptor(int index) throws Exception
Exception
public String[] getServers() throws Exception
Exception
public String getServer(int index) throws Exception
Exception
public String[] getNamingURLs() throws Exception
Exception
public String getNamingURL(int index) throws Exception
Exception
public String[] getHANamingURLs() throws Exception
Exception
public String getHANamingURL(int index) throws Exception
Exception
public String[] getHttpURLs() throws Exception
Exception
public String getHttpURL(int index) throws Exception
Exception
public void deploy(MBeanServerConnection server, String name) throws Exception
server
- server on which the package should be deployedname
- filename/url of package to deploy.
Exception
- Description of Exceptionpublic void redeploy(MBeanServerConnection server, String name) throws Exception
Exception
public void undeploy(MBeanServerConnection server, String name) throws Exception
server
- server on which the package should be deployedname
- filename/url of package to undeploy.
Exception
- Description of Exceptionprotected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception
invoke
in class JBossTestServices
name
- method
- args
- sig
-
Exception
public void init() throws Exception
JBossTestServices
InitialContext
if not set.
init
in class JBossTestServices
Exception
- for any errorpublic void setServerNames(String[] snames)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |