public boolean flush() { //need flush right now if (entities.size() == 0) { return true; } try (IEagleServiceClient client = new EagleServiceClientImpl( eagleServiceConfig.eagleServiceHost, eagleServiceConfig.eagleServicePort, eagleServiceConfig.username, eagleServiceConfig.password)) { client.setReadTimeout(eagleServiceConfig.readTimeoutSeconds * 1000); LOG.info("start to flush spark app entities, size {}", entities.size()); client.create(entities); LOG.info("finish flushing spark app entities, size {}", entities.size()); entities.clear(); } catch (Exception e) { LOG.warn("exception found when flush entities, {}", e); e.printStackTrace(); return false; } return true; } }
client.setReadTimeout(eagleServiceConfig.readTimeoutSeconds * 1000); List<JobConfigurationAPIEntity> list = new ArrayList<>(); list.add(jobConfigurationEntity);
client.setReadTimeout(eagleServiceConfig.readTimeoutSeconds * 1000);
public boolean flush() { //need flush right now if (entities.size() == 0) { return true; } IEagleServiceClient client = new EagleServiceClientImpl( eagleServiceConfig.eagleServiceHost, eagleServiceConfig.eagleServicePort, eagleServiceConfig.username, eagleServiceConfig.password); //client.getJerseyClient().setReadTimeout(eagleServiceConfig.readTimeoutSeconds * 1000); client.setReadTimeout(eagleServiceConfig.readTimeoutSeconds * 1000); try { return createEntities(client); } catch (Exception e) { LOG.warn("exception found when flush entities, {}", e); return false; } finally { try { client.close(); } catch (Exception e) { // ignored exception } } }
eagleServiceConfig.password); client.setReadTimeout(eagleServiceConfig.readTimeoutSeconds * 1000); List<TaskAttemptCounterAPIEntity> list = new ArrayList<>(); logger.info("start flushing TaskAttemptCounter entities of total number " + counters.size());
config.getString(Constants.PASSWORD_PATH)); client.setReadTimeout(config.getInt(Constants.READ_TIMEOUT_PATH) * 1000);
eagleServiceConfig.password); client.setReadTimeout(eagleServiceConfig.readTimeoutSeconds * 1000); logger.info("start flushing entities of total number " + list.size()); List<GenericMetricEntity> metricEntities = new ArrayList<>();
topologyCheckAppConfig.getConfig().getString("service.password")); client.setReadTimeout(topologyCheckAppConfig.getConfig().getInt("service.readTimeOutSeconds") * 1000);
eagleServiceConfig.password); client.setReadTimeout(eagleServiceConfig.timeout * 1000);
eagleServiceConfig.eagleService.password); client.setReadTimeout(60000);
client.setReadTimeout(eagleServiceConfig.readTimeoutSeconds * 1000);