Examples of IsAlive


Examples of com.opengamma.engine.calcnode.msg.IsAlive

   * Returns true with the remote client generating failure messages if anything is not alive.
   */
  @Override
  public boolean isAlive(final Collection<CalculationJobSpecification> jobs) {
    s_logger.info("Querying {} jobs at {}", jobs.size(), getInvokerId());
    sendMessage(new IsAlive(jobs));
    return true;
  }
View Full Code Here

Examples of com.opengamma.engine.calcnode.msg.IsAlive

  }

  @Override
  public boolean isAlive(final CalculationJobSpecification job) {
    s_logger.info("Querying {} at {}", job.getJobId(), getInvokerId());
    sendMessage(new IsAlive(Collections.singleton(job)));
    return true;
  }
View Full Code Here

Examples of com.opengamma.engine.calcnode.msg.IsAlive

    conduit.getEnd2 ().getFudgeMessageSender().send (FudgeSerializer.addClassHeader(scontext.objectToFudgeMsg (new Init(0)), Init.class, RemoteCalcNodeMessage.class));
    final CalculationJob job1 = createTestCalculationJob();
    final CalculationJob job2 = createTestCalculationJob();
    AbstractIdentifierMap.convertIdentifiers(identifierMap, job1);
    conduit.getEnd2().getFudgeMessageSender().send(FudgeSerializer.addClassHeader(scontext.objectToFudgeMsg(new Execute(job1)), Execute.class, RemoteCalcNodeMessage.class));
    conduit.getEnd2().getFudgeMessageSender().send(FudgeSerializer.addClassHeader(scontext.objectToFudgeMsg(new IsAlive(Arrays.asList (job1.getSpecification (), job2.getSpecification ()))), IsAlive.class, RemoteCalcNodeMessage.class));
    final FudgeMsgEnvelope resultMsgEnvelope = messages.waitForMessage(TIMEOUT);
    assertNotNull(resultMsgEnvelope);
    final RemoteCalcNodeMessage failureMessage = dcontext.fudgeMsgToObject(RemoteCalcNodeMessage.class, resultMsgEnvelope.getMessage());
    assertTrue(failureMessage instanceof Failure);
    final Failure failure = (Failure) failureMessage;
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.