Examples of StatusUpdater


Examples of com.findwise.hydra.StatusUpdater

      statusIO.save(pipelineStatus);
    } else {
      pipelineStatus = statusIO.getStatus();
    }

    statusUpdater = new StatusUpdater(this);

    if (!pipelineStatus.isPrepared()) {
      logger.info("Database is new, preparing it");
      pipelineStatus.setPrepared(true);
      pipelineStatus.setDiscardedMaxSize(conf.getOldMaxSize());
View Full Code Here

Examples of com.findwise.hydra.StatusUpdater

    MongoClient mongo = new MongoClient(new MongoClientURI(conf.getDatabaseUrl()));
    DB db = mongo.getDB(conf.getNamespace());
    WriteConcern concern = mongo.getWriteConcern();
    long documentsToKeep = conf.getOldMaxCount();
    int oldDocsMaxSizeMB = conf.getOldMaxSize();
    StatusUpdater updater = new StatusUpdater(new MongoConnector(conf));
    GridFS documentFs = new GridFS(db);

    MongoDocumentIO io = new MongoDocumentIO(db, concern, documentsToKeep,
        oldDocsMaxSizeMB, updater, documentFs);
    io.prepare();
View Full Code Here

Examples of com.vmware.bdd.service.job.StatusUpdater

         }
         ClusterCreate clusterSpec = clusterManager.getClusterSpec(clusterName);
         SyncHostsUtils.SyncHosts(clusterSpec, hostnames, softwareMgr);
      }

      StatusUpdater statusUpdater =
            new DefaultStatusUpdater(jobExecutionStatusHolder,
                  getJobExecutionId(chunkContext));

      ISoftwareManagementTask task = null;
      String appMgrName = softwareMgr.getName();
View Full Code Here

Examples of com.vmware.bdd.service.job.StatusUpdater

                     JobConstants.TARGET_NAME_JOB_PARAM).split("-")[0];
      }
      String nodeName =
            getJobParameters(chunkContext).getString(
                  JobConstants.SUB_JOB_NODE_NAME);
      StatusUpdater statusUpdator =
            new DefaultStatusUpdater(jobExecutionStatusHolder,
                  getJobExecutionId(chunkContext));
      boolean success =
            clusteringService.startSingleVM(clusterName, nodeName,
                  statusUpdator);
View Full Code Here

Examples of com.vmware.bdd.service.job.StatusUpdater

            + vmPowerOnStr);
      boolean vmPowerOn = Boolean.parseBoolean(vmPowerOnStr);
      if (!checkVMStatus || (checkVMStatus && !vmPowerOn)) {
         logger.debug("check vm status: " + checkVMStatus
               + ", vm original status is poweron? " + vmPowerOn);
         StatusUpdater statusUpdator =
               new DefaultStatusUpdater(jobExecutionStatusHolder,
                     getJobExecutionId(chunkContext));
         boolean success =
               clusteringService.stopSingleVM(clusterName, nodeName,
                     statusUpdator, vmPoweroff);
View Full Code Here

Examples of org.apache.mahout.fpm.pfpgrowth.convertors.StatusUpdater

            results1.put(new HashSet<String>(l), v.getSecond());
            log.info("found pat ["+v.getSecond()+"]: "+ v.getFirst());
          }
        }
       
      }, new StatusUpdater() {
       
        @Override
        public void update(String status) {}
      });

    FPGrowthObj<String> fp2 = new FPGrowthObj<String>();
    final Map<Set<String>,Long> initialResults2 = Maps.newHashMap();
    fp2.generateTopKFrequentPatterns(
      new StringRecordIterator(new FileLineIterable(Resources.getResource(inputFilename).openStream()), "\\s+"),

      fp2.generateFList(new StringRecordIterator(new FileLineIterable(Resources.getResource(inputFilename)
           .openStream()), "\\s+"), minSupport), minSupport, 100000,
      new HashSet<String>(),
      new OutputCollector<String,List<Pair<List<String>,Long>>>() {
       
        @Override
        public void collect(String key, List<Pair<List<String>,Long>> value) {
         
          for (Pair<List<String>,Long> v : value) {
            List<String> l = v.getFirst();
            initialResults2.put(new HashSet<String>(l), v.getSecond());
            log.info("found pat ["+v.getSecond()+"]: "+ v.getFirst());
          }
        }
       
      }, new StatusUpdater() {
       
        @Override
        public void update(String status) {}
      });
View Full Code Here

Examples of org.apache.mahout.fpm.pfpgrowth.convertors.StatusUpdater

            List<String> l = v.getFirst();
            results.put(new HashSet<String>(l), v.getSecond());
          }
        }
       
      }, new StatusUpdater() {
       
        @Override
        public void update(String status) {}
      });
   
View Full Code Here

Examples of org.apache.mahout.fpm.pfpgrowth.convertors.StatusUpdater

            List<String> l = v.getFirst();
            seqResult.put(new HashSet<String>(l), v.getSecond());
          }
        }
       
      }, new StatusUpdater() {
       
        @Override
        public void update(String status) {}
      });
View Full Code Here

Examples of org.apache.mahout.fpm.pfpgrowth.convertors.StatusUpdater

                                          results.put(new HashSet<String>(l), v.getSecond());
                                          System.out.println("found pat ["+v.getSecond()+"]: "+ v.getFirst());
                                        }
                                      }
       
                                    }, new StatusUpdater() {
       
                                        @Override
                                          public void update(String status) {}
                                      });
View Full Code Here

Examples of org.apache.mahout.fpm.pfpgrowth.convertors.StatusUpdater

                                           results1.put(new HashSet<String>(l), v.getSecond());
                                           System.out.println("found pat ["+v.getSecond()+"]: "+ v.getFirst());
                                         }
                                       }
       
                                     }, new StatusUpdater() {
       
                                         @Override
                                           public void update(String status) {}
                                       });

    FPGrowthObj<String> fp2 = new FPGrowthObj<String>();
    final Map<Set<String>,Long> initialResults2 = Maps.newHashMap();
    fp2.generateTopKFrequentPatterns(
                                     new StringRecordIterator(new FileLineIterable(Resources.getResource(inputFilename).openStream()), "\\s+"),

                                     fp2.generateFList(new StringRecordIterator(new FileLineIterable(Resources.getResource(inputFilename)
                                                                                                     .openStream()), "\\s+"), minSupport), minSupport, 1000000,
                                     new HashSet<String>(),
                                     new OutputCollector<String,List<Pair<List<String>,Long>>>() {
       
                                       @Override
                                         public void collect(String key, List<Pair<List<String>,Long>> value) {
         
                                         for (Pair<List<String>,Long> v : value) {
                                           List<String> l = v.getFirst();
                                           initialResults2.put(new HashSet<String>(l), v.getSecond());
                                           System.out.println("found pat ["+v.getSecond()+"]: "+ v.getFirst());
                                         }
                                       }
       
                                     }, new StatusUpdater() {
       
                                         @Override
                                           public void update(String status) {}
                                       });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.