@Test public void testUpdateContainerSpecWithoutAbortingInstances() throws IOException { controllerClient.updateContainerSpec(SERVER_TEMPLATE_ID, CONTAINER_ID, new ContainerSpec(), false); checkUpdateContainerSpec(false); }
@Override public void updateContainerSpec(final String serverTemplateId, final ContainerSpec containerSpec) { sendCommand(SpecManagementService.class.getName(), "updateContainerSpec", serverTemplateId, containerSpec); }
WebSocketKieServerControllerClient implements KieServerControllerClient { @Override public void updateContainerSpec(final String serverTemplateId, final ContainerSpec containerSpec) { sendCommand(SpecManagementService.class.getName(), "updateContainerSpec", serverTemplateId, containerSpec); } }
WebSocketKieServerControllerClient implements KieServerControllerClient { @Override public void updateContainerSpec(final String serverTemplateId, final ContainerSpec containerSpec) { sendCommand(SpecManagementService.class.getName(), "updateContainerSpec", serverTemplateId, containerSpec); } WebSocketKieServerControllerClient(final String controllerUrl,
                                              final String userName,
                                              final String password,
                                              final String token,
                                              final EventHandler handler);  WebSocketKieServerControllerClient(final String controllerUrl,
                                              final String userName,
                                              final String password,
                                              final String token,
                                              final KieServerMessageHandlerWebSocketClient client,
                                              final KieServerControllerNotificationWebSocketClient notificationClient); }
WebSocketKieServerControllerClient implements KieServerControllerClient { @Override public void updateContainerSpec(final String serverTemplateId, final ContainerSpec containerSpec) { sendCommand(SpecManagementService.class.getName(), "updateContainerSpec", serverTemplateId, containerSpec); } WebSocketKieServerControllerClient(final String controllerUrl,
                                              final String userName,
                                              final String password,
                                              final String token,
                                              final EventHandler handler);  WebSocketKieServerControllerClient(final String controllerUrl,
                                              final String userName,
                                              final String password,
                                              final String token,
                                              final KieServerMessageHandlerWebSocketClient client,
                                              final KieServerControllerNotificationWebSocketClient notificationClient); @Override void close(); @Override ServerTemplateList listServerTemplates(); @Override void saveContainerSpec(final String serverTemplateId,
                                  final ContainerSpec containerSpec); @Override void updateContainerSpec(final String serverTemplateId,
                                    final ContainerSpec containerSpec); @Override void updateContainerSpec(final String serverTemplateId,
                                    final String containerId,
                                    final ContainerSpec containerSpec); @Override void updateContainerSpec(final String serverTemplateId,
                                    final String containerId,
                                    final ContainerSpec containerSpec,
                                    final Boolean resetBeforeUpdate); @Override void saveServerTemplate(final ServerTemplate serverTemplate); @Override ServerTemplate getServerTemplate(final String serverTemplateId); @Override ServerTemplateKeyList listServerTemplateKeys(); @Override ContainerSpecList listContainerSpec(final String serverTemplateId); @Override ContainerSpec getContainerInfo(final String serverTemplateId,
                                          final String containerId); @Override void deleteContainerSpec(final String serverTemplateId,
                                    final String containerSpecId); @Override void deleteServerTemplate(final String serverTemplateId); @Override void copyServerTemplate(final String serverTemplateId,
                                   final String newServerTemplateId,
                                   final String newServerTemplateName); @Override void updateContainerConfig(final String serverTemplateId,
                                      final String containerSpecId,
                                      final Capability capability,
                                      final ContainerConfig containerConfig); @Override void updateServerTemplateConfig(final String serverTemplateId,
                                           final Capability capability,
                                           final ServerConfig serverConfig); @Override void startContainer(final ContainerSpecKey containerSpecKey); @Override void stopContainer(final ContainerSpecKey containerSpecKey); @Override void activateContainer(final ContainerSpecKey containerSpecKey); @Override void deactivateContainer(final ContainerSpecKey containerSpecKey); @Override void scanNow(final ContainerSpecKey containerSpecKey); @Override void startScanner(final ContainerSpecKey containerSpecKey,
                             final Long interval); @Override void stopScanner(final ContainerSpecKey containerSpecKey); @Override void upgradeContainer(final ContainerSpecKey containerSpecKey,
                                 final ReleaseId releaseId); @Override ContainerList getContainers(final ServerInstanceKey serverInstanceKey); @Override ContainerList getContainers(final ServerTemplate serverTemplate,
                                       final ContainerSpec containerSpec); @Override ServerInstanceKeyList getServerInstances(final String serverTemplateId); @Override void deleteServerInstance(final ServerInstanceKey serverInstanceKey); }
WebSocketKieServerControllerClient implements KieServerControllerClient { @Override public void updateContainerSpec(final String serverTemplateId, final ContainerSpec containerSpec) { sendCommand(SpecManagementService.class.getName(), "updateContainerSpec", serverTemplateId, containerSpec); } WebSocketKieServerControllerClient(final String controllerUrl,
                                              final String userName,
                                              final String password,
                                              final String token,
                                              final EventHandler handler);  WebSocketKieServerControllerClient(final String controllerUrl,
                                              final String userName,
                                              final String password,
                                              final String token,
                                              final KieServerMessageHandlerWebSocketClient client,
                                              final KieServerControllerNotificationWebSocketClient notificationClient); @Override void close(); @Override ServerTemplateList listServerTemplates(); @Override void saveContainerSpec(final String serverTemplateId,
                                  final ContainerSpec containerSpec); @Override void updateContainerSpec(final String serverTemplateId,
                                    final ContainerSpec containerSpec); @Override void updateContainerSpec(final String serverTemplateId,
                                    final String containerId,
                                    final ContainerSpec containerSpec); @Override void updateContainerSpec(final String serverTemplateId,
                                    final String containerId,
                                    final ContainerSpec containerSpec,
                                    final Boolean resetBeforeUpdate); @Override void saveServerTemplate(final ServerTemplate serverTemplate); @Override ServerTemplate getServerTemplate(final String serverTemplateId); @Override ServerTemplateKeyList listServerTemplateKeys(); @Override ContainerSpecList listContainerSpec(final String serverTemplateId); @Override ContainerSpec getContainerInfo(final String serverTemplateId,
                                          final String containerId); @Override void deleteContainerSpec(final String serverTemplateId,
                                    final String containerSpecId); @Override void deleteServerTemplate(final String serverTemplateId); @Override void copyServerTemplate(final String serverTemplateId,
                                   final String newServerTemplateId,
                                   final String newServerTemplateName); @Override void updateContainerConfig(final String serverTemplateId,
                                      final String containerSpecId,
                                      final Capability capability,
                                      final ContainerConfig containerConfig); @Override void updateServerTemplateConfig(final String serverTemplateId,
                                           final Capability capability,
                                           final ServerConfig serverConfig); @Override void startContainer(final ContainerSpecKey containerSpecKey); @Override void stopContainer(final ContainerSpecKey containerSpecKey); @Override void activateContainer(final ContainerSpecKey containerSpecKey); @Override void deactivateContainer(final ContainerSpecKey containerSpecKey); @Override void scanNow(final ContainerSpecKey containerSpecKey); @Override void startScanner(final ContainerSpecKey containerSpecKey,
                             final Long interval); @Override void stopScanner(final ContainerSpecKey containerSpecKey); @Override void upgradeContainer(final ContainerSpecKey containerSpecKey,
                                 final ReleaseId releaseId); @Override ContainerList getContainers(final ServerInstanceKey serverInstanceKey); @Override ContainerList getContainers(final ServerTemplate serverTemplate,
                                       final ContainerSpec containerSpec); @Override ServerInstanceKeyList getServerInstances(final String serverTemplateId); @Override void deleteServerInstance(final ServerInstanceKey serverInstanceKey);  }