Search in sources :

Example 16 with WorkerEvent

use of cbit.rmi.event.WorkerEvent in project vcell by virtualcell.

the class WorkerEventMessage method sendStarting.

/**
 * Insert the method's description here.
 * Creation date: (12/31/2003 12:53:34 PM)
 * @param param javax.jms.Message
 */
public static WorkerEventMessage sendStarting(VCMessageSession session, Object source, SimulationTask simTask, String hostName, SimulationMessage startMessage) throws VCMessagingException {
    WorkerEvent workerEvent = new WorkerEvent(WorkerEvent.JOB_STARTING, source, simTask, hostName, startMessage);
    WorkerEventMessage workerEventMessage = new WorkerEventMessage(workerEvent);
    workerEventMessage.sendWorkerEvent(session);
    return workerEventMessage;
}
Also used : WorkerEvent(cbit.rmi.event.WorkerEvent)

Example 17 with WorkerEvent

use of cbit.rmi.event.WorkerEvent in project vcell by virtualcell.

the class WorkerEventMessage method sendWorkerAlive.

/**
 * Insert the method's description here.
 * Creation date: (12/31/2003 12:53:34 PM)
 * @param param javax.jms.Message
 */
public static WorkerEventMessage sendWorkerAlive(VCMessageSession session, Object source, SimulationTask simTask, String hostName, SimulationMessage simulationMessage) throws VCMessagingException {
    WorkerEvent workerEvent = new WorkerEvent(WorkerEvent.JOB_WORKER_ALIVE, source, simTask, hostName, simulationMessage);
    WorkerEventMessage workerEventMessage = new WorkerEventMessage(workerEvent);
    workerEventMessage.sendWorkerEvent(session);
    return workerEventMessage;
}
Also used : WorkerEvent(cbit.rmi.event.WorkerEvent)

Example 18 with WorkerEvent

use of cbit.rmi.event.WorkerEvent in project vcell by virtualcell.

the class WorkerEventMessage method sendCompleted.

/**
 * Insert the method's description here.
 * Creation date: (12/31/2003 12:53:34 PM)
 * @param param javax.jms.Message
 */
public static WorkerEventMessage sendCompleted(VCMessageSession session, Object source, SimulationTask simTask, String hostName, double progress, double timePoint, SimulationMessage simulationMessage) throws VCMessagingException {
    WorkerEvent workerEvent = new WorkerEvent(WorkerEvent.JOB_COMPLETED, source, simTask, hostName, new Double(progress), new Double(timePoint), simulationMessage);
    WorkerEventMessage workerEventMessage = new WorkerEventMessage(workerEvent);
    workerEventMessage.sendWorkerEvent(session);
    return workerEventMessage;
}
Also used : WorkerEvent(cbit.rmi.event.WorkerEvent)

Aggregations

WorkerEvent (cbit.rmi.event.WorkerEvent)18 SimulationTask (cbit.vcell.messaging.server.SimulationTask)4 SimulationJob (cbit.vcell.solver.SimulationJob)4 DataJobEvent (cbit.rmi.event.DataJobEvent)1 ExportEvent (cbit.rmi.event.ExportEvent)1 PerformanceMonitorEvent (cbit.rmi.event.PerformanceMonitorEvent)1 SimulationJobStatusEvent (cbit.rmi.event.SimulationJobStatusEvent)1 VCellMessageEvent (cbit.rmi.event.VCellMessageEvent)1 RollbackException (cbit.vcell.message.RollbackException)1 VCMessagingException (cbit.vcell.message.VCMessagingException)1 WorkerEventMessage (cbit.vcell.message.messages.WorkerEventMessage)1 HtcException (cbit.vcell.message.server.htc.HtcException)1 HtcJobNotFoundException (cbit.vcell.message.server.htc.HtcJobNotFoundException)1 ServiceName (cbit.vcell.mongodb.VCMongoMessage.ServiceName)1 VCSimulationIdentifier (cbit.vcell.solver.VCSimulationIdentifier)1 SimulationMessage (cbit.vcell.solver.server.SimulationMessage)1 Gson (com.google.gson.Gson)1 SQLException (java.sql.SQLException)1 DataJobEventRepresentation (org.vcell.api.common.events.DataJobEventRepresentation)1 ExportEventRepresentation (org.vcell.api.common.events.ExportEventRepresentation)1