Class ResultsSocket
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.api.sockets.WebSocket
org.palladiosimulator.protocom.framework.java.ee.api.sockets.ResultsSocket
WebSocket class for providing real-time result updates.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onClose
(javax.websocket.Session session, javax.websocket.CloseReason reason) Called when a socket is closed.void
Called when an error occurred.void
onOpen
(javax.websocket.Session session, javax.websocket.EndpointConfig config) Called when a socket is opened.static void
update
(ExperimentData data) Sends experiment meta data in all sessions.
-
Constructor Details
-
ResultsSocket
public ResultsSocket()
-
-
Method Details
-
update
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 socketconfig
- 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 socketreason
- the close reason
-
onError
Called when an error occurred.- Parameters:
session
- the session of the sockett
- a description of the error
-