Package ghidra.debug.api.tracermi
Interface TraceRmiServiceListener
public interface TraceRmiServiceListener
A listener for Trace RMI Service events
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe mechanism for creating a connection -
Method Summary
Modifier and TypeMethodDescriptiondefault voidacceptCancelled(TraceRmiAcceptor acceptor) The client cancelled an inbound acceptor viaTraceRmiAcceptor.cancel()default voidacceptFailed(TraceRmiAcceptor acceptor, Exception e) The service failed to complete an inbound connectiondefault voidconnected(TraceRmiConnection connection, TraceRmiServiceListener.ConnectMode mode, TraceRmiAcceptor acceptor) A new connection has been establisheddefault voiddisconnected(TraceRmiConnection connection) A connection was lost or closeddefault voidserverStarted(SocketAddress address) The server has been started on the given addressdefault voidThe server has been stoppeddefault voidtargetPublished(TraceRmiConnection connection, Target target) A new target was created by a Trace RMI connectiondefault voidtransactionClosed(TraceRmiConnection connection, Target target, boolean aborted) A transaction was closed for the given targetdefault voidtransactionOpened(TraceRmiConnection connection, Target target) A transaction was opened for the given targetdefault voidwaitingAccept(TraceRmiAcceptor acceptor) The service is waiting for an inbound connection
-
Method Details
-
serverStarted
The server has been started on the given address- Parameters:
address- the server's address
-
serverStopped
default void serverStopped()The server has been stopped -
connected
default void connected(TraceRmiConnection connection, TraceRmiServiceListener.ConnectMode mode, TraceRmiAcceptor acceptor) A new connection has been established- Parameters:
connection- the new connectionmode- the mechanism creating the connectionacceptor- if byTraceRmiService.acceptOne(SocketAddress), the acceptor that created this connection
-
disconnected
A connection was lost or closedTODO: Do we care to indicate why?
- Parameters:
connection- the connection that has been closed
-
waitingAccept
The service is waiting for an inbound connectionThe acceptor remains valid until one of three events occurs:
connected(TraceRmiConnection, ConnectMode, TraceRmiAcceptor),acceptCancelled(TraceRmiAcceptor), oracceptFailed(TraceRmiAcceptor, Exception).- Parameters:
acceptor- the acceptor waiting
-
acceptCancelled
The client cancelled an inbound acceptor viaTraceRmiAcceptor.cancel()- Parameters:
acceptor- the acceptor that was cancelled
-
acceptFailed
The service failed to complete an inbound connection- Parameters:
acceptor- the acceptor that failede- the exception causing the failure
-
targetPublished
A new target was created by a Trace RMI connectionThe added benefit of this method compared to the
TargetPublicationListeneris that it identifies which connection- Parameters:
connection- the connection creating the targettarget- the target- See Also:
-
transactionOpened
A transaction was opened for the given targetNote, this is different than listening for transactions on the
Tracedomain object, because this only includes those initiated by the connection.- Parameters:
connection- the connection that initiated the transactiontarget- the target whose trace is to be modified
-
transactionClosed
A transaction was closed for the given targetNote, this is different than listening for transactions on the
Tracedomain object, because this only includes those initiated by the connection.- Parameters:
connection- the connection that closed the transactiontarget- the target whose trace was modifiedaborted- if the transaction was aborted. This should only be true in catastrophic cases.
-