Examples of JobFactory


Examples of org.springframework.xd.dirt.job.JobFactory

  public DeploymentListener deploymentListener() {
    initializeZooKeeperConnection();
    StreamFactory streamFactory = new StreamFactory(streamDefinitionRepository, moduleRegistry,
        moduleOptionsMetadataResolver);

    JobFactory jobFactory = new JobFactory(jobDefinitionRepository, moduleRegistry,
        moduleOptionsMetadataResolver);
    return new DeploymentListener(zooKeeperConnection, moduleDeployer, containerAttributes, jobFactory,
        streamFactory);
  }
View Full Code Here

Examples of org.terrier.utility.io.HadoopPlugin.JobFactory

   */
  public static void main(String[] args) throws Exception
    {
        if (args.length == 2 && args[0].equals("--finish"))
        {
            final JobFactory jf = HadoopPlugin.getJobFactory("HOD-TerrierIndexing");
            if (jf == null)
                throw new Exception("Could not get JobFactory from HadoopPlugin");
            try{
              finish(ApplicationSetup.TERRIER_INDEX_PATH, Integer.parseInt(args[1]), jf);
            } catch (Exception e) {
              logger.error("Couldn't finish index", e);
            } finally {
              jf.close();
            }
        }
        else
        {
          System.err.println("Usage: Hadoop_BasicSinglePassIndexer [--finish numberOfReduceTasks]");
View Full Code Here

Examples of org.terrier.utility.io.HadoopPlugin.JobFactory

    assertNotSame(3014, jc2.getMaxMapAttempts());
  }
 
  @Test public void testNotGlobalConfTwoSessions() throws Exception
  {
    JobFactory jf1 = HadoopPlugin.getJobFactory("session1");
    JobConf jc1 = jf1.newJob();
       
    JobFactory jf2 = HadoopPlugin.getJobFactory("session2");
    JobConf jc2 = jf2.newJob();
   
    checkTwoJC(jc1, jc2);
  }
View Full Code Here

Examples of org.terrier.utility.io.HadoopPlugin.JobFactory

    checkTwoJC(jc1, jc2);
  }
 
  @Test public void testNotGlobalConfOneSession() throws Exception
  {
    JobFactory jf = HadoopPlugin.getJobFactory("session1");
    JobConf jc1 = jf.newJob();
    JobConf jc2 = jf.newJob();
   
    checkTwoJC(jc1, jc2);
  }
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.