Package com.sun.grid.jgrid

Examples of com.sun.grid.jgrid.Job


   * @throws CommandFailedException thrown if this method cannot complete its task due to errors or failures
   */ 
  public void register (String jobId) throws CommandFailedException {
    log.entering ("com.sun.grid.jgrid.server.JCEPHandler", "register");

    Job job = (Job)jobMap.get (jobId);
   
    if (job == null) {
      log.finer ("Register command failed for job " + jobId + ": No such job");
     
      throw new CommandFailedException (jobId, "No such job");
    }
    else if (job.getState () == Job.RUNNING) {
      job.getLogger ().registerHandler (this);
   
      log.fine ("Connection has been registered with job: " + jobId);
    }
    else {
      log.finer ("Register command failed for job " + jobId + ": Job is not currently running");
View Full Code Here


    log.entering ("com.sun.grid.jgrid.proxy.ComputeProxy", "process");
   
    String processId = this.getNextProcessId ();
    log.log (Level.FINE, "Process id is " + processId);
   
    Job job = new Job (processId, computable, asynch);

    Object result = this.submitJob (job);
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "process");
               
View Full Code Here

    log.entering ("com.sun.grid.jgrid.proxy.ComputeServer", "compute");
   
    String processId = this.getNextProcessId ();
    log.log (Level.FINE, "Process id is " + processId);
   
    Job job = new Job (processId, computable, false);

    job.setAnnotation (codebase);
    log.log (Level.FINEST, "Codebase is \"" + codebase + "\"");
   
    Object result = null;
   
    try {
View Full Code Here

    log.entering ("com.sun.grid.jgrid.proxy.computeAsynch", "compute");
   
    String processId = this.getNextProcessId ();
    log.log (Level.FINE, "Process id is " + processId);
   
    Job job = new Job (processId, computable, true);

    job.setAnnotation (codebase);
   
    String result = null;
   
    try {
      result = (String)this.submitJob (job);
View Full Code Here

   
    Registry r = LocateRegistry.getRegistry(args[0], Integer.parseInt(args[1]));
   
    ComputeEngine i = (ComputeEngine)r.lookup("ComputeEngine");
   
    i.compute (new Job ("test123", new ComputeTest ()));
  }
View Full Code Here

TOP

Related Classes of com.sun.grid.jgrid.Job

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.