Package org.jamesii.core.distributed.computationserver

Examples of org.jamesii.core.distributed.computationserver.IComputationServer


  @Override
  public <V> IUniqueID initializeJob(IJob<V> job) throws RemoteException {
    List<IComputationServer> resources =
        serviceRegistry.getUnBookedServiceList(IComputationServer.class);
    IComputationServer server = null;
    server = resources.get(0);
    IUniqueID id = UniqueIDGenerator.createUniqueID();
    serviceRegistry.bookService(server, id);
    server.initializeJob(job, id);
    return id;
  }
View Full Code Here


  @Override
  public <V> V executeJob(IUniqueID id, Serializable data)
      throws RemoteException {
    List<IComputationServer> resources =
        serviceRegistry.getServicesForPurpose(id);
    IComputationServer server = resources.get(0);
    return server.executeJob(id, data);
  }
View Full Code Here

  @Override
  public void finalizeJob(IUniqueID id) throws RemoteException {
    List<IComputationServer> resources =
        serviceRegistry.getServicesForPurpose(id);
    IComputationServer server = resources.get(0);
    server.finalizeJob(id);
    serviceRegistry.freeServices(id);
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.distributed.computationserver.IComputationServer

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.