Examples of EmbeddedJmxTransException


Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

            logger.error("Silently skip exception unregistering mbean '" + objectName + "'");
        }
        try {
            embeddedJmxTrans.stop();
        } catch (Exception e) {
            throw new EmbeddedJmxTransException("Exception stopping '" + objectName + "'", e);
        }
    }
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

                    Resource configuration = resourceLoader.getResource(configurationUrl);
                    if (configuration.exists()) {
                        try {
                            parser.mergeEmbeddedJmxTransConfiguration(configuration.getInputStream(), newJmxTrans);
                        } catch (Exception e) {
                            throw new EmbeddedJmxTransException("Exception loading configuration " + configuration, e);
                        }
                    } else if (ignoreConfigurationNotFound) {
                        logger.debug("Ignore missing configuration file {}", configuration);
                    } else {
                        throw new EmbeddedJmxTransException("Configuration file " + configuration + " not found");
                    }
                }
            }
            embeddedJmxTrans = newJmxTrans;
            logger.info("Created EmbeddedJmxTrans with configuration {})", configurationUrls);
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

  @Override
  public void start() {
    try {
      url = new URL(getStringSetting(SETTING_URL, DEFAULT_STACKDRIVER_API_URL));
    } catch (MalformedURLException e) {
      throw new EmbeddedJmxTransException(e);
    }

    apiKey = getStringSetting(SETTING_TOKEN);

    if (getStringSetting(SETTING_PROXY_HOST, null) != null && !getStringSetting(SETTING_PROXY_HOST).isEmpty()) {
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

        String url = getStringSetting(SETTING_URL);

        try {
            graphiteHttpUrl = new URL(url);
        } catch (MalformedURLException e) {
            throw new EmbeddedJmxTransException(e);
        }

      logger.info("Start Graphite writer connected to '{}'...", graphiteHttpUrl);

        metricPathPrefix = getStringSetting(SETTING_NAME_PREFIX, DEFAULT_NAME_PREFIX);
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException


            logger.info("Started CopperEggWriter Successfully on jvm '{}', connected to '{}', proxy {}", myPID_host, url, proxy);
        } catch (MalformedURLException e) {
            exceptionCounter.incrementAndGet();
            throw new EmbeddedJmxTransException(e);
        }
    }
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

            source = getStringSetting(SETTING_SOURCE, DEFAULT_SOURCE);
            source = getStrategy().resolveExpression(source);

            logger.info("Start Librato writer connected to '{}', proxy {} with user '{}' ...", url, proxy, user);
        } catch (MalformedURLException e) {
            throw new EmbeddedJmxTransException(e);
        }
    }
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

        } else if (System.getenv().containsKey(environmentVariableStyleProperty)) {
            result = System.getenv(environmentVariableStyleProperty);
        } else if (defaultValue != null) {
            result = defaultValue;
        } else {
            throw new EmbeddedJmxTransException("Property '" + property + "' not found in System properties nor in Environment variables");
        }
        return result;
    }
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

            }
        }
        try {
            Class.forName("org.python.modules.cPickle");
        } catch (ClassNotFoundException e) {
            throw new EmbeddedJmxTransException("jython librarie is required by the " + getClass().getSimpleName() +
                    " but is not found in the classpath. Please add org.python:jython:2.5.3+ to the classpath.");
        }
    }
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

                mergeEmbeddedJmxTransConfiguration(in, embeddedJmxTrans);
            } else {
                mergeEmbeddedJmxTransConfiguration(new URL(configurationUrl), embeddedJmxTrans);
            }
        } catch (JsonProcessingException e) {
            throw new EmbeddedJmxTransException("Exception loading configuration'" + configurationUrl + "': " + e.getMessage(), e);
        } catch (Exception e) {
            throw new EmbeddedJmxTransException("Exception loading configuration'" + configurationUrl + "'", e);
        }
    }
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException

                        logger.warn("Ignore invalid node {}", outputWriterNode);
                    }
                    logger.trace("Add {}", outputWriter);
                    outputWriters.add(outputWriter);
                } catch (Exception e) {
                    throw new EmbeddedJmxTransException("Exception converting settings " + outputWritersNode, e);
                }
            }
        } else {
            logger.warn("Ignore invalid node {}", outputWritersNode);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.