@Test public void testServerTemplateDeleted() throws Exception { final ServerTemplateDeleted event = new ServerTemplateDeleted("serverTemplateId"); notificationService.notify(event); verify(endpoint, timeout(TIMEOUT)).sendObject(new KieServerControllerNotification(event)); }
@Override public void notify(final ServerTemplate serverTemplate, final ContainerSpec containerSpec, final List<Container> containers) { LOGGER.info("WebSocket notification about change requested on server {} with container spec {} with following result {}", serverTemplate, containerSpec, containers); notifySessions(new ContainerSpecUpdated(serverTemplate, containerSpec, containers)); }
WebSocketNotificationService implements NotificationService { @Override public void notify(final ServerTemplate serverTemplate, final ContainerSpec containerSpec, final List<Container> containers) { LOGGER.info("WebSocket notification about change requested on server {} with container spec {} with following result {}", serverTemplate, containerSpec, containers); notifySessions(new ContainerSpecUpdated(serverTemplate, containerSpec, containers)); } }
WebSocketNotificationService implements NotificationService { @Override public void notify(final ServerTemplate serverTemplate, final ContainerSpec containerSpec, final List<Container> containers) { LOGGER.info("WebSocket notification about change requested on server {} with container spec {} with following result {}", serverTemplate, containerSpec, containers); notifySessions(new ContainerSpecUpdated(serverTemplate, containerSpec, containers)); } protected  WebSocketNotificationService(); }
WebSocketNotificationService implements NotificationService { @Override public void notify(final ServerTemplate serverTemplate, final ContainerSpec containerSpec, final List<Container> containers) { LOGGER.info("WebSocket notification about change requested on server {} with container spec {} with following result {}", serverTemplate, containerSpec, containers); notifySessions(new ContainerSpecUpdated(serverTemplate, containerSpec, containers)); } protected  WebSocketNotificationService(); static WebSocketNotificationService getInstance(); @Override void notify(final ServerTemplate serverTemplate,
                       final ContainerSpec containerSpec,
                       final List<Container> containers); @Override void notify(final ServerTemplateUpdated serverTemplateUpdated); @Override void notify(final ServerTemplateDeleted serverTemplateDeleted); @Override void notify(final ServerInstanceUpdated serverInstanceUpdated); @Override void notify(final ServerInstanceDeleted serverInstanceDeleted); @Override void notify(final ServerInstanceConnected serverInstanceConnected); @Override void notify(final ServerInstanceDisconnected serverInstanceDisconnected); }
WebSocketNotificationService implements NotificationService { @Override public void notify(final ServerTemplate serverTemplate, final ContainerSpec containerSpec, final List<Container> containers) { LOGGER.info("WebSocket notification about change requested on server {} with container spec {} with following result {}", serverTemplate, containerSpec, containers); notifySessions(new ContainerSpecUpdated(serverTemplate, containerSpec, containers)); } protected  WebSocketNotificationService(); static WebSocketNotificationService getInstance(); @Override void notify(final ServerTemplate serverTemplate,
                       final ContainerSpec containerSpec,
                       final List<Container> containers); @Override void notify(final ServerTemplateUpdated serverTemplateUpdated); @Override void notify(final ServerTemplateDeleted serverTemplateDeleted); @Override void notify(final ServerInstanceUpdated serverInstanceUpdated); @Override void notify(final ServerInstanceDeleted serverInstanceDeleted); @Override void notify(final ServerInstanceConnected serverInstanceConnected); @Override void notify(final ServerInstanceDisconnected serverInstanceDisconnected);  }