Package com.google.enterprise.connector.manager

Examples of com.google.enterprise.connector.manager.ConnectorManagerException


    public JavaUtilLogHandler(LogManager logManager, String handler)
        throws ConnectorManagerException {
      pattern = logManager.getProperty(handler + ".pattern");
      if ((pattern == null) || (pattern.length() == 0)) {
        throw new ConnectorManagerException(
            "Unable to retrieve Connector Logging configuration.  Please"
            + "check the FileHandler configuration in logging.properties.");
      }
      String formatter = logManager.getProperty(handler + ".formatter");
      isXMLFormat =
View Full Code Here


        }
        Formatter formatter = ffh.getFormatter();
        isXMLFormat = (formatter == null ||
            (formatter.getClass().getName().toUpperCase().indexOf("XML") >= 0));
      } catch (BeansException be) {
        throw new ConnectorManagerException(
            "Unable to retrieve Feed Logging configuration: " + be.toString());
      }
    }
View Full Code Here

    String teedFeedFile;

    public TeedFeedHandler(Context context) throws ConnectorManagerException {
      teedFeedFile = context.getTeedFeedFile();
      if ((teedFeedFile == null) || (teedFeedFile.length() == 0)) {
        throw new ConnectorManagerException(
            "Unable to retrieve Teed Feed File configuration. The teedFeedFile"
            + " property is not defined in applicationContext.properties.");
      }
    }
View Full Code Here

        handler = handlers[i];
        break;
      }
    }
    if (handler == null) {
      throw new ConnectorManagerException(
          "Unable to retrieve Connector Logging configuration.  There"
          + " is no FileHandler configuration in logging.properties.");
    }
    if (handler.indexOf("org.apache.juli.FileHandler") >= 0) {
      return new JuliLogHandler(logMgr, handler);
View Full Code Here

   */
  private Level getLevelByName(String name) throws ConnectorManagerException {
    try {
      return Level.parse(name);
    } catch (IllegalArgumentException e) {
      throw new ConnectorManagerException("Unknown logging level: " + name, e);
    }
  }
View Full Code Here

        try {
          Properties props = loadProperties(confFile);
          props.setProperty(LOGGER_NAME + ".level", level.getName());
          storeProperties(confFile, props);
        } catch (IOException e) {
          throw new ConnectorManagerException(
              "Failed to save logging properties", e);
        }
        return true;
      } else {
        return false;
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.manager.ConnectorManagerException

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.