public void awaitSuspend() { synchronized (lock) { while (suspend && shuttingDown) { try { lock.wait(); } catch (InterruptedException e) { ServerLogger.AS_ROOT_LOGGER.debug("Exception waiting for graceful shutdown", e); } } } }
public synchronized void start(StartContext arg0) throws StartException { log.debug("Starting NetworkInterfaceService\n"); try { this.interfaceBinding = createBinding(anyLocal, criteria); } catch (Exception e) { throw new StartException(e); } if (this.interfaceBinding == null) { throw ServerLogger.ROOT_LOGGER.failedToResolveInterface(name); } log.debugf("NetworkInterfaceService matched interface binding: %s\n", interfaceBinding); }
public synchronized void start(StartContext arg0) throws StartException { log.debug("Starting NetworkInterfaceService\n"); try { this.interfaceBinding = createBinding(anyLocal, criteria); } catch (Exception e) { throw new StartException(e); } if (this.interfaceBinding == null) { throw ServerLogger.ROOT_LOGGER.failedToResolveInterface(name); } log.debugf("NetworkInterfaceService matched interface binding: %s\n", interfaceBinding); }
public void awaitSuspend() { synchronized (lock) { while (suspend && shuttingDown) { try { lock.wait(); } catch (InterruptedException e) { ServerLogger.AS_ROOT_LOGGER.debug("Exception waiting for graceful shutdown", e); } } } }
b.append("\n\t").append(property).append(" = ").append(propVal); ServerLogger.CONFIG_LOGGER.debug(b); ServerLogger.CONFIG_LOGGER.debugf("VM Arguments: %s", getVMArguments()); if (ServerLogger.CONFIG_LOGGER.isTraceEnabled()) {
@Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { try { ServerLogger.ROOT_LOGGER.deletingFile(file); Files.delete(file); } catch (IOException ioex) { ServerLogger.ROOT_LOGGER.debug(ioex.getMessage(), ioex); } return FileVisitResult.CONTINUE; }
b.append("\n\t").append(property).append(" = ").append(propVal); ServerLogger.CONFIG_LOGGER.debug(b); ServerLogger.CONFIG_LOGGER.debugf("VM Arguments: %s", getVMArguments()); if (ServerLogger.CONFIG_LOGGER.isTraceEnabled()) {
@Override public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { if (exc != null) { throw exc; } try { ServerLogger.ROOT_LOGGER.deletingFile(dir); Files.delete(dir); } catch (IOException ioex) { ServerLogger.ROOT_LOGGER.debug(ioex.getMessage(), ioex); } return FileVisitResult.CONTINUE; }
b.append("\n\t").append(property).append(" = ").append(propVal); ServerLogger.CONFIG_LOGGER.debug(b); ServerLogger.CONFIG_LOGGER.debugf(ServerLogger.ROOT_LOGGER.vmArgumentsLabel(getVMArguments())); if (ServerLogger.CONFIG_LOGGER.isTraceEnabled()) {
@Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { try { ServerLogger.ROOT_LOGGER.deletingFile(file); Files.delete(file); } catch (IOException ioex) { ServerLogger.ROOT_LOGGER.debug(ioex.getMessage(), ioex); } return FileVisitResult.CONTINUE; }
b.append("\n\t").append(property).append(" = ").append(propVal); ServerLogger.CONFIG_LOGGER.debug(b); ServerLogger.CONFIG_LOGGER.debugf(ServerLogger.ROOT_LOGGER.vmArgumentsLabel(getVMArguments())); if (ServerLogger.CONFIG_LOGGER.isTraceEnabled()) {
@Override public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { if (exc != null) { throw exc; } try { ServerLogger.ROOT_LOGGER.deletingFile(dir); Files.delete(dir); } catch (IOException ioex) { ServerLogger.ROOT_LOGGER.debug(ioex.getMessage(), ioex); } return FileVisitResult.CONTINUE; }
void cleanObsoleteContent() { if (controlledProcessStateService.getCurrentState() == ControlledProcessState.State.RUNNING) { PathAddress address = PathAddress.EMPTY_ADDRESS; if (!server) { ModelNode request = Util.getReadAttributeOperation(PathAddress.EMPTY_ADDRESS, LOCAL_HOST_NAME); ModelNode response = privilegedExecution().execute(client::execute, request); if (SUCCESS.equals(response.get(OUTCOME).asString()) && response.get(RESULT).isDefined()) { address = address.append(HOST, response.get(RESULT).asString()); } else if (CANCELLED.equals(response.get(OUTCOME).asString())) { return; } else if (FAILED.equals(response.get(OUTCOME).asString())) { error(response); // if we can't read the local-host-name on a host controller, don't try and run the content cleaner return; } } ModelNode request = Util.createOperation(CleanObsoleteContentHandler.OPERATION_NAME, address); ModelNode response = privilegedExecution().execute(client::execute, request); if (SUCCESS.equals(response.get(OUTCOME).asString())) { if(response.get(RESULT).isDefined()) { ServerLogger.ROOT_LOGGER.debug(response.get(RESULT)); } } else if (FAILED.equals(response.get(OUTCOME).asString())) { error(response); } } }
void cleanObsoleteContent() { if (controlledProcessStateService.getCurrentState() == ControlledProcessState.State.RUNNING) { PathAddress address = PathAddress.EMPTY_ADDRESS; if (!server) { ModelNode request = Util.getReadAttributeOperation(PathAddress.EMPTY_ADDRESS, LOCAL_HOST_NAME); ModelNode response = privilegedExecution().execute(client::execute, request); if (SUCCESS.equals(response.get(OUTCOME).asString()) && response.get(RESULT).isDefined()) { address = address.append(HOST, response.get(RESULT).asString()); } else if (CANCELLED.equals(response.get(OUTCOME).asString())) { return; } else if (FAILED.equals(response.get(OUTCOME).asString())) { error(response); // if we can't read the local-host-name on a host controller, don't try and run the content cleaner return; } } ModelNode request = Util.createOperation(CleanObsoleteContentHandler.OPERATION_NAME, address); ModelNode response = privilegedExecution().execute(client::execute, request); if (SUCCESS.equals(response.get(OUTCOME).asString())) { if(response.get(RESULT).isDefined()) { ServerLogger.ROOT_LOGGER.debug(response.get(RESULT)); } } else if (FAILED.equals(response.get(OUTCOME).asString())) { error(response); } } }