public final class SocketViewStub extends Object implements IBenchRunSessionListener
| Constructor and Description | 
|---|
| SocketViewStub(String host,
              int viewListenerPort)The constructor initializes the given host name and the port, which are
 needed for creating a client socket. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | finishedBenchRuns()This method notifies the view that all bench runs completed. | 
| void | initTotalBenchProgress(Map<String,Integer> elems)The initTotalBenchProgress initializes the progress bar in the eclipse
 view. | 
| void | updateCurrentRun(String currentElement)The updateCurrentRun method notifies the view which element is currently
 running. | 
| void | updateError(String element,
           String exception)The updateError method updates the view that an error occurred while
 benching the given java element. | 
public SocketViewStub(String host, int viewListenerPort) throws SocketViewException
host - Host represents the String host nameviewListenerPort - This param represents the port of the view.SocketViewException - if communitcation failspublic void initTotalBenchProgress(Map<String,Integer> elems) throws SocketViewException
initTotalBenchProgress in interface IBenchRunSessionListenerelems - This param is an HashMap which consists of each java element
            name with its total bench runs value.SocketViewException - if init failspublic void updateCurrentRun(String currentElement) throws SocketViewException
updateCurrentRun in interface IBenchRunSessionListenercurrentElement - This String param represents the current running java
            element.SocketViewException - if update failspublic void updateError(String element, String exception) throws SocketViewException
updateError in interface IBenchRunSessionListenerelement - This String param represents the element name of the
            benched object where the error occurred.exception - The exception caused by the element.SocketViewException - if update failspublic boolean finishedBenchRuns()
                          throws SocketViewException
finishedBenchRuns in interface IBenchRunSessionListenerSocketViewException - if finish-update failsCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.