Interface IntegrityRemotingClientListener
-
public interface IntegrityRemotingClientListener
This listener must be implemented by anyone wanting to attach to the remoting client.- Author:
- Rene Schneider - initial API and implementation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAbortExecution(java.lang.String anAbortExecutionMessage, java.lang.String anAbortExecutionStackTrace)
Called when the server has hit an AbortExecutionException aborting further test execution.void
onBaselineReceived(SetList aSetList, Endpoint anEndpoint)
Called after the initial set list baseline was received from the server.void
onConfirmCreateBreakpoint(java.lang.Integer anEntryReference, Endpoint anEndpoint)
Called when the server confirms the creation of a breakpoint.void
onConfirmRemoveBreakpoint(java.lang.Integer anEntryReference, Endpoint anEndpoint)
Called when the server confirms the removal of a breakpoint.void
onConnectionLost(Endpoint anEndpoint)
Called if the connection was lost.void
onConnectionSuccessful(IntegrityRemotingVersionMessage aRemoteVersion, Endpoint anEndpoint)
Called if a connection to a server was established successfully.void
onExecutionStateUpdate(ExecutionStates aState, Endpoint anEndpoint)
Called when the execution state has changed.void
onForkResultSummaryRetrieval(java.lang.Integer aSuccessCount, java.lang.Integer aFailureCount, java.lang.Integer aTestExceptionCount, java.lang.Integer aCallExceptionCount)
Called when a fork has finished an execution block and has returned the summary result data.void
onSetListUpdate(SetListEntry[] someUpdatedEntries, java.lang.Integer anEntryInExecution, Endpoint anEndpoint)
Called when there are updates to the set list.void
onTestRunnerCallbackMessageRetrieval(java.lang.String aCallbackClassName, TestRunnerCallbackMethods aMethod, java.io.Serializable[] someData)
Called when data for a test runner callback was received from a fork.void
onTimeSyncRequest(java.util.Date aStartDate, java.util.List<org.eclipse.xtext.util.Pair<java.lang.Long,java.time.temporal.TemporalUnit>> aDiffTime, java.math.BigDecimal aProgressionFactor, java.lang.String[] someTargetedForks)
Called when a timesync command has arrived.void
onTimeSyncResponse(TimeSyncResultMessage aResult)
Called when a timesync response has arrived.void
onVariableUnsetRetrieval(java.lang.String aVariableName)
Called when an unsetting of a variable was received from a fork.void
onVariableUpdateRetrieval(java.lang.String aVariableName, java.io.Serializable aValue)
Called when an update for a variable was received from a fork.void
onVersionMismatch(IntegrityRemotingVersionMessage aRemoteVersion, Endpoint anEndpoint)
Called on a connection attempt if the remote version doesn't match the local version.
-
-
-
Method Detail
-
onConnectionSuccessful
void onConnectionSuccessful(IntegrityRemotingVersionMessage aRemoteVersion, Endpoint anEndpoint)
Called if a connection to a server was established successfully.- Parameters:
aRemoteVersion
- the version of the serveranEndpoint
- the endpoint
-
onConnectionLost
void onConnectionLost(Endpoint anEndpoint)
Called if the connection was lost.- Parameters:
anEndpoint
- the endpoint
-
onBaselineReceived
void onBaselineReceived(SetList aSetList, Endpoint anEndpoint)
Called after the initial set list baseline was received from the server. The server will send this baseline right after connecting.- Parameters:
aSetList
- the set listanEndpoint
- the endpoint
-
onExecutionStateUpdate
void onExecutionStateUpdate(ExecutionStates aState, Endpoint anEndpoint)
Called when the execution state has changed.- Parameters:
aState
- the new stateanEndpoint
- the endpoint
-
onVersionMismatch
void onVersionMismatch(IntegrityRemotingVersionMessage aRemoteVersion, Endpoint anEndpoint)
Called on a connection attempt if the remote version doesn't match the local version.- Parameters:
aRemoteVersion
- the remote version informationanEndpoint
- the endpoint
-
onSetListUpdate
void onSetListUpdate(SetListEntry[] someUpdatedEntries, java.lang.Integer anEntryInExecution, Endpoint anEndpoint)
Called when there are updates to the set list.- Parameters:
someUpdatedEntries
- the updated entriesanEntryInExecution
- the currently executed entry (may be null in case there's no change)anEndpoint
- the endpoint
-
onConfirmCreateBreakpoint
void onConfirmCreateBreakpoint(java.lang.Integer anEntryReference, Endpoint anEndpoint)
Called when the server confirms the creation of a breakpoint.- Parameters:
anEntryReference
- the entry at which the breakpoint was createdanEndpoint
- the endpoint
-
onConfirmRemoveBreakpoint
void onConfirmRemoveBreakpoint(java.lang.Integer anEntryReference, Endpoint anEndpoint)
Called when the server confirms the removal of a breakpoint.- Parameters:
anEntryReference
- the entry at which the breakpoint was removedanEndpoint
- the endpoint
-
onTestRunnerCallbackMessageRetrieval
void onTestRunnerCallbackMessageRetrieval(java.lang.String aCallbackClassName, TestRunnerCallbackMethods aMethod, java.io.Serializable[] someData)
Called when data for a test runner callback was received from a fork.- Parameters:
aCallbackClassName
- the callback classes' nameaMethod
- the methodsomeData
- the payload
-
onVariableUpdateRetrieval
void onVariableUpdateRetrieval(java.lang.String aVariableName, java.io.Serializable aValue)
Called when an update for a variable was received from a fork.- Parameters:
aVariableName
- the name of the variableaValue
- the new value
-
onVariableUnsetRetrieval
void onVariableUnsetRetrieval(java.lang.String aVariableName)
Called when an unsetting of a variable was received from a fork.- Parameters:
aVariableName
- the name of the variable
-
onTimeSyncRequest
void onTimeSyncRequest(java.util.Date aStartDate, java.util.List<org.eclipse.xtext.util.Pair<java.lang.Long,java.time.temporal.TemporalUnit>> aDiffTime, java.math.BigDecimal aProgressionFactor, java.lang.String[] someTargetedForks)
Called when a timesync command has arrived.- Parameters:
aStartDate
- the start dateaDiffTime
- the relative time modificationaProgressionFactor
- the progression factorsomeTargetedForks
- the forks that this message should be sent to
-
onTimeSyncResponse
void onTimeSyncResponse(TimeSyncResultMessage aResult)
Called when a timesync response has arrived. If the arguments' error fields are null, this was successful.- Parameters:
anErrorMessage
-anErrorStackTrace
-
-
onAbortExecution
void onAbortExecution(java.lang.String anAbortExecutionMessage, java.lang.String anAbortExecutionStackTrace)
Called when the server has hit an AbortExecutionException aborting further test execution.- Parameters:
anAbortExecutionMessage
- The message of the AbortExecutionExceptionanAbortExecutionStackTrace
- The stacktrace of the AbortExecutionException
-
onForkResultSummaryRetrieval
void onForkResultSummaryRetrieval(java.lang.Integer aSuccessCount, java.lang.Integer aFailureCount, java.lang.Integer aTestExceptionCount, java.lang.Integer aCallExceptionCount)
Called when a fork has finished an execution block and has returned the summary result data.- Parameters:
aSuccessCount
-aFailureCount
-aTestExceptionCount
-aCallExceptionCount
-
-
-