Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/ServiceContracts/IHiveService.cs @ 5101

Last change on this file since 5101 was 5101, checked in by ascheibe, 13 years ago

added missing method #1233

File size: 3.8 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.ServiceModel;
6using System.IO;
7using HeuristicLab.Services.Hive.Common.DataTransfer;
8using System.Net.Security;
9
10namespace HeuristicLab.Services.Hive.Common.ServiceContracts {
11
12  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
13  public interface IHiveService {
14
15    #region Job Methods
16    [OperationContract]
17    Guid AddJob(Job job, JobData jobData);
18
19    [OperationContract]
20    Guid AddChildJob(Guid parentJobId, Job job, JobData jobData);
21
22    [OperationContract] // formerly GetJobById
23    Job GetJob(Guid jobId);
24
25    [OperationContract] // formerly GetAllJobs
26    IEnumerable<Job> GetJobs();
27
28    [OperationContract] // formerly GetJobResults
29    IEnumerable<LightweightJob> GetLightweightJobs(IEnumerable<Guid> jobIds);
30
31    [OperationContract] // formerly GetChildJobResults
32    IEnumerable<LightweightJob> GetLightweightChildJobs(Guid? parentJobId, bool recursive, bool includeParent);
33
34    [OperationContract] // formerly GetLastSerializedResult
35    JobData GetJobData(Guid jobId);
36
37    [OperationContract]
38    void UpdateJob(Job jobDto, JobData jobDataDto);
39
40    [OperationContract]
41    void DeleteChildJobs(Guid parentJobId);
42
43    [OperationContract] // new method: appropriate job is choosen and set to 'calculating'. the slave is responsible for requesting the jobData. Server should wait some timeout until he redistributes the job
44    Job AquireJob(Guid slaveId);
45
46    [OperationContract]
47    PluginData GetConfigurationFile();
48
49    #endregion
50
51    #region Job Control Methods
52    [OperationContract]
53    void StopJob(Guid jobId);
54
55    [OperationContract]
56    void PauseJob(Guid jobId);
57    #endregion
58
59    #region HiveExperiment Methods
60    [OperationContract]
61    HiveExperiment GetHiveExperiment(Guid id);
62
63    /// <summary>
64    /// Returns all experiments for the current user
65    /// </summary>
66    [OperationContract]
67    IEnumerable<HiveExperiment> GetHiveExperiments();
68
69    [OperationContract]
70    Guid AddHiveExperiment(HiveExperiment hiveExperimentDto);
71
72    [OperationContract]
73    void UpdateHiveExperiment(HiveExperiment hiveExperimentDto);
74
75    [OperationContract]
76    void DeleteHiveExperiment(Guid hiveExperimentId);
77    #endregion
78
79    #region Login Methods
80    [OperationContract]
81    void Hello(Guid slaveId, string name, int cores, int memory);
82
83    [OperationContract]
84    void GoodBye();
85    #endregion
86
87    #region Heartbeat Methods
88    [OperationContract]
89    List<MessageContainer> Heartbeat(Heartbeat heartbeat);
90    #endregion
91
92    #region Plugin Methods
93    [OperationContract]
94    Guid AddPlugin(Plugin plugin, List<PluginData> pluginData);
95    [OperationContract]
96    IEnumerable<Plugin> GetPlugins();
97    [OperationContract]
98    IEnumerable<PluginData> GetPluginDatas(List<Guid> pluginIds);
99    #endregion
100   
101    #region Slave Methods
102    [OperationContract]
103    Guid AddSlave(Slave slave);
104
105    [OperationContract]
106    Guid AddSlaveGroup(SlaveGroup slaveGroup);
107
108    [OperationContract]
109    IEnumerable<Slave> GetSlaves();
110   
111    [OperationContract]
112    [ServiceKnownType(typeof(Resource))]
113    [ServiceKnownType(typeof(Slave))]
114    [ServiceKnownType(typeof(SlaveGroup))]
115    IEnumerable<SlaveGroup> GetSlaveGroups();
116
117    [OperationContract]
118    void DeleteSlaveGroup(Guid clientGroupId);
119
120    [OperationContract]
121    [ServiceKnownType(typeof(Resource))]
122    [ServiceKnownType(typeof(Slave))]
123    [ServiceKnownType(typeof(SlaveGroup))]
124    void AddResourceToGroup(Guid slaveGroupId, Resource resource);
125
126    [OperationContract]
127    void RemoveResourceFromGroup(Guid slaveGroupId, Guid resourceId);
128
129    [OperationContract]
130    void UpdateSlave(Slave slave);
131    #endregion
132
133  }
134}
Note: See TracBrowser for help on using the repository browser.