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 void
addProperties(PropertyTable properties)
Add all the properties to this handle.LocalConfiguration
getConfiguration()
InstalledLocalContainer
getContainer()
String
getContainerLogPath()
String
getContainerOutputPath()
State
getContainerStatus()
String
getId()
PropertyTable
getProperties()
boolean
isAutostart()
boolean
isForceStop()
void
setAutostart(boolean autostart)
Sets if the container should autostartvoid
setConfiguration(LocalConfiguration configuration)
Sets the configuration.void
setContainer(InstalledLocalContainer container)
Sets the container.void
setContainerLogPath(String logpath)
Set the Cargo log file path of the containervoid
setContainerOutputPath(String logpath)
Set the container output log file pathvoid
setForceStop(boolean forceStop)
void
setId(String id)
Sets the handle identifier.void
setProperties(PropertyTable properties)
Sets the properties.String
toString()
-
-
-
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
-
-