Class Handle


  • public class Handle
    extends Object
    A handle keeps track of deployed containers.
    • Constructor Detail

      • Handle

        public Handle()
    • 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.
      • 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