/// <summary> /// Execute a task on an engine /// </summary> /// <param name="task">task</param> /// <param name="engine">engine</param> private void ExecuteTaskOnEngine(Task task, IComputeEngine engine) { // update request handle RequestHandle handle = _taskRequestHandleMap[task.TaskId]; handle.EngineId = engine.EngineId; handle.TaskStatus = TaskStatus.Executing; handle.SubmitTime = DateTime.Now; // execute task engine.ExecuteTask(task); }
/// <summary> /// Execute a task on an engine /// </summary> /// <param name="task">task</param> /// <param name="engine">engine</param> private void ExecuteTaskOnEngine(Task task, IComputeEngine engine) { // update request handle RequestHandle handle = _taskRequestHandleMap[task.TaskId]; handle.EngineId = engine.EngineId; handle.TaskStatus = TaskStatus.Executing; handle.SubmitTime = DateTime.Now; var engineId = (from e in _engineCollection where e.Value == engine select e.Key).FirstOrDefault(); _taskEngineMap.Add(engineId, handle); // execute task engine.ExecuteTask(task); }
public void RegisterEngine(IComputeEngine engine) { base.Channel.RegisterEngine(engine); }
public void RegisterEngine(IComputeEngine engine) { _engines[engine.EngineId] = engine; }
/// <summary> /// Register an engine with this task-broker /// </summary> /// <param name="engine">engine</param> public void RegisterEngine(IComputeEngine engine) { throw new NotImplementedException("Not implemented for grid task-broker. Use RegisterEngineId(string engineId) instead."); }