Package org.codehaus.cargo.daemon
Class Handle
- java.lang.Object
-
- org.codehaus.cargo.daemon.Handle
-
public class Handle extends Object
A handle keeps track of deployed containers.
-
-
Constructor Summary
Constructors Constructor Description Handle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperties(PropertyTable properties)Add all the properties to this handle.LocalConfigurationgetConfiguration()InstalledLocalContainergetContainer()StringgetContainerLogPath()StringgetContainerOutputPath()StategetContainerStatus()StringgetId()PropertyTablegetProperties()booleanisAutostart()booleanisForceStop()voidsetAutostart(boolean autostart)Sets if the container should autostartvoidsetConfiguration(LocalConfiguration configuration)Sets the configuration.voidsetContainer(InstalledLocalContainer container)Sets the container.voidsetContainerLogPath(String logpath)Set the Cargo log file path of the containervoidsetContainerOutputPath(String logpath)Set the container output log file pathvoidsetForceStop(boolean forceStop)voidsetId(String id)Sets the handle identifier.voidsetProperties(PropertyTable properties)Sets the properties.StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the handle identifier
-
setId
public void setId(String id)
Sets the handle identifier.- Parameters:
id- The handle identifier.
-
getContainer
public InstalledLocalContainer getContainer()
- Returns:
- the container
-
setContainer
public void setContainer(InstalledLocalContainer container)
Sets the container.- Parameters:
container- The container.
-
getConfiguration
public LocalConfiguration getConfiguration()
- Returns:
- the configuration.
-
setConfiguration
public void setConfiguration(LocalConfiguration configuration)
Sets the configuration.- Parameters:
configuration- The configuration
-
getProperties
public PropertyTable getProperties()
- Returns:
- the properties.
-
setProperties
public void setProperties(PropertyTable properties)
Sets the properties.- Parameters:
properties- The properties
-
isAutostart
public boolean isAutostart()
- Returns:
- if the container associated with this handle should autostart.
-
setAutostart
public void setAutostart(boolean autostart)
Sets if the container should autostart- Parameters:
autostart- The autostart flag
-
getContainerLogPath
public String getContainerLogPath()
- Returns:
- the Cargo log file path of the container.
-
setContainerLogPath
public void setContainerLogPath(String logpath)
Set the Cargo log file path of the container- Parameters:
logpath- The log file path
-
getContainerOutputPath
public String getContainerOutputPath()
- Returns:
- the container output log file path.
-
setContainerOutputPath
public void setContainerOutputPath(String logpath)
Set the container output log file path- Parameters:
logpath- The log file path
-
isForceStop
public boolean isForceStop()
- Returns:
- true if the container was forcibly stopped.
-
setForceStop
public void setForceStop(boolean forceStop)
- Parameters:
forceStop- True if the container was forcibly stopped.
-
getContainerStatus
public State getContainerStatus()
- Returns:
- the status of the container.
-
addProperties
public void addProperties(PropertyTable properties)
Add all the properties to this handle.- Parameters:
properties- The list of properties
-
-