Interface IntegrityRemotingClientListener
-
public interface IntegrityRemotingClientListenerThis 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 voidonAbortExecution(String anAbortExecutionMessage, String anAbortExecutionStackTrace)Called when the server has hit an AbortExecutionException aborting further test execution.voidonBaselineReceived(SetList aSetList, Endpoint anEndpoint)Called after the initial set list baseline was received from the server.voidonConfirmCreateBreakpoint(Integer anEntryReference, Endpoint anEndpoint)Called when the server confirms the creation of a breakpoint.voidonConfirmRemoveBreakpoint(Integer anEntryReference, Endpoint anEndpoint)Called when the server confirms the removal of a breakpoint.voidonConnectionLost(Endpoint anEndpoint)Called if the connection was lost.voidonConnectionSuccessful(IntegrityRemotingVersionMessage aRemoteVersion, Endpoint anEndpoint)Called if a connection to a server was established successfully.voidonExecutionStateUpdate(ExecutionStates aState, Endpoint anEndpoint)Called when the execution state has changed.voidonForkResultSummaryRetrieval(Integer aSuccessCount, Integer aFailureCount, Integer aTestExceptionCount, Integer aCallExceptionCount)Called when a fork has finished an execution block and has returned the summary result data.voidonSetListUpdate(SetListEntry[] someUpdatedEntries, Integer anEntryInExecution, Endpoint anEndpoint)Called when there are updates to the set list.voidonTestRunnerCallbackMessageRetrieval(String aCallbackClassName, TestRunnerCallbackMethods aMethod, Serializable[] someData)Called when data for a test runner callback was received from a fork.voidonTimeSyncRequest(Date aStartDate, List<org.eclipse.xtext.util.Pair<Long,TemporalUnit>> aDiffTime, BigDecimal aProgressionFactor, String[] someTargetedForks)Called when a timesync command has arrived.voidonTimeSyncResponse(TimeSyncResultMessage aResult)Called when a timesync response has arrived.voidonVariableUnsetRetrieval(String aVariableName)Called when an unsetting of a variable was received from a fork.voidonVariableUpdateRetrieval(String aVariableName, Serializable aValue)Called when an update for a variable was received from a fork.voidonVersionMismatch(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, 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(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(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(String aCallbackClassName, TestRunnerCallbackMethods aMethod, 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(String aVariableName, 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(String aVariableName)
Called when an unsetting of a variable was received from a fork.- Parameters:
aVariableName- the name of the variable
-
onTimeSyncRequest
void onTimeSyncRequest(Date aStartDate, List<org.eclipse.xtext.util.Pair<Long,TemporalUnit>> aDiffTime, BigDecimal aProgressionFactor, 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(String anAbortExecutionMessage, 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(Integer aSuccessCount, Integer aFailureCount, Integer aTestExceptionCount, Integer aCallExceptionCount)
Called when a fork has finished an execution block and has returned the summary result data.- Parameters:
aSuccessCount-aFailureCount-aTestExceptionCount-aCallExceptionCount-
-
-