Class RemoteSampleListenerImpl
- All Implemented Interfaces:
Serializable
,Remote
,RemoteSampleListener
,SampleListener
,TestStateListener
- See Also:
-
Field Summary
Fields inherited from class java.rmi.server.RemoteObject
ref
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processBatch
(List<SampleEvent> samples) This method is called remotely and fires a list of samples events received locally.void
A sample has started and stopped.void
A sample has started.void
A sample has stopped.void
Called once for all threads after the end of a test.void
Called once for all threads after the end of a test.void
Called just before the start of the test from the main engine thread.void
testStarted
(String host) Called just before the start of the test from the main engine thread.Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Constructor Details
-
RemoteSampleListenerImpl
- Throws:
RemoteException
-
-
Method Details
-
testStarted
public void testStarted()Description copied from interface:TestStateListener
Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
- Specified by:
testStarted
in interfaceRemoteSampleListener
- Specified by:
testStarted
in interfaceTestStateListener
- See Also:
-
testStarted
Description copied from interface:TestStateListener
Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
- Specified by:
testStarted
in interfaceRemoteSampleListener
- Specified by:
testStarted
in interfaceTestStateListener
- Parameters:
host
- name of host- See Also:
-
testEnded
public void testEnded()Description copied from interface:TestStateListener
Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
- Specified by:
testEnded
in interfaceRemoteSampleListener
- Specified by:
testEnded
in interfaceTestStateListener
- See Also:
-
testEnded
Description copied from interface:TestStateListener
Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
- Specified by:
testEnded
in interfaceRemoteSampleListener
- Specified by:
testEnded
in interfaceTestStateListener
- Parameters:
host
- name of host- See Also:
-
processBatch
This method is called remotely and fires a list of samples events received locally. The function is to reduce network load when using remote testing.- Specified by:
processBatch
in interfaceRemoteSampleListener
- Parameters:
samples
- the list of sample events to be fired locally
-
sampleOccurred
Description copied from interface:RemoteSampleListener
A sample has started and stopped.- Specified by:
sampleOccurred
in interfaceRemoteSampleListener
- Specified by:
sampleOccurred
in interfaceSampleListener
- Parameters:
e
- the event with data about the completed sample
-
sampleStarted
A sample has started.- Specified by:
sampleStarted
in interfaceRemoteSampleListener
- Specified by:
sampleStarted
in interfaceSampleListener
- Parameters:
e
- the event with data about the started sample
-
sampleStopped
A sample has stopped.- Specified by:
sampleStopped
in interfaceRemoteSampleListener
- Specified by:
sampleStopped
in interfaceSampleListener
- Parameters:
e
- the event with data about the stopped sample
-