java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.api.sockets.WebSocket
org.palladiosimulator.protocom.framework.java.ee.api.sockets.ResultsSocket

public class ResultsSocket extends WebSocket
WebSocket class for providing real-time result updates.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClose(javax.websocket.Session session, javax.websocket.CloseReason reason)
    Called when a socket is closed.
    void
    onError(javax.websocket.Session session, Throwable t)
    Called when an error occurred.
    void
    onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config)
    Called when a socket is opened.
    static void
    Sends experiment meta data in all sessions.

    Methods inherited from class org.palladiosimulator.protocom.framework.java.ee.api.sockets.WebSocket

    send, sendToAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResultsSocket

      public ResultsSocket()
  • Method Details

    • update

      public static void update(ExperimentData data)
      Sends experiment meta data in all sessions.
      Parameters:
      data - the data so send
    • onOpen

      public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config)
      Called when a socket is opened.
      Parameters:
      session - the session of the socket
      config - the endpoint configuration
    • onClose

      public void onClose(javax.websocket.Session session, javax.websocket.CloseReason reason)
      Called when a socket is closed.
      Parameters:
      session - the session of the socket
      reason - the close reason
    • onError

      public void onError(javax.websocket.Session session, Throwable t)
      Called when an error occurred.
      Parameters:
      session - the session of the socket
      t - a description of the error