Class NotificationsManager
- java.lang.Object
-
- org.bimserver.client.notifications.NotificationsClient
-
- org.bimserver.client.notifications.NotificationsManager
-
- All Implemented Interfaces:
org.bimserver.plugins.services.NotificationsManagerInterface
public class NotificationsManager extends NotificationsClient implements org.bimserver.plugins.services.NotificationsManagerInterface
-
-
Constructor Summary
Constructors Constructor Description NotificationsManager(BimServerClient bimServerClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(org.bimserver.shared.meta.SServicesMap servicesMap, String address)voiddisconnect()BimServerClientgetBimServerClient()LonggetEndpointid()voidhandleIncoming(com.fasterxml.jackson.databind.node.ObjectNode request)booleanisRunning()voidregisterProgressHandler(Long topicId, org.bimserver.plugins.services.ProgressHandler progressHandler)voidsend(com.fasterxml.jackson.databind.JsonNode jsonNode)voidsetBinaryMessageListener(long topicId, org.bimserver.client.notifications.BinaryMessageListener binaryMessageListener)voidsetEndpointId(Long endpointid)voidsocketIsClosed()voidstart()voidstartAndWaitForInit()voidunregisterNotifictionListener(org.bimserver.shared.interfaces.NotificationInterface notificationInterface)voidunregisterProgressHandler(Long topicId, org.bimserver.plugins.services.ProgressHandler progressHandler)-
Methods inherited from class org.bimserver.client.notifications.NotificationsClient
notifyConnect, notifyDisconnect, registerConnectDisconnectListener, unregisterConnectDisconnectListener
-
-
-
-
Constructor Detail
-
NotificationsManager
public NotificationsManager(BimServerClient bimServerClient)
-
-
Method Detail
-
setBinaryMessageListener
public void setBinaryMessageListener(long topicId, org.bimserver.client.notifications.BinaryMessageListener binaryMessageListener)- Specified by:
setBinaryMessageListenerin interfaceorg.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:
sendin interfaceorg.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)
-
getBimServerClient
public BimServerClient getBimServerClient()
-
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:
registerProgressHandlerin interfaceorg.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.UserExceptionorg.bimserver.shared.json.ConvertExceptionIOException
-
socketIsClosed
public void socketIsClosed()
-
-