Changeset 4423 for branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.JobBase/3.3/Interfaces/IJob.cs
- Timestamp:
- 09/17/10 10:26:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.JobBase/3.3/Interfaces/IJob.cs
r4368 r4423 3 3 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 4 4 using System.Collections.Generic; 5 using HeuristicLab.Common; 5 6 6 7 namespace HeuristicLab.Hive.JobBase { 7 8 public interface IJob : INamedItem { 8 /// <summary> 9 /// This ID is needed to identify the object when it returns from hive 10 /// </summary> 11 Guid InternalId { get; } 9 TimeSpan ExecutionTime { get; } 12 10 13 11 ExecutionState ExecutionState { get; } 14 IEnumerable<IJob> ChildJobs { get; } 15 double Progress { get; } 16 ILog Log { get; } 17 12 18 13 /// <summary> 19 14 /// indicates wether it is possible to create childjobs from this job … … 26 21 /// </summary> 27 22 bool ComputeInParallel { get; set; } 23 event EventHandler ComputeInParallelChanged; 28 24 29 /// <summary>30 /// Gets or sets the cores that will be needed by this job31 /// </summary>32 int CoresNeeded { get; set; }33 34 /// <summary>35 /// Gets or sets the memory that will be consumed by this job36 /// </summary>37 int MemoryNeeded { get; set; }38 39 25 void Run(); 40 26 void Prepare(); … … 52 38 53 39 /// <summary> 54 /// This event will be thrownwhen the job wants to have a child-job to be computed40 /// This event will be fired when the job wants to have a child-job to be computed 55 41 /// </summary> 56 event EventHandler<Common.EventArgs<IJob>> NewChildJob; 42 event EventHandler<EventArgs<IJob>> NewChildJob; 43 44 /// <summary> 45 /// Will be fired when job wants all child-jobs to be deleted from hive 46 /// </summary> 47 event EventHandler DeleteChildJobs; 48 49 /// <summary> 50 /// If this is set to true, the job should be Resumed with the child-jobs attatched instead of Started 51 /// </summary> 52 bool CollectChildJobs { get; set; } 57 53 } 58 54 }
Note: See TracChangeset
for help on using the changeset viewer.