Record Class IsolationProcessSpec
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.IsolationProcessSpec
- Record Components:
command- command and argumentsworkingDirectory- working directoryenvironment- requested environment variables
public record IsolationProcessSpec(List<String> command, Path workingDirectory, Map<String,String> environment)
extends Record
Child-process command specification.
Command arguments can contain secrets and must be redacted by providers
before status, audit, exception, or demo output. The command list is immutable
and must contain an executable at index 0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theworkingDirectoryrecord component.
-
Constructor Details
-
IsolationProcessSpec
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
command
-
workingDirectory
Returns the value of theworkingDirectoryrecord component.- Returns:
- the value of the
workingDirectoryrecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-