Example #1
0
        /// <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);
        }
Example #2
0
        /// <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);
        }
Example #3
0
 public void RegisterEngine(IComputeEngine engine)
 {
     base.Channel.RegisterEngine(engine);
 }
Example #4
0
 public void RegisterEngine(IComputeEngine engine)
 {
     _engines[engine.EngineId] = engine;
 }
Example #5
0
        /// <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);
        }
Example #6
0
 /// <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.");
 }
Example #7
0
        /// <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);
        }
Example #8
0
 public void RegisterEngine(IComputeEngine engine)
 {
     _engines[engine.EngineId] = engine;
 }
Example #9
0
 /// <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.");
 }