Class NotificationsManager

  • All Implemented Interfaces:
    org.bimserver.plugins.services.NotificationsManagerInterface

    public class NotificationsManager
    extends NotificationsClient
    implements org.bimserver.plugins.services.NotificationsManagerInterface
    • Constructor Detail

      • NotificationsManager

        public NotificationsManager​(BimServerClient bimServerClient)
    • Method Detail

      • setBinaryMessageListener

        public void setBinaryMessageListener​(long topicId,
                                             org.bimserver.client.notifications.BinaryMessageListener binaryMessageListener)
        Specified by:
        setBinaryMessageListener in interface org.bimserver.plugins.services.NotificationsManagerInterface
      • start

        public void start()
      • connect

        public void connect​(org.bimserver.shared.meta.SServicesMap servicesMap,
                            String address)
      • send

        public void send​(com.fasterxml.jackson.databind.JsonNode jsonNode)
        Specified by:
        send in interface org.bimserver.plugins.services.NotificationsManagerInterface
      • disconnect

        public void disconnect()
      • isRunning

        public boolean isRunning()
      • startAndWaitForInit

        public void startAndWaitForInit()
      • unregisterNotifictionListener

        public void unregisterNotifictionListener​(org.bimserver.shared.interfaces.NotificationInterface notificationInterface)
      • getEndpointid

        public Long getEndpointid()
      • setEndpointId

        public void setEndpointId​(Long endpointid)
      • unregisterProgressHandler

        public void unregisterProgressHandler​(Long topicId,
                                              org.bimserver.plugins.services.ProgressHandler progressHandler)
      • registerProgressHandler

        public void registerProgressHandler​(Long topicId,
                                            org.bimserver.plugins.services.ProgressHandler progressHandler)
        Specified by:
        registerProgressHandler in interface org.bimserver.plugins.services.NotificationsManagerInterface
      • handleIncoming

        public void handleIncoming​(com.fasterxml.jackson.databind.node.ObjectNode request)
                            throws org.bimserver.shared.exceptions.UserException,
                                   org.bimserver.shared.json.ConvertException,
                                   IOException
        Throws:
        org.bimserver.shared.exceptions.UserException
        org.bimserver.shared.json.ConvertException
        IOException
      • socketIsClosed

        public void socketIsClosed()