Package net.sf.pipet.api

Examples of net.sf.pipet.api.InvalidConfigurationException


    throws InvalidConfigurationException
  {
    ModuleDefinition mod = parseModuleNode(modnode, pipeline_mods);

    if (mod.getInterface() == null)
      throw new InvalidConfigurationException("Incomplete module definition.");
    else
      p.addModule(mod);
  }
View Full Code Here


    throws InvalidConfigurationException
  {
    String modid = getAttribute(elem, "module");
    String port = getAttribute(elem, "port");
    if (modid == null || port == null)
      throw new InvalidConfigurationException("Incomplete plug definition.");

    PipelineModule mod = mods.get(modid);
    if (mod == null)
      throw new InvalidConfigurationException("Reference to non-existing module: "+modid);
   
    /*
    if (is_target && !mod.getInputPipeNames().contains(port))
      throw new InvalidConfigurationException(String.format("Module %s has no input port named %s.", modid, port));
   
View Full Code Here

  private Pipeline parsePipelineNode(Element node)
    throws InvalidConfigurationException
  {
    String name = getAttribute(node, "name");
    if (name == null)
      throw new InvalidConfigurationException("Pipeline has no name.");

    String ac = getAttribute(node, "auto-connect");
    boolean autoconnect = ac==null ? true : Boolean.parseBoolean(ac);
   
    Pipeline p = new PipelineImpl(name, autoconnect);
View Full Code Here

  private CachePolicy parseCachePolicyNode(Element node)
    throws InvalidConfigurationException
  {
    String name = getAttribute(node, "name");
    if (name == null)
      throw new InvalidConfigurationException("Cache policy has no name.");
   
    String iface = getAttribute(node, "interface");
    if (iface == null)
      throw new InvalidConfigurationException("Cache policy has no interface.");
   
    CachePolicy cp = Cache.createCachePolicy(name, iface);
    if (cp == null)
      throw new InvalidConfigurationException("Cache policy interface not supported: "+iface);
   
    return cp;
  }
View Full Code Here

      DocumentBuilder builder = dbf.newDocumentBuilder();
      dom = builder.parse(is);
    }
    catch (ParserConfigurationException e)
    {
      throw new InvalidConfigurationException("XML parser not available.", e);
    }
    catch (IOException e)
    {
      throw new InvalidConfigurationException("Communication error.", e);
    }
    catch (SAXException e)
    {
      throw new InvalidConfigurationException("Parse error.", e);
    }

    parseAuthenticator(dom);
    parseCachePolicies(dom);
    parseResources(dom);
View Full Code Here

TOP

Related Classes of net.sf.pipet.api.InvalidConfigurationException

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.