Package com.google.enterprise.connector.persist

Examples of com.google.enterprise.connector.persist.ConnectorNotFoundException


            //    + " Restoring original Connector configuration.");
          }
        }
      } else {
        if (update) {
          throw new ConnectorNotFoundException();
        }
        response = createNewConnector(newTypeInfo, configuration, locale);
      }
    }
    if (response == null) {
View Full Code Here


   *         instance.
   */
  private void verifyConnectorInstanceAvailable()
      throws ConnectorNotFoundException {
    if (instanceInfo == null) {
      throw new ConnectorNotFoundException("Connector instance " + name
          + " not available.");
    }
  }
View Full Code Here

  /** A Manager that throws ConnectorNotFoundException. */
  private static class ConnectorNotFoundManager extends MockManager {
    @Override
    public ConnectorStatus getConnectorStatus(String connectorName)
        throws ConnectorNotFoundException {
      throw new ConnectorNotFoundException("Not found: " + connectorName);
    }
View Full Code Here

    @Override
    public void restartConnectorTraversal(String connectorName)
        throws ConnectorNotFoundException, InstantiatorException {
      if ("UnknownConnector".equals(connectorName)) {
        throw new ConnectorNotFoundException(connectorName);
      } else if ("BrokenConnector".equals(connectorName)) {
        throw new InstantiatorException(connectorName);
      }
      restarts.put(connectorName, Boolean.TRUE);
    }
View Full Code Here

      // If we are clustered, perhaps another CM created a new connector
      // instance for this connector and we haven't detected it yet.
      changeDetectorTask.run();
      connectorCoordinator = coordinatorMap.get(connectorName);
      if (connectorCoordinator == null) {
        throw new ConnectorNotFoundException();
      }
    }
    return connectorCoordinator;
  }
View Full Code Here

    LOGGER.info("Configuring connector: " + connectorName);
    TypeInfo typeInfo;
    try {
      typeInfo = typeMap.getTypeInfo(configuration.getTypeName());
    } catch (ConnectorTypeNotFoundException ctnf) {
      throw new ConnectorNotFoundException("Incorrect type", ctnf);
    }
    ConnectorCoordinator ci = getOrAddConnectorCoordinator(connectorName);
    return ci.setConnectorConfiguration(typeInfo, configuration, locale, update);
  }
View Full Code Here

  private ConnectorCoordinator getConnectorCoordinator(String connectorName)
      throws ConnectorNotFoundException {
    if (connectorMap.containsKey(connectorName)) {
      return connectorMap.get(connectorName);
    } else {
      throw new ConnectorNotFoundException("Connector not found: "
          + connectorName);
    }
  }
View Full Code Here

            CONNECTOR6_SUCCESS.getBytes(Charsets.UTF_8));
      } else {
        return null;
      }
    }
    throw new ConnectorNotFoundException("Connector not found: "
                                         + connectorName);
  }
View Full Code Here

          ConnectorTestUtils.createSimpleDocumentBasicProperties(docid);
      props.remove(SpiConstants.PROPNAME_CONTENT);
      props.put(SpiConstants.PROPNAME_ISPUBLIC, false);
      return ConnectorTestUtils.createSimpleDocument(props);
    }
    throw new ConnectorNotFoundException("Connector not found: "
                                         + connectorName);
  }
View Full Code Here

  @Override
  public void removeConnector(String connectorName)
      throws ConnectorNotFoundException, PersistentStoreException {
    if (CONNECTOR2.equals(connectorName)) {
      throw new ConnectorNotFoundException();
    }
    LOGGER.info("Removing connector: " + connectorName);
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.persist.ConnectorNotFoundException

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.