Class RemoteRuntimeFiles

java.lang.Object
io.gem.agent.RemoteRuntimeFiles

public final class RemoteRuntimeFiles extends Object
Implements managed-runtime ownership using local file-system operations on the remote node.
  • Method Details

    • isManagedArtifact

      public static boolean isManagedArtifact(String name)
      Identify an SBK-GEM-managed runtime artifact.
      Parameters:
      name - top-level file name
      Returns:
      true when the name is reserved for managed runtime state
    • leasePath

      public static String leasePath(String parentDirectory, String deploymentName, String leaseId)
      Return the path of a managed runtime lease.
      Parameters:
      parentDirectory - managed runtime parent directory
      deploymentName - runtime deployment name
      leaseId - lease identifier
      Returns:
      remote lease path
    • resolveDirectory

      public static String resolveDirectory(FileSystem fileSystem, String remoteDirectory) throws IOException
      Resolve and create a remote working directory through its file-system provider.
      Parameters:
      fileSystem - remote file system
      remoteDirectory - configured directory
      Returns:
      absolute normalized directory
      Throws:
      IllegalArgumentException - when the configured directory is blank
      IOException - when the directory cannot be resolved