Interface SysRuntime
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SysRuntimeWrapper<X>
- All Known Implementing Classes:
SysRuntimeCoreLazy, SysRuntimeDocker, SysRuntimeImpl, SysRuntimeWrapperBase, SysRuntimeWrapperShellEnv
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()String[]compileCommand(CmdOp op) compileString(CmdOp op) voidcreateNamedPipe(Path path) Create a named pipe at the given path.booleanstatic PathReturns a path such as /proc/process_id/fd/123quoteFileArgument(String fileName) Quote a filename for use as an argument.default String[]resolveCommand(String... argv) Resolve the first argument of the array againstwhich(String).static CmdString
-
Method Details
-
which
- Throws:
IOExceptionInterruptedException
-
exists
- Throws:
IOExceptionInterruptedException
-
quoteFileArgument
-
compileString
-
compileCommand
-
getStrOps
CmdStrOps getStrOps() -
createNamedPipe
Create a named pipe at the given path.- Throws:
IOException
-
resolveCommand
Resolve the first argument of the array againstwhich(String). Returned array is always a copy.- Throws:
IOExceptionInterruptedException
-
toString
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-
getFdPath
Returns a path such as /proc/process_id/fd/123
-