Examples of PartitionRequest


Examples of org.goldenorb.jet.PartitionRequest

          } catch (OrbZKFailure e) {
            logger.error("EXCEPTION : An OrbTrackerMember failed to copy files from HDFS to local machine");
            logger.error(e.getMessage());
            throw e;
          }
          PartitionRequest request = new PartitionRequest();
          request.setActivePartitions(assignment[ResourceAllocator.TRACKER_AVAILABLE]);
          request.setReservedPartitions(assignment[ResourceAllocator.TRACKER_RESERVED]);
          request.setJobID(job.getJobNumber());
          request.setBasePartitionID(basePartitionID);
         
          request.setJobConf(job.getOrbConf());
         
          basePartitionID += assignment[ResourceAllocator.TRACKER_AVAILABLE];
         
          logger.debug("requesting partitions");
          tracker.requestPartitions(request);
          logger.info(request.toString());
         
          JobStillActiveCheck jobStillActiveCheck = new JobStillActiveCheck(job);
          job.setJobStillActiveInterface(jobStillActiveCheck);
          new Thread(jobStillActiveCheck).start();
         
View Full Code Here

Examples of org.goldenorb.jet.PartitionRequest

     * removed in subsequent code generations.
     */

    /* End of user / non-generated code */
 
    partitionRequest = new PartitionRequest();
    partitionRequest.setReservedPartitions(INT_RESERVEDPARTITIONS_VALUE);
    partitionRequest.setActivePartitions(INT_ACTIVEPARTITIONS_VALUE);
    partitionRequest.setJobID(STRING_JOBID_VALUE);
    partitionRequest.setBasePartitionID(INT_BASEPARTITIONID_VALUE);
    partitionRequest.setJobConf(new OrbConfiguration(true));
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DataOutput out = new DataOutputStream(baos);
    partitionRequest.write(out);
    DataInput in = new DataInputStream(new ByteArrayInputStream(baos.toByteArray()));
    partitionRequestOut = new PartitionRequest();
    partitionRequestOut.readFields(in);
   
    /*
     * Start of user / non-generated code -- any code written outside of this block will be
     * removed in subsequent code generations.
View Full Code Here

Examples of org.goldenorb.jet.PartitionRequest

    assertEquals(OPManager.getOrbConf(), orbConf);
    OPManager.setOrbConf(orbConf);
    assertEquals(OPManager.getPartitionProcessClass(), OrbPartitionProcess.class);
    OPManager.setPartitionProcessClass(OrbPartitionProcess.class);
    logger.info("OrbPartitionManager IP: " + OPManager.getIpAddress());
    PartitionRequest request = new PartitionRequest();
    request.setReservedPartitions(reservedPartitions);
    request.setActivePartitions(requestedPartitions);
    request.setJobID("0");
    request.setBasePartitionID(0);
    request.setJobConf(orbConf);
    try {
      OPManager.launchPartitions(request);
      Map<String, List<OrbPartitionProcess>> mapOPP = OPManager.getProcessesByJob();
      assertTrue(mapOPP.get("0").size() == totalPartitions);
      OPManager.kill("0");
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.