Class InitScript

    • Method Detail

      • getInstanceName

        public String getInstanceName()
        Returns:
        what will be bound to the INSTANCE_NAME variable, and uniquely identifies the process
      • getInstanceHome

        public String getInstanceHome()
        default /tmp/$INSTANCE_NAME

        note

        The parent directory should be set with unix sticky-bit or otherwise made available to all users. Otherwise, new instances by other users may fail due to not being able to create a directory. This is why the default is set to /tmp
        Returns:
        what will be bound to the INSTANCE_HOME variable, and represents the working directory of the instance
      • getLogDir

        public String getLogDir()
        default $INSTANCE_HOME
        Returns:
        what will be bound to the LOG_DIR variable, and represents where stdout and stderr.logs are written.
      • getInitStatement

        public StatementList getInitStatement()
        Returns:
        statements that will be executed upon the init command
      • getRunStatement

        public StatementList getRunStatement()
        Returns:
        statements that will be executed upon the run or start commands
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Overrides:
        toString in class com.google.common.collect.ForwardingObject
      • delegate

        protected ScriptBuilder delegate()
        Specified by:
        delegate in class com.google.common.collect.ForwardingObject