Changeset 5062 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/ServiceContracts
- Timestamp:
- 12/07/10 16:11:14 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources
- Property svn:ignore
-
old new 1 1 HeuristicLab.Hive-3.4.suo 2 TestResults
-
- Property svn:ignore
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/ServiceContracts/IHiveService.cs
r5053 r5062 35 35 JobData GetJobData(Guid jobId); 36 36 37 //[OperationContract]38 //Stream GetJobDataStreamed(Guid jobId);39 40 37 [OperationContract] 41 38 void UpdateJob(Job jobDto, JobData jobDataDto); 42 43 //[OperationContract] // formerly StoreFinishedJobResultStreamed44 //void UpdateJobDataStreamed(Stream stream);45 39 46 40 [OperationContract] … … 49 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 50 44 Job AquireJob(Guid slaveId); 51 52 //[OperationContract] // dump?53 //Job GetJobByIdWithDetails(Guid jobId);54 55 //[OperationContract] dump?56 //Job AddNewJob(JobData job);57 58 //[OperationContract]59 //void RemoveJob(Guid jobId);60 61 //[OperationContract] // GetJobForCalculation (was this used?62 //Job GetJob(Guid slaveId);63 64 //[OperationContract] --> replaced by UpdateJob65 //void StoreFinishedJobResult(Guid slaveId, Guid jobId, byte[] result, TimeSpan executionTime, string exception);66 67 //[OperationContract] dump this! a slave should just check if job is still offline, if so it can submit the finished job, otherwise throw away! its a rare case that a slave reawakes with a finished job68 //void IsJobStillNeeded(Guid jobId);69 70 //[OperationContract] // dump?71 //Job AddJobWithGroupStrings(JobData jobObj, IEnumerable<string> groups);72 45 #endregion 73 46 … … 77 50 78 51 [OperationContract] 79 JobPauseJob(Guid jobId);52 void PauseJob(Guid jobId); 80 53 #endregion 81 54 … … 101 74 102 75 #region Login Methods 103 // rename "Login"-methods to "Register" or "SayHello", since its only purpose is to send Slave-Info (is Login() should not be used anymore)104 /// <summary>105 /// Method can be used to check if security credentials are valid, but it does not do anything106 /// </summary>107 /// <returns></returns>108 //[OperationContract]109 //void Login();110 ///// <summary>111 ///// This method registers the slave and marks it as online112 ///// </summary>113 //[OperationContract]114 //void Login(Slave slave);115 //[OperationContract]116 //void Logout(Guid clientId);117 118 76 [OperationContract] 119 77 void Hello(Guid slaveId, string name, int cores, int memory); … … 136 94 IEnumerable<PluginData> GetPluginDatas(List<Guid> pluginIds); 137 95 #endregion 138 139 // slave should be unaware of calendar. only server decides based on calendar if slave gets jobs 140 //#region Calendar Methods 141 //[OperationContract] 142 //IEnumerable<Appointment> GetCalendar(Guid slaveId); 143 //[OperationContract] 144 //void SetCalendarStatus(Guid clientId, CalendarState state); 145 //[OperationContract] 146 //IEnumerable<Appointment> GetUptimeCalendarForResource(Guid guid); 147 //[OperationContract] 148 //void SetUptimeCalendarForResource(Guid guid, IEnumerable<Appointment> appointments, bool isForced); 149 //#endregion 150 96 151 97 #region Slave Methods 152 98 [OperationContract] … … 160 106 161 107 [OperationContract] 162 //[ServiceKnownType(typeof(Resource))] - not sure about those163 //[ServiceKnownType(typeof(Slave))]164 //[ServiceKnownType(typeof(SlaveGroup))]108 [ServiceKnownType(typeof(Resource))] 109 [ServiceKnownType(typeof(Slave))] 110 [ServiceKnownType(typeof(SlaveGroup))] 165 111 IEnumerable<SlaveGroup> GetSlaveGroups(); 166 112 … … 169 115 170 116 [OperationContract] 171 //[ServiceKnownType(typeof(Resource))]172 //[ServiceKnownType(typeof(Slave))]173 //[ServiceKnownType(typeof(SlaveGroup))]117 [ServiceKnownType(typeof(Resource))] 118 [ServiceKnownType(typeof(Slave))] 119 [ServiceKnownType(typeof(SlaveGroup))] 174 120 void AddResourceToGroup(Guid slaveGroupId, Resource resource); 175 121
Note: See TracChangeset
for help on using the changeset viewer.