@Override public void run() { try { channelHandler.executeRequest(request, null); } catch (Throwable t) { // not much we can do. Likely an OOME } } };
@Override public void run() { try { channelHandler.executeRequest(request, null); } catch (Throwable t) { // not much we can do. Likely an OOME } } };
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(ManagementRequest<T, A> request, A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment, callback); executeRequest(operation, request); return operation; }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(ManagementRequest<T, A> request, A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment, callback); executeRequest(operation, request); return operation; }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(final ManagementRequest<T, A> request, final A attachment) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment); executeRequest(operation, request); return operation; }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(final ManagementRequest<T, A> request, final A attachment) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment); executeRequest(operation, request); return operation; }
/** {@inheritDoc} */ @Override public <T, A> ActiveOperation<T, A> executeRequest(ManagementRequest<T, A> request, A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException { final ActiveOperation<T, A> operation = super.registerActiveOperation(attachment, callback); executeRequest(operation, request); return operation; }
/** {@inheritDoc} */ @Override public <T, A> AsyncFuture<T> executeRequest(final Integer operationId, final ManagementRequest<T, A> request) throws IOException { final ActiveOperation<T, A> operation = super.getActiveOperation(operationId); if(operation == null) { throw ProtocolLogger.ROOT_LOGGER.responseHandlerNotFound(operationId); } return executeRequest(operation, request); }
/** {@inheritDoc} */ @Override public <T, A> AsyncFuture<T> executeRequest(final Integer operationId, final ManagementRequest<T, A> request) throws IOException { final ActiveOperation<T, A> operation = super.getActiveOperation(operationId); if(operation == null) { throw ProtocolMessages.MESSAGES.responseHandlerNotFound(operationId); } return executeRequest(operation, request); }
/** {@inheritDoc} */ @Override public <T, A> AsyncFuture<T> executeRequest(final Integer operationId, final ManagementRequest<T, A> request) throws IOException { final ActiveOperation<T, A> operation = super.getActiveOperation(operationId); if(operation == null) { throw ProtocolLogger.ROOT_LOGGER.responseHandlerNotFound(operationId); } return executeRequest(operation, request); }
@Override public synchronized void reportServerInstability(String serverName) { if (connection.isConnected()) { try { handler.executeRequest(new ControllerInstabilityNotificationRequest(serverName), null); } catch (Exception e) { HostControllerLogger.ROOT_LOGGER.failedReportingServerInstabilityToMaster(e, serverName); } } }
public File getFile(final String relativePath, final byte repoId, final File localDeploymentFolder) { try { return channelHandler.executeRequest(new GetFileRequest(relativePath, localDeploymentFolder), null).getResult().get(); } catch (Exception e) { throw ServerLogger.ROOT_LOGGER.failedToGetFileFromRemoteRepository(e); } } }
public File getFile(final String relativePath, final byte repoId, final File localDeploymentFolder) { try { return channelHandler.executeRequest(new GetFileRequest(relativePath, localDeploymentFolder), null).getResult().get(); } catch (Exception e) { throw ServerMessages.MESSAGES.failedToGetFileFromRemoteRepository(e); } } }
public File getFile(final String relativePath, final byte repoId, final File localDeploymentFolder) { try { return channelHandler.executeRequest(new GetFileRequest(relativePath, localDeploymentFolder), null).getResult().get(); } catch (Exception e) { throw ServerLogger.ROOT_LOGGER.failedToGetFileFromRemoteRepository(e); } } }
public File getFile(final String relativePath, final byte repoId, final File localDeploymentFolder) { try { return channelHandler.executeRequest(new GetFileRequest(relativePath, localDeploymentFolder), null).getResult().get(); } catch (Exception e) { throw ServerMessages.MESSAGES.failedToGetFileFromRemoteRepository(e); } } }
/** * Send the started notification */ synchronized void started() { try { if(isConnected()) { channelHandler.executeRequest(new ServerStartedRequest(), null).getResult().await(); } } catch (Exception e) { ServerLogger.AS_ROOT_LOGGER.debugf(e, "failed to send started notification"); } }
/** * Send the started notification */ synchronized void started() { try { if(isConnected()) { channelHandler.executeRequest(new ServerStartedRequest(), null).getResult().await(); } } catch (Exception e) { ServerLogger.AS_ROOT_LOGGER.debugf(e, "failed to send started notification"); } }
/** * Send the started notification */ synchronized void started() { try { if(isConnected()) { channelHandler.executeRequest(new ServerStartedRequest(), null).getResult().await(); } } catch (Exception e) { ServerLogger.AS_ROOT_LOGGER.debugf(e, "failed to send started notification"); } }
/** * Send the started notification */ synchronized void started() { try { if(isConnected()) { channelHandler.executeRequest(new ServerStartedRequest(), null).getResult().await(); } } catch (Exception e) { ServerLogger.AS_ROOT_LOGGER.debugf(e, "failed to send started notification"); } }
public File getFile(final String relativePath, final byte repoId, HostFileRepository localFileRepository) { if(connection.isConnected()) { try { return handler.executeRequest(new GetFileRequest(repoId, relativePath, localFileRepository), null).getResult().get(); } catch (Exception e) { throw MESSAGES.failedToGetFileFromRemoteRepository(e); } } else { return localFileRepository.getFile(relativePath); } } };