public final class SocketViewProgressUpdater extends Object implements IUpdater
SocketViewStub. It contains the methods
which update the view to
inform about the bench process progress.| Constructor and Description |
|---|
SocketViewProgressUpdater(String host,
int port)
The constructor initializes the host and port for creation a client
socket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finished()
This method notifies the view that all benches have been executed and the
bench progress is finished.
|
boolean |
initProgressView(Map<BenchmarkMethod,Integer> mapping)
This method initializes the values of the eclipse view and resets the
progress bar.
|
boolean |
updateCurrentElement(AbstractMeter meter,
String name)
This method notifies the eclipse view which element is currently benched.
|
boolean |
updateErrorInElement(String name,
Exception exception)
This method informs the view that an error occurred while benching the
current element.
|
public SocketViewProgressUpdater(String host, int port) throws SocketViewException
host - Host is the host name of the view provider.port - Port represent the port number of the eclipse view.SocketViewExceptionpublic boolean initProgressView(Map<BenchmarkMethod,Integer> mapping) throws SocketViewException
initProgressView in interface IUpdatermapping - a mapping with all methods to benchmark and the related runsSocketViewExceptionpublic boolean updateCurrentElement(AbstractMeter meter, String name) throws SocketViewException
updateCurrentElement in interface IUpdatermeter - The current meter.name - This param represents the java element which is currently
benched and which is fully qualified.SocketViewExceptionpublic boolean updateErrorInElement(String name, Exception exception) throws SocketViewException
updateErrorInElement in interface IUpdatername - Element represents the java element which has not been
executed successfully.exception - The exception caused by the element.SocketViewExceptionpublic void finished()
throws SocketViewException
finished in interface IUpdaterSocketViewExceptionCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.