Class LibertyInstalledLocalContainer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.AbstractContainer
-
- org.codehaus.cargo.container.spi.AbstractLocalContainer
-
- org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
-
- org.codehaus.cargo.container.liberty.LibertyInstalledLocalContainer
-
- All Implemented Interfaces:
Container
,InstalledLocalContainer
,RunnableContainer
,SpawnedContainer
,LocalContainer
,Loggable
public class LibertyInstalledLocalContainer extends AbstractInstalledLocalContainer
This starts a WebSphere Liberty server
-
-
Constructor Summary
Constructors Constructor Description LibertyInstalledLocalContainer(LocalConfiguration configuration)
Creates an installed local connector for WebSphere Liberty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart(JvmLauncher java)
Start the container.protected void
doStop(JvmLauncher java)
Stop the containerContainerCapability
getCapability()
String
getId()
String
getName()
-
Methods inherited from class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
addExtraClasspath, addExtraClasspath, addMemoryArguments, addRuntimeArgs, addSharedClasspath, addToolsJarToClasspath, createJvmLauncher, forceStopInternal, getExtraClasspath, getHome, getHttpUtils, getJavaHome, getJvmLauncherFactory, getResourceUtils, getSharedClasspath, getSystemProperties, getType, ifPresentAddPathToList, setExtraClasspath, setHome, setJvmLauncherFactory, setJvmToLaunchContainerIn, setLogger, setSharedClasspath, setSystemProperties, startInternal, stopInternal, verify
-
Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer
executePostStartTasks, getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, restart, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, waitForCompletion, waitForPortShutdown, waitForStarting
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.cargo.container.LocalContainer
getConfiguration, getFileHandler, setConfiguration, setFileHandler
-
Methods inherited from interface org.codehaus.cargo.container.internal.RunnableContainer
getOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stop
-
-
-
-
Constructor Detail
-
LibertyInstalledLocalContainer
public LibertyInstalledLocalContainer(LocalConfiguration configuration)
Creates an installed local connector for WebSphere Liberty.- Parameters:
configuration
- the configuration
-
-
Method Detail
-
getCapability
public ContainerCapability getCapability()
- Returns:
- the configuration capability for WebSphere Liberty
-
getId
public String getId()
- Returns:
- the id of the container
-
getName
public String getName()
- Returns:
- the name of the container
-
doStart
protected void doStart(JvmLauncher java) throws Exception
Start the container.- Specified by:
doStart
in classAbstractInstalledLocalContainer
- Parameters:
java
- the java configuration. This is ignored by WebSphere Liberty.- Throws:
Exception
- if something goes wrong
-
doStop
protected void doStop(JvmLauncher java) throws Exception
Stop the container- Specified by:
doStop
in classAbstractInstalledLocalContainer
- Parameters:
java
- the java configuration. This is ignored by WebSphere Liberty.- Throws:
Exception
- if something goes wrong
-
-