Class EventHandler

java.lang.Object
org.qubership.atp.dataset.service.ws.event.EventHandler

public class EventHandler extends Object
  • Constructor Details

    • EventHandler

      public EventHandler()
  • Method Details

    • add

      public void add(Event event, org.springframework.web.socket.WebSocketSession webSocket)
      This method will store which DSL user would like to edit, user's JSESSIONID and web socket connection of course.
    • getWebSockets

      public Collection<org.springframework.web.socket.WebSocketSession> getWebSockets(Event event)
      returns all websockets which working on current DSL.
    • remove

      public void remove(Event event)
    • remove

      public void remove(org.springframework.web.socket.WebSocketSession webSocket)
      remove session by websocket.
    • getDsPath

      public Pair<String,String> getDsPath(org.springframework.web.socket.WebSocketSession socket)
      returns DSL and Session.
    • getHosts

      public Collection<String> getHosts(String sessionId, String dsl)
      returns the list of users who edit current dsl.