Class RemoteRuntimeFiles
java.lang.Object
io.gem.agent.RemoteRuntimeFiles
Implements managed-runtime ownership using local file-system operations on the remote node.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisManagedArtifact(String name) Identify an SBK-GEM-managed runtime artifact.static StringReturn the path of a managed runtime lease.static StringresolveDirectory(FileSystem fileSystem, String remoteDirectory) Resolve and create a remote working directory through its file-system provider.
-
Method Details
-
isManagedArtifact
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
-
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 systemremoteDirectory- configured directory- Returns:
- absolute normalized directory
- Throws:
IllegalArgumentException- when the configured directory is blankIOException- when the directory cannot be resolved
-