Package fr.eolya.simplepipeline.document

Examples of fr.eolya.simplepipeline.document.Doc


    sc.getLogger().log("[" + id + "] processing : " + fileName);
    System.out.println("[" + id + "] processing : " + fileName);

    File f = new File(fileName);
    try {
      Doc d = new Doc(f);
      if (d != null) {
        processing = true;
        stageList.processDoc(d);
        if (stageList.getStagesStatus() == StageList.STATUS_ERROR) {
          //Utils.sleep(10+(id*3));
 
View Full Code Here


            ArrayList<String> previousQueuedTemp = new ArrayList<String>();

            for (int i=0; i<Math.min(files.length, 1000); i++) {
              if (files[i].isFile() && files[i].getName().matches(props.getProperty("filepattern"))) {
                if (previousQueued==null || !previousQueued.contains(files[i].getName())) {
                  Doc d = null;
                  try {
                    d = new Doc(files[i]);
                  } catch (Exception e) {
                    SimplePipelineUtils.fileDone(files[i], null, false, props, sc.getLogger(), null);
                  }
                  if (d != null) {
                    pq.push(new FileQueueConnectorQueueItem(rootDir + "/" + files[i].getName()));
View Full Code Here

   
    AperciteCache ac = new AperciteCache();
   
    String docSrc = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><job action=\"add\"></job>";
   
    Doc doc;
    try {
      doc = new Doc(docSrc);
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      return;
    }
    doc.addElement("/job", "url", "http://www.eolya.fr")
    doc.addElement("/job", "apercite_target", "apercite_image")
    doc.addElement("/job", "apercite_target", "apercite_image")
    doc.addElement("/job", "apercite_target", "apercite_image")
    doc.addElement("/job", "apercite_target", "apercite_image")

    /*
     * <param name="url">item_url</param>
*    <param name="apercite_target">apercite_image</param>
*    <param name="apercite_cache_path">apercite_image</param>
View Full Code Here

TOP

Related Classes of fr.eolya.simplepipeline.document.Doc

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.