Package ghidra.debug.api.tracermi
Record Class TraceRmiLaunchOffer.LaunchResult
java.lang.Object
java.lang.Record
ghidra.debug.api.tracermi.TraceRmiLaunchOffer.LaunchResult
- Record Components:
program- the program associated with the launch attemptsessions- any terminal sessions created while launching the back-end. If there are more than one, they are distinguished by launcher-defined keys. If there are no sessions, then there was likely a catastrophic error in the launcher.acceptor- the acceptor if waiting for a connectionconnection- if the target connected back to Ghidra, that connectiontrace- if the connection started a trace, the (first) trace it createdexception- optional error, if failed
- All Implemented Interfaces:
AutoCloseable
- Enclosing interface:
TraceRmiLaunchOffer
public static record TraceRmiLaunchOffer.LaunchResult(Program program, Map<String,TerminalSession> sessions, TraceRmiAcceptor acceptor, TraceRmiConnection connection, Trace trace, Throwable exception)
extends Record
implements AutoCloseable
The result of launching a program
The launch may not always be completely successful. Instead of tearing things down, partial launches are left in place, in case the user wishes to repair/complete the steps manually. If the result includes a connection, then at least that was successful. If not, then the caller can choose how to treat the terminal sessions. If the cause of failure was an exception, it is included. If the launch succeeded, but module mapping failed, the result will include a trace and the exception. If an error occurred in the shell script, it may not be communicated here, but instead displayed only in the terminal.
-
Constructor Summary
ConstructorsConstructorDescriptionLaunchResult(Program program, Map<String, TerminalSession> sessions, TraceRmiAcceptor acceptor, TraceRmiConnection connection, Trace trace, Throwable exception) Creates an instance of aLaunchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacceptor()Returns the value of theacceptorrecord component.voidclose()Returns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.program()Returns the value of theprogramrecord component.sessions()Returns the value of thesessionsrecord component.voidfinal StringtoString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.
-
Constructor Details
-
LaunchResult
public LaunchResult(Program program, Map<String, TerminalSession> sessions, TraceRmiAcceptor acceptor, TraceRmiConnection connection, Trace trace, Throwable exception) Creates an instance of aLaunchResultrecord class.- Parameters:
program- the value for theprogramrecord componentsessions- the value for thesessionsrecord componentacceptor- the value for theacceptorrecord componentconnection- the value for theconnectionrecord componenttrace- the value for thetracerecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
showTerminals
public void showTerminals() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
program
Returns the value of theprogramrecord component.- Returns:
- the value of the
programrecord component
-
sessions
Returns the value of thesessionsrecord component.- Returns:
- the value of the
sessionsrecord component
-
acceptor
Returns the value of theacceptorrecord component.- Returns:
- the value of the
acceptorrecord component
-
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
trace
Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-