Package com.googlecode.jmxtrans.model

Examples of com.googlecode.jmxtrans.model.ValidationException


      } else {
        try {
          logger = initLogger("/dev/null");
          loggers.put("/dev/null", logger);
        } catch (IOException e) {
          throw new ValidationException("Failed to setup log4j", query);
        }
      }

      if (loggers.containsKey(outputFile.getAbsolutePath())) {
        loggers.remove(outputFile.getAbsolutePath());
      }
      return;
    } else if (loggers.containsKey(outputFile.getAbsolutePath())) {
      logger = loggers.get(outputFile.getAbsolutePath());
      return;
    }

    try {
      logger = initLogger(outputFile.getAbsolutePath());
      loggers.put(outputFile.getAbsolutePath(), logger);
    } catch (IOException e) {
      throw new ValidationException("Failed to setup log4j", query);

    }
  }
View Full Code Here


    // need to create a logger
    try {
      logger = initLogger(outputFile);
      loggers.put(outputFile, logger);
    } catch (IOException e) {
      throw new ValidationException("Failed to setup log4j", query);
    }
  }
View Full Code Here

TOP

Related Classes of com.googlecode.jmxtrans.model.ValidationException

Copyright © 2018 www.massapicom. 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.