Record Class ProcessOutput
java.lang.Object
java.lang.Record
org.jpos.log.evt.ProcessOutput
- Record Components:
name- the name of the process, serialized as an XML attribute with the local name "name"stdout- the standard output of the process, serialized as XML textstderr- the standard error of the process, included in JSON output only if non-null
Record representing the output of a process, encapsulating the process name,
standard output, and optionally standard error.
This record makes use of Jackson annotations to control the serialization
and deserialization process. The name field is serialized as an
attribute with the local name "name". The stdout field is serialized
as XML text. The stderr field is included in the JSON output only if
it is non-null.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessOutput(String name, String stdout, String stderr) Creates an instance of aProcessOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.stderr()Returns the value of thestderrrecord component.stdout()Returns the value of thestdoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessOutput
-
-
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). -
name
-
stdout
-
stderr
-