@Override public HotRestartService getHotRestartService() { return node.getNodeExtension().getHotRestartService(); }
@Override public HotRestartService getHotRestartService() { return node.getNodeExtension().getHotRestartService(); }
private void createHotRestartState(MemberStateImpl memberState) { final HotRestartService hotRestartService = instance.node.getNodeExtension().getHotRestartService(); boolean hotBackupEnabled = hotRestartService.isHotBackupEnabled(); String hotBackupDirectory = hotRestartService.getBackupDirectory(); final HotRestartStateImpl state = new HotRestartStateImpl(hotRestartService.getBackupTaskStatus(), hotBackupEnabled, hotBackupDirectory); memberState.setHotRestartState(state); }
private void createHotRestartState(MemberStateImpl memberState) { final HotRestartService hotRestartService = instance.node.getNodeExtension().getHotRestartService(); boolean hotBackupEnabled = hotRestartService.isHotBackupEnabled(); String hotBackupDirectory = hotRestartService.getBackupDirectory(); final HotRestartStateImpl state = new HotRestartStateImpl(hotRestartService.getBackupTaskStatus(), hotBackupEnabled, hotBackupDirectory); memberState.setHotRestartState(state); }
private void handleHotRestartBackup(HttpPostCommand command) throws UnsupportedEncodingException { String res; try { if (checkCredentials(command)) { textCommandService.getNode().getNodeExtension().getHotRestartService().backup(); res = response(ResponseType.SUCCESS); } else { res = response(ResponseType.FORBIDDEN); } } catch (Throwable throwable) { logger.warning("Error occurred while invoking hot backup", throwable); res = exceptionResponse(throwable); } sendResponse(command, res); }
private void handleHotRestartBackupInterrupt(HttpPostCommand command) throws UnsupportedEncodingException { String res; try { if (checkCredentials(command)) { textCommandService.getNode().getNodeExtension().getHotRestartService().interruptBackupTask(); res = response(ResponseType.SUCCESS); } else { res = response(ResponseType.FORBIDDEN); } } catch (Throwable throwable) { logger.warning("Error occurred while interrupting hot backup", throwable); res = exceptionResponse(throwable); } sendResponse(command, res); }
private void handleHotRestartBackupInterrupt(HttpPostCommand command) throws UnsupportedEncodingException { String res; try { if (checkCredentials(command)) { textCommandService.getNode().getNodeExtension().getHotRestartService().interruptBackupTask(); res = response(ResponseType.SUCCESS); } else { res = response(ResponseType.FORBIDDEN); } } catch (Throwable throwable) { logger.warning("Error occurred while interrupting hot backup", throwable); res = exceptionResponse(throwable); } sendResponse(command, res); }
private void handleHotRestartBackup(HttpPostCommand command) throws UnsupportedEncodingException { String res; try { if (checkCredentials(command)) { textCommandService.getNode().getNodeExtension().getHotRestartService().backup(); res = response(ResponseType.SUCCESS); } else { res = response(ResponseType.FORBIDDEN); } } catch (Throwable throwable) { logger.warning("Error occurred while invoking hot backup", throwable); res = exceptionResponse(throwable); } sendResponse(command, res); }