Class LogSocket
- java.lang.Object
-
- org.palladiosimulator.protocom.framework.java.ee.api.sockets.WebSocket
-
- org.palladiosimulator.protocom.framework.java.ee.api.sockets.LogSocket
-
public class LogSocket extends WebSocket
WebSocket class for providing real-time log updates.
-
-
Constructor Summary
Constructors Constructor Description LogSocket()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
append(LogMessage message)
Sends a log message in all sessions.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.
-
-
-
Method Detail
-
append
public static void append(LogMessage message)
Sends a log message in all sessions.- Parameters:
message
- the message to 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
public void onError(javax.websocket.Session session, Throwable t)
Called when an error occurred.- Parameters:
session
- the session of the sockett
- a description of the error
-
-