Class RuntimeBuilderProps

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, ISecretsContext, Cloneable
Direct Known Subclasses:
EditorRuntimeBuilderProps, ServerRuntimeBuilderProps

public class RuntimeBuilderProps extends PropCnr implements ISecretsContext
This iiziRun Builder properties for the server side to hold the build settings and handle the interprocess communication.
Author:
Christopher Mindus
  • Field Details

    • REMOTE_BUILD

      public static final int REMOTE_BUILD
      Requests the remote party to build, and REMOTE_BUILD_QUEUE is sent back to indicate how many build jobs are before in the queue, where zero means building started.
      See Also:
    • REMOTE_BUILD_QUEUE

      public static final int REMOTE_BUILD_QUEUE
      Requests the remote party to build, and this event is sent back to indicate how many build jobs are before in the queue if value is negative. Positive values means changes in the progress indicator.
      See Also:
    • REMOTE_CANCEL

      public static final int REMOTE_CANCEL
      Requests the remote party to cancel building.
      See Also:
    • REMOTE_ERROR

      public static final int REMOTE_ERROR
      Informs the client that the server failed the build.
      See Also:
    • REMOTE_SUCCESS

      public static final int REMOTE_SUCCESS
      Informs the client that the server completed the builds. The parameters contains the relative URL's to the server where to pick up the binaries. This MUST be done prior to closing the session, otherwise they are cleared and cleaned up.
      See Also:
    • REMOTE_CONSOLE_STRING

      public static final int REMOTE_CONSOLE_STRING
      String to "println" to console.
      See Also:
    • SECRETS_CONTEXT_PREFIX

      public static final String SECRETS_CONTEXT_PREFIX
      The prefix of the iiziRun build's secrets context: "run.", followed by its app_id, e.g. run.co.iizi.run (CC-SECRETS-SK3-CONTEXTS).
      See Also:
  • Constructor Details

    • RuntimeBuilderProps

      public RuntimeBuilderProps()
      Creates the properties container without a name.
    • RuntimeBuilderProps

      public RuntimeBuilderProps(Atom atom)
      Creates the properties container with a name.
      Parameters:
      atom - The atom name.
  • Method Details

    • clone

      public RuntimeBuilderProps clone()
      Clones the properties.
      Overrides:
      clone in class PropCnr
    • getSecretsContext

      public String getSecretsContext()
      Gets the secrets context of the iiziRun build: SECRETS_CONTEXT_PREFIX followed by its app_id, e.g. run.co.iizi.run (decision P-3 (b)). The key of a secret-marked member, such as an Android keystore password, is the context and the member's atom path from this container.
      Specified by:
      getSecretsContext in interface ISecretsContext
      Returns:
      The context, or null when app_id is not set or does not make a valid context name (logged SEVERE once).
    • onPropTreeInitialized

      public void onPropTreeInitialized() throws IOException, PropException
      Called when the tree of the file is complete: gives every secret-marked member its value from this machine's secrets store (CC-SECRETS-SK3-CONTEXTS, design section 5). A missing value is logged once per key and leaves the member unconfigured; the load goes on.
      Specified by:
      onPropTreeInitialized in interface IGProp<GProp<?>[]>
      Overrides:
      onPropTreeInitialized in class PropCnr
      Throws:
      IOException - For file errors of the children.
      PropException - For initialization problems of the children.
    • getAssetsDirectory

      public File getAssetsDirectory()
      Gets the Assets directory.
      Returns:
      The Assets directory.
    • getOutputPath

      public String getOutputPath()
      Gets the output directory string defined.
      Returns:
      The output directory , default "iiziRun".
    • getTextTableReference

      public String getTextTableReference()
      Looks up the text table reference String.
      Returns:
      The text table, or null if not found.
    • getTextTable

      public TextTable getTextTable()
      Looks up the text table.
      Returns:
      The text table, or null if not found.