org.jboss.testharness.spi.helpers
Class AbstractContainerConnector
java.lang.Object
org.jboss.testharness.spi.helpers.AbstractContainerConnector
- All Implemented Interfaces:
- Configurable
public abstract class AbstractContainerConnector
- extends Object
- implements Configurable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVA_OPTS
public static String JAVA_OPTS
JAVA_OPTS_PROPERTY_NAME
public static final String JAVA_OPTS_PROPERTY_NAME
- See Also:
- Constant Field Values
FORCE_RESTART_PROPERTY_NAME
public static final String FORCE_RESTART_PROPERTY_NAME
- See Also:
- Constant Field Values
HOST_PROPERTY_NAME
public static final String HOST_PROPERTY_NAME
- See Also:
- Constant Field Values
PORT_PROPERTY_NAME
public static final String PORT_PROPERTY_NAME
- See Also:
- Constant Field Values
SHUTDOWN_DELAY_PROPERTY_NAME
public static final String SHUTDOWN_DELAY_PROPERTY_NAME
- See Also:
- Constant Field Values
EXTRA_CONFIGURATION_DIR_PROPERTY_NAME
public static final String EXTRA_CONFIGURATION_DIR_PROPERTY_NAME
- See Also:
- Constant Field Values
AbstractContainerConnector
public AbstractContainerConnector()
throws IOException
- Throws:
IOException
copy
protected static void copy(InputStream inputStream,
File file)
throws IOException
- Throws:
IOException
copy
public static void copy(InputStream source,
OutputStream destination)
throws IOException
- Throws:
IOException
setConfiguration
public void setConfiguration(Configuration configuration)
- Specified by:
setConfiguration in interface Configurable
isServerUp
protected boolean isServerUp()
- Check that the server is up by attempting to connect to it's front page
- Returns:
- true if the connection was made
setup
public void setup()
throws IOException
- Throws:
IOException
restartServer
protected void restartServer()
throws IOException
- Throws:
IOException
loadProperties
protected void loadProperties(File file)
throws IOException
- Throws:
IOException
cleanup
public void cleanup()
throws IOException
- Throws:
IOException
shutdownServer
protected abstract void shutdownServer()
throws IOException
- Throws:
IOException
startServer
protected abstract void startServer()
throws IOException
- Throws:
IOException
launch
protected void launch(String directory,
String scriptFileName,
String params)
throws IOException
- Throws:
IOException
dump
protected void dump(InputStream is)
getServerHomePropertyName
protected abstract String getServerHomePropertyName()
getServerDirectory
protected String getServerDirectory()
getServerBootTimeoutPropertyName
protected String getServerBootTimeoutPropertyName()
getDeploymentExceptionTransformerPropertyName
protected String getDeploymentExceptionTransformerPropertyName()
getDeploymentExceptionTransformer
protected DeploymentExceptionTransformer getDeploymentExceptionTransformer()
getServerBootTimeout
protected Long getServerBootTimeout()
getForceRestartPropertyName
protected String getForceRestartPropertyName()
getForceRestart
protected Boolean getForceRestart()
getHostPropertyName
protected String getHostPropertyName()
getHost
protected String getHost()
getPortPropertyName
protected String getPortPropertyName()
getPort
protected String getPort()
getShutdownDelayPropertyName
protected String getShutdownDelayPropertyName()
getShutdownDelay
protected Integer getShutdownDelay()
getProperties
protected PropertiesManager getProperties()
getJavaOpts
protected String getJavaOpts()
getHttpUrl
protected String getHttpUrl()
getExtraConfigurationDirPropertyName
protected String getExtraConfigurationDirPropertyName()
getLogName
protected abstract String getLogName()
getExtraConfigurationDir
protected String getExtraConfigurationDir()
Copyright © 2009-2010. All Rights Reserved.