org.apache.jmeter.samplers

Class RemoteSampleListenerImpl

Implemented Interfaces:
Remote, RemoteSampleListener, SampleListener, TestListener

public class RemoteSampleListenerImpl
extends UnicastRemoteObject
implements RemoteSampleListener, SampleListener, TestListener

Implementation of remote sampler listener, also supports TestListener

Constructor Summary

RemoteSampleListenerImpl(Object listener)

Method Summary

void
processBatch(List samples)
This method is called remotely and fires a list of samples events received locally.
void
sampleOccurred(SampleEvent e)
A sample has started and stopped.
void
sampleStarted(SampleEvent e)
A sample has started.
void
sampleStopped(SampleEvent e)
A sample has stopped.
void
testEnded()
void
testEnded(String host)
void
testIterationStart(LoopIterationEvent event)
void
testStarted()
void
testStarted(String host)

Constructor Details

RemoteSampleListenerImpl

public RemoteSampleListenerImpl(Object listener)
            throws RemoteException

Method Details

processBatch

public void processBatch(List samples)
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 interface RemoteSampleListener
Parameters:
samples - the list of sample events to be fired locally

sampleOccurred

public void sampleOccurred(SampleEvent e)
A sample has started and stopped.
Specified by:
sampleOccurred in interface RemoteSampleListener
sampleOccurred in interface SampleListener

sampleStarted

public void sampleStarted(SampleEvent e)
A sample has started.
Specified by:
sampleStarted in interface RemoteSampleListener
sampleStarted in interface SampleListener

sampleStopped

public void sampleStopped(SampleEvent e)
A sample has stopped.
Specified by:
sampleStopped in interface RemoteSampleListener
sampleStopped in interface SampleListener

testEnded

public void testEnded()
Specified by:
testEnded in interface RemoteSampleListener
testEnded in interface TestListener

testEnded

public void testEnded(String host)
Specified by:
testEnded in interface RemoteSampleListener
testEnded in interface TestListener

testIterationStart

public void testIterationStart(LoopIterationEvent event)
Specified by:
testIterationStart in interface TestListener

testStarted

public void testStarted()
Specified by:
testStarted in interface RemoteSampleListener
testStarted in interface TestListener

testStarted

public void testStarted(String host)
Specified by:
testStarted in interface RemoteSampleListener
testStarted in interface TestListener

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.