org.jboss.testharness.spi.helpers
Class AbstractContainerConnector

java.lang.Object
  extended by org.jboss.testharness.spi.helpers.AbstractContainerConnector
All Implemented Interfaces:
Configurable

public abstract class AbstractContainerConnector
extends Object
implements Configurable


Field Summary
static String EXTRA_CONFIGURATION_DIR_PROPERTY_NAME
           
static String FORCE_RESTART_PROPERTY_NAME
           
static String HOST_PROPERTY_NAME
           
static String JAVA_OPTS
           
static String JAVA_OPTS_PROPERTY_NAME
           
static String PORT_PROPERTY_NAME
           
static String SHUTDOWN_DELAY_PROPERTY_NAME
           
 
Constructor Summary
AbstractContainerConnector()
           
 
Method Summary
 void cleanup()
           
protected static void copy(InputStream inputStream, File file)
           
static void copy(InputStream source, OutputStream destination)
           
protected  void dump(InputStream is)
           
protected  DeploymentExceptionTransformer getDeploymentExceptionTransformer()
           
protected  String getDeploymentExceptionTransformerPropertyName()
           
protected  String getExtraConfigurationDir()
           
protected  String getExtraConfigurationDirPropertyName()
           
protected  Boolean getForceRestart()
           
protected  String getForceRestartPropertyName()
           
protected  String getHost()
           
protected  String getHostPropertyName()
           
protected  String getHttpUrl()
           
protected  String getJavaOpts()
           
protected abstract  String getLogName()
           
protected  String getPort()
           
protected  String getPortPropertyName()
           
protected  PropertiesManager getProperties()
           
protected  Long getServerBootTimeout()
           
protected  String getServerBootTimeoutPropertyName()
           
protected  String getServerDirectory()
           
protected abstract  String getServerHomePropertyName()
           
protected  Integer getShutdownDelay()
           
protected  String getShutdownDelayPropertyName()
           
protected  boolean isServerUp()
          Check that the server is up by attempting to connect to it's front page
protected  void launch(String directory, String scriptFileName, String params)
           
protected  void loadProperties(File file)
           
protected  void restartServer()
           
 void setConfiguration(Configuration configuration)
           
 void setup()
           
protected abstract  void shutdownServer()
           
protected abstract  void startServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractContainerConnector

public AbstractContainerConnector()
                           throws IOException
Throws:
IOException
Method Detail

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-2011. All Rights Reserved.