Package org.nebulaframework.grid

Examples of org.nebulaframework.grid.GridExecutionException


    workerNodes.remove(nodeId);
   
    // If all nodes are banned
    if (workerNodes.size()==0) {
      // Fail the job
      future.fail(new GridExecutionException("All Worker Nodes Failed"));
    }
  }
View Full Code Here


     
      // Do Execution
      return processMandelbrot();
     
    } catch (Exception e) {
      throw new GridExecutionException(e);
    }
  }
View Full Code Here

      if (width<=0) throw new AssertionError("width");
      if (height<=0) throw new AssertionError("height");
      if (lines<=0) throw new AssertionError("lines");
    }
    catch(AssertionError ae) {
      throw new GridExecutionException("GridTask Assertions Failed");
    }
  }
View Full Code Here

    Ant.class.getName();

    //System.out.println("Random Value : " + val);
    //try {
      //new SecurityManager();
    if (true) throw new GridExecutionException();
    //System.err.println("Is Cluster Manager " + Grid.isClusterManager());
    //System.err.println("I can create Sec Man");
    //} catch (Exception e1) {
    //  System.err.println("OOPS. I CAN'T");
    //}
View Full Code Here

      }
      else if (type==BenchmarkType.LU) {
        return ScimarkGridKernel.measureLU(random, cycles);
      }     
      else {
        throw new GridExecutionException("Unsupported Benchmark Type");
      }
   
    } catch (Exception e) {
      throw new GridExecutionException(e);
    }
   
  }
View Full Code Here

  @Override
  public ExecutionResult execute() throws GridExecutionException {
    try {
      return doExecute();
    } catch (Exception e) {
      throw new GridExecutionException(e);
    }
  }
View Full Code Here

  public T execute() throws GridExecutionException {
    try {
      Method m = adaptee.getClass().getMethod(executeMethod);
      return (T) m.invoke(adaptee);
    } catch (Exception e) {
      throw new GridExecutionException(e);
    }
  }
View Full Code Here

    }

      if ( !(result instanceof Exception)) {
        return result;
      } else {
        throw new GridExecutionException("Execution Failed", (Exception) result);

    }
  }
View Full Code Here

            else {
              Exception e = null;
             
              // If we got an exception while execution
              if (exception!=null) {
                e = new GridExecutionException("Execution Failed", exception);
              }
              else { // If failed for other reason
                e = new GridExecutionException("Execution Failed (Job State : " + getState() + ")");
               
              }
              // Send Exception
              callback.onResult(e);
            }
View Full Code Here

TOP

Related Classes of org.nebulaframework.grid.GridExecutionException

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.