Examples of IUniqueID


Examples of org.jamesii.core.util.id.IUniqueID

   *
   * @throws Exception
   *           the exception
   */
  public void testExperimentSystemInformation() throws Exception {
    IUniqueID uid = UniqueIDGenerator.createUniqueID();
    Serializable expid = getDataStorage().setExperimentID(uid);
    long mid = 987987;
    String version = "AlphaBetaGamma123";
    JavaInfo ji1 = new JavaInfo();
    getDataStorage().writeExperimentSystemInformation(uid, mid, version, ji1);
View Full Code Here

Examples of org.jamesii.core.util.id.IUniqueID

    long currentThreadId = Thread.currentThread().getId();

    updateThreadToTaskMap(information, currentThreadId);

    IUniqueID taskID = threadToTaskMap.get(currentThreadId);

    SelectionTree selectionTree = selectionTrees.get(taskID);
    if (selectionTree == null) {
      selectionTree = new SelectionTree(null);
      selectionTrees.put(taskID, selectionTree);
View Full Code Here

Examples of org.jamesii.core.util.id.IUniqueID

        ParameterBlocks.getSubBlockValue(selectionInformation.getParameter(),
            ComputationTaskStopPolicyFactory.COMPTASK);

    if (taskObj instanceof IComputationTask) {
      IComputationTask task = (IComputationTask) taskObj;
      IUniqueID newId = task.getUniqueIdentifier();
      moveTemporaryData(newId, threadId);
      threadToTaskMap.put(threadId, newId);
    }

    // In case there's no valid task ID yet
View Full Code Here

Examples of org.jamesii.core.util.id.IUniqueID

   *          the new id
   * @param threadId
   *          the thread id (to get the temporary ID)
   */
  public void moveTemporaryData(IUniqueID newId, long threadId) {
    IUniqueID previousId = threadToTaskMap.get(threadId);

    if (!(previousId instanceof TemporaryUID)) {
      return;
    }

View Full Code Here

Examples of org.jamesii.core.util.id.IUniqueID

  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
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.