Changeset 4254 for branches/3.3-HiveMigration/sources
- Timestamp:
- 08/18/10 17:23:09 (14 years ago)
- Location:
- branches/3.3-HiveMigration/sources/HeuristicLab.Hive
- Files:
-
- 5 added
- 10 deleted
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/HeuristicLab.Hive.Contracts-3.3.csproj
r4253 r4254 135 135 <Compile Include="RecurrentEvent.cs" /> 136 136 <Compile Include="ResponseCalendar.cs" /> 137 <Compile Include="ResponseSerializedJob.cs" />138 137 <Compile Include="MultiStream.cs" /> 139 138 <Compile Include="Interfaces\ISlaveFacade.cs" /> … … 145 144 <Compile Include="Interfaces\IServerConsoleFacade.cs" /> 146 145 <Compile Include="MessageContainer.cs" /> 147 <Compile Include="ResponseJob.cs" />148 146 <Compile Include="HeuristicLabHiveContractsPlugin.cs" /> 149 147 <Compile Include="Interfaces\ISlaveCommunicator.cs" /> 150 148 <Compile Include="Properties\AssemblyInfo.cs" /> 151 149 <Compile Include="Response.cs" /> 152 <Compile Include="ResponseH B.cs" />150 <Compile Include="ResponseHeartBeat.cs" /> 153 151 <Compile Include="ResponseList.cs" /> 154 <Compile Include="ResponsePlugin.cs" />155 152 <Compile Include="ResponseResultReceived.cs" /> 156 153 <Compile Include="StreamedObject.cs" /> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Interfaces/IJobManager.cs
r4170 r4254 33 33 [ServiceContract] 34 34 public interface IJobManager { 35 35 36 [OperationContract] 36 37 ResponseList<JobDto> GetAllJobsWithFilter(State jobState, int offset, int count); 38 37 39 [OperationContract] 38 40 ResponseList<JobDto> GetAllJobs(); 41 39 42 [OperationContract] 40 43 ResponseObject<JobDto> GetJobById(Guid jobId); 44 41 45 [OperationContract] 42 46 ResponseObject<JobDto> GetJobByIdWithDetails(Guid jobId); 47 43 48 [OperationContract] 44 49 ResponseObject<JobDto> AddNewJob(SerializedJob job); 50 45 51 [OperationContract] 46 52 Response RemoveJob(Guid jobId); 53 47 54 [OperationContract] 48 55 ResponseObject<JobDto> GetLastJobResultOf(Guid jobId); 56 49 57 [OperationContract] 50 58 ResponseObject<SerializedJob> GetLastSerializedJobResultOf(Guid jobId, bool requested, bool snapshot); 59 51 60 [OperationContract] 52 61 ResponseObject<JobResultList> GetAllJobResults(IEnumerable<Guid> jobIds); 62 53 63 [OperationContract] 54 64 Response RequestSnapshot(Guid jobId); 65 55 66 [OperationContract] 56 67 Response AbortJob(Guid jobId); 68 57 69 [OperationContract] 58 70 ResponseList<ProjectDto> GetAllProjects(); 71 59 72 [OperationContract] 60 73 Response CreateProject(ProjectDto project); 74 61 75 [OperationContract] 62 76 Response ChangeProject(ProjectDto project); 77 63 78 [OperationContract] 64 79 Response DeleteProject(Guid projectId); 80 65 81 [OperationContract] 66 82 ResponseList<JobDto> GetJobsByProject(Guid projectId); 83 67 84 [OperationContract] 68 85 ResponseObject<JobDto> AddJobWithGroupStrings(SerializedJob job, IEnumerable<string> resources); -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Interfaces/ISlaveCommunicator.cs
r4253 r4254 34 34 [ServiceContract] 35 35 public interface ISlaveCommunicator { 36 36 37 [OperationContract] 37 38 Response Login(ClientDto clientInfo); 39 38 40 [OperationContract] 39 ResponseHB ProcessHeartBeat(HeartBeatData hbData); 41 ResponseHeartBeat ProcessHeartBeat(HeartBeatData hbData); 42 40 43 [OperationContract] 41 ResponseJob SendJob(Guid clientId); 42 //[OperationContract] 43 //ResponseSerializedJob SendSerializedJob(Guid clientId); 44 ResponseObject<JobDto> GetJob(Guid clientId); 45 44 46 [OperationContract] 45 ResponseResultReceived StoreFinishedJobResult(Guid clientId, 46 Guid jobId, 47 byte[] result, 48 double percentage, 49 string exception); 47 ResponseResultReceived StoreFinishedJobResult(Guid clientId, Guid jobId, byte[] result, double percentage, string exception); 48 50 49 [OperationContract] 51 ResponseResultReceived ProcessSnapshot(Guid clientId, 52 Guid jobId, 53 byte[] result, 54 double percentage, 55 string exception); 50 ResponseResultReceived ProcessSnapshot(Guid clientId, Guid jobId, byte[] result, double percentage, string exception); 51 56 52 [OperationContract] 57 53 Response Logout(Guid clientId); 54 58 55 [OperationContract] 59 56 Response IsJobStillNeeded(Guid jobId); 57 60 58 [OperationContract] 61 Response PluginSendPlugins(List<HivePluginInfoDto> pluginList);59 ResponseList<CachedHivePluginInfoDto> SendPlugins(List<HivePluginInfoDto> pluginList); 62 60 63 61 [OperationContract] 64 62 ResponseCalendar GetCalendar(Guid clientId); 63 65 64 [OperationContract] 66 65 Response SetCalendarStatus(Guid clientId, CalendarState state); -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Interfaces/ISlaveManager.cs
r4253 r4254 33 33 [ServiceContract] 34 34 public interface ISlaveManager { 35 35 36 [OperationContract] 36 37 ResponseList<ClientDto> GetAllClients(); 38 37 39 [OperationContract] 38 40 [ServiceKnownType(typeof (ResourceDto))] … … 40 42 [ServiceKnownType(typeof(ClientGroupDto))] 41 43 ResponseList<ClientGroupDto> GetAllClientGroups(); 44 42 45 [OperationContract] 43 46 ResponseObject<ClientGroupDtoList> GetAllGroupsOfResource(Guid resourceId); 47 44 48 [OperationContract] 45 49 ResponseObject<ClientGroupDto> AddClientGroup(ClientGroupDto clientGroup); 50 46 51 [OperationContract] 47 52 Response DeleteClientGroup(Guid clientGroupId); 53 48 54 [OperationContract] 49 55 [ServiceKnownType(typeof(ResourceDto))] … … 51 57 [ServiceKnownType(typeof(ClientGroupDto))] 52 58 Response AddResourceToGroup(Guid clientGroupId, ResourceDto resource); 59 53 60 [OperationContract] 54 61 Response DeleteResourceFromGroup(Guid clientGroupId, Guid resourceId); 62 55 63 [OperationContract] 56 64 ResponseList<UpTimeStatisticsDto> GetAllUpTimeStatistics(); 65 57 66 [OperationContract] 58 67 ResponseList<AppointmentDto> GetUptimeCalendarForResource(Guid guid); 68 59 69 [OperationContract] 60 70 Response SetUptimeCalendarForResource(Guid guid, IEnumerable<AppointmentDto> appointments, bool isForced); -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/MessageContainer.cs
r4133 r4254 58 58 MessageContainer clone = (MessageContainer)Activator.CreateInstance(this.GetType(), true); 59 59 cloner.RegisterClonedObject(this, clone); 60 //clone.StatusMessage = this.StatusMessage;61 //clone.Success = this.Success;60 clone.Message = this.Message; 61 clone.JobId = this.JobId; 62 62 return clone; 63 63 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponseObject.cs
r4133 r4254 31 31 [StorableClass] 32 32 [DataContract] 33 [Serializable] 33 34 public class ResponseObject<T> : Response 34 35 where T : IDeepCloneable { -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponsePlugin.cs
r4133 r4254 11 11 [DataContract] 12 12 [Serializable] 13 public class ResponsePlugin : Response {13 public class ResponsePlugin : ResponseBase { 14 14 [Storable] 15 15 [DataMember] -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponseSerializedJob.cs
r4133 r4254 37 37 [DataContract] 38 38 [Serializable] 39 public class ResponseSerializedJob : Response {39 public class ResponseSerializedJob : ResponseBase { 40 40 [Storable] 41 41 [DataMember] -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/DefaultScheduler.cs
r4253 r4254 13 13 namespace HeuristicLab.Hive.Server.Core { 14 14 internal class DefaultScheduler : IScheduler { 15 //private ISessionFactory factory;16 15 17 private static Mutex jobLock = 18 new Mutex(); 16 private static object jobLock = new object(); 19 17 20 18 #region IScheduler Members 21 19 22 public DefaultScheduler() { 23 //factory = ServiceLocator.GetSessionFactory(); 24 } 20 public DefaultScheduler() { } 25 21 26 public bool ExistsJobForSlave(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) { 27 List<JobDto> allOfflineJobsForSlave = 28 new List<JobDto>(DaoLocator.JobDao.FindFittingJobsForSlave(State.Offline, hbData.FreeCores, hbData.FreeMemory, hbData.SlaveId)); 22 public bool ExistsJobForSlave(HeartBeatData hbData) { 23 List<JobDto> allOfflineJobsForSlave = new List<JobDto>(DaoLocator.JobDao.FindFittingJobsForSlave(State.Offline, hbData.FreeCores, hbData.FreeMemory, hbData.SlaveId)); 29 24 return (allOfflineJobsForSlave != null && allOfflineJobsForSlave.Count > 0); 30 25 } 31 26 32 public HeuristicLab.Hive.Contracts.BusinessObjects.JobDto GetNextJobForSlave(Guid slaveId) { 33 /// Critical section /// 34 jobLock.WaitOne(); 35 JobDto jobToCalculate = null; 36 using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions { IsolationLevel = ApplicationConstants.ISOLATION_LEVEL_SCOPE })) { 37 ClientDto slave = DaoLocator.ClientDao.FindById(slaveId); 38 LinkedList<JobDto> allOfflineJobsForSlave = 39 new LinkedList<JobDto>(DaoLocator.JobDao.FindFittingJobsForSlave(State.Offline, slave.NrOfFreeCores, slave.FreeMemory, slave.Id)); 40 if (allOfflineJobsForSlave != null && allOfflineJobsForSlave.Count > 0) { 41 jobToCalculate = allOfflineJobsForSlave.First.Value; 42 jobToCalculate.State = State.Calculating; 43 jobToCalculate.Client = slave; 44 jobToCalculate.Client.State = State.Calculating; 45 jobToCalculate.DateCalculated = DateTime.Now; 46 DaoLocator.JobDao.AssignSlaveToJob(slave.Id, jobToCalculate.Id); 47 DaoLocator.JobDao.Update(jobToCalculate); 48 DaoLocator.ClientDao.Update(jobToCalculate.Client); 27 public JobDto GetNextJobForSlave(Guid slaveId) { 28 lock (jobLock) { 29 /// Critical section /// 30 JobDto jobToCalculate = null; 31 using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions { IsolationLevel = ApplicationConstants.ISOLATION_LEVEL_SCOPE })) { 32 ClientDto slave = DaoLocator.ClientDao.FindById(slaveId); 33 LinkedList<JobDto> allOfflineJobsForSlave = 34 new LinkedList<JobDto>(DaoLocator.JobDao.FindFittingJobsForSlave(State.Offline, slave.NrOfFreeCores, slave.FreeMemory, slave.Id)); 35 if (allOfflineJobsForSlave != null && allOfflineJobsForSlave.Count > 0) { 36 jobToCalculate = allOfflineJobsForSlave.First.Value; 37 jobToCalculate.State = State.Calculating; 38 jobToCalculate.Client = slave; 39 jobToCalculate.Client.State = State.Calculating; 40 jobToCalculate.DateCalculated = DateTime.Now; 41 DaoLocator.JobDao.AssignSlaveToJob(slave.Id, jobToCalculate.Id); 42 DaoLocator.JobDao.Update(jobToCalculate); 43 DaoLocator.ClientDao.Update(jobToCalculate.Client); 44 } 45 scope.Complete(); 49 46 } 50 scope.Complete(); 47 /// End Critical section /// 48 49 return jobToCalculate; 51 50 } 52 jobLock.ReleaseMutex();53 /// End Critical section ///54 55 return jobToCalculate;56 51 } 57 52 -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades/SlaveFacade.cs
r4253 r4254 55 55 } 56 56 57 public ResponseH BProcessHeartBeat(HeartBeatData hbData) {57 public ResponseHeartBeat ProcessHeartBeat(HeartBeatData hbData) { 58 58 using (contextFactory.GetContext()) { 59 59 return slaveCommunicator.ProcessHeartBeat(hbData); … … 61 61 } 62 62 63 public Response Job SendJob(Guid clientId) {63 public ResponseObject<JobDto> GetJob(Guid clientId) { 64 64 using (contextFactory.GetContext()) { 65 return slaveCommunicator. SendJob(clientId);65 return slaveCommunicator.GetJob(clientId); 66 66 } 67 67 } … … 85 85 } 86 86 87 public Response PluginSendPlugins(List<HivePluginInfoDto> pluginList) {87 public ResponseList<CachedHivePluginInfoDto> SendPlugins(List<HivePluginInfoDto> pluginList) { 88 88 return slaveCommunicator.SendPlugins(pluginList); 89 89 } … … 118 118 MultiStream stream = new MultiStream(); 119 119 120 Response Jobjob = null;120 ResponseObject<JobDto> job = null; 121 121 122 job = ServiceLocator.GetSlaveCommunicator(). SendJob(clientId);122 job = ServiceLocator.GetSlaveCommunicator().GetJob(clientId); 123 123 124 124 //first send response 125 stream.AddStream(new StreamedObject<Response Job>(job));125 stream.AddStream(new StreamedObject<ResponseObject<JobDto>>(job)); 126 126 127 127 IJobManager jobManager = ServiceLocator.GetJobManager(); … … 130 130 //second stream the job binary data 131 131 MemoryStream memoryStream = new MemoryStream(); 132 if (job. Job!= null)133 stream.AddStream(new MemoryStream(internalJobManager.GetSerializedJobDataById(job. Job.Id)));132 if (job.Obj != null) 133 stream.AddStream(new MemoryStream(internalJobManager.GetSerializedJobDataById(job.Obj.Id))); 134 134 135 135 OperationContext clientContext = OperationContext.Current; … … 145 145 146 146 public Stream SendStreamedPlugins(List<HivePluginInfoDto> pluginList) { 147 return new StreamedObject<Response Plugin>(this.SendPlugins(pluginList));147 return new StreamedObject<ResponseList<CachedHivePluginInfoDto>>(this.SendPlugins(pluginList)); 148 148 } 149 149 -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/HeuristicLab.Hive.Server.Core-3.3.csproj
r4253 r4254 125 125 <Compile Include="Authorization\HivePermissionManager.cs" /> 126 126 <Compile Include="HeuristicLabHiveServerCorePlugin.cs" /> 127 <Compile Include="HiveServerMessages.Designer.cs" />128 127 <Compile Include="InternalInterfaces\IHivePermissionManager.cs" /> 129 128 <Compile Include="InternalInterfaces\IInternalSlaveCommunicator.cs" /> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/JobManager.cs
r4173 r4254 41 41 namespace HeuristicLab.Hive.Server.Core { 42 42 internal class JobManager : IJobManager, IInternalJobManager { 43 //ISessionFactory factory;44 43 private ILifecycleManager lifecycleManager; 45 44 … … 47 46 48 47 public JobManager() { 49 //factory = ServiceLocator.GetSessionFactory();50 48 lifecycleManager = ServiceLocator.GetLifecycleManager(); 51 49 52 50 lifecycleManager.RegisterStartup(new EventHandler(lifecycleManager_OnStartup)); 53 lifecycleManager.RegisterS tartup(new EventHandler(lifecycleManager_OnShutdown));51 lifecycleManager.RegisterShutdown(new EventHandler(lifecycleManager_OnShutdown)); 54 52 } 55 53 … … 61 59 Logger.Info("Searching for dead Jobs"); 62 60 63 // [chn] why is transaction management done here? 64 using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions { IsolationLevel = ApplicationConstants.ISOLATION_LEVEL_SCOPE })) { 65 List<JobDto> allJobs = new List<JobDto>(DaoLocator.JobDao.FindAll()); 66 foreach (JobDto curJob in allJobs) { 67 if (curJob.State != State.Calculating && curJob.State != State.Finished) { 68 DaoLocator.JobDao.SetJobOffline(curJob); 69 } 70 } 71 scope.Complete(); 72 } 73 // DaoLocator.DestroyContext(); 61 List<JobDto> allJobs = new List<JobDto>(DaoLocator.JobDao.FindAll()); 62 foreach (JobDto curJob in allJobs) { 63 if (curJob.State != State.Calculating && curJob.State != State.Finished) { 64 DaoLocator.JobDao.SetJobOffline(curJob); 65 } 66 } 74 67 } 75 68 … … 322 315 } 323 316 317 /// <summary> 318 /// Returns the current state for all jobs requested 319 /// </summary> 320 /// <param name="jobIds"></param> 321 /// <returns></returns> 324 322 public ResponseObject<JobResultList> GetAllJobResults(IEnumerable<Guid> jobIds) { 325 323 ResponseObject<JobResultList> response = new ResponseObject<JobResultList>(); … … 334 332 Exception = job.Exception, 335 333 Percentage = job.Percentage 336 }); 334 }); 337 335 } 338 336 response.Obj = jobResultList; … … 340 338 response.StatusMessage = ApplicationConstants.RESPONSE_JOB_ALL_JOBS; 341 339 return response; 342 }343 344 public ResponseList<ProjectDto> GetAllProjects() {345 return null;346 }347 348 private Response createUpdateProject(ProjectDto project) {349 return null;350 }351 352 public Response CreateProject(ProjectDto project) {353 return createUpdateProject(project);354 }355 356 public Response ChangeProject(ProjectDto project) {357 return createUpdateProject(project);358 }359 360 public Response DeleteProject(Guid projectId) {361 return null;362 }363 364 public ResponseList<JobDto> GetJobsByProject(Guid projectId) {365 return null;366 340 } 367 341 … … 376 350 #endregion 377 351 352 #region Project handling (currently unimplemented) 353 354 public ResponseList<ProjectDto> GetAllProjects() { 355 throw new NotImplementedException(); 356 } 357 358 private Response CreateUpdateProject(ProjectDto project) { 359 throw new NotImplementedException(); 360 } 361 362 public Response CreateProject(ProjectDto project) { 363 return CreateUpdateProject(project); 364 } 365 366 public Response ChangeProject(ProjectDto project) { 367 return CreateUpdateProject(project); 368 } 369 370 public Response DeleteProject(Guid projectId) { 371 throw new NotImplementedException(); 372 } 373 374 public ResponseList<JobDto> GetJobsByProject(Guid projectId) { 375 throw new NotImplementedException(); 376 } 377 #endregion 378 378 } 379 379 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/ServiceLocator.cs
r4253 r4254 97 97 public static ILifecycleManager GetLifecycleManager() { 98 98 if (lifecycleManager == null) { 99 lifecycleManager = new LifecycleManager();99 lifecycleManager = ApplicationManager.Manager.GetInstances<ILifecycleManager>().First(); 100 100 } 101 101 return lifecycleManager; -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/SlaveCommunicator.cs
r4253 r4254 248 248 /// <param name="hbData"></param> 249 249 /// <returns></returns> 250 public ResponseH BProcessHeartBeat(HeartBeatData hbData) {250 public ResponseHeartBeat ProcessHeartBeat(HeartBeatData hbData) { 251 251 Logger.Debug("BEGIN Processing Heartbeat for Client " + hbData.SlaveId); 252 252 253 ResponseH B response = new ResponseHB();253 ResponseHeartBeat response = new ResponseHeartBeat(); 254 254 response.ActionRequest = new List<MessageContainer>(); 255 255 … … 342 342 /// <param name="clientAdapter"></param> 343 343 /// <param name="response"></param> 344 private void ProcessJobProcess(HeartBeatData hbData, ResponseH Bresponse) {344 private void ProcessJobProcess(HeartBeatData hbData, ResponseHeartBeat response) { 345 345 Logger.Debug("Started for Client " + hbData.SlaveId); 346 346 List<JobDto> jobsOfClient = new List<JobDto>(DaoLocator.JobDao.FindActiveJobsOfSlave(DaoLocator.ClientDao.FindById(hbData.SlaveId))); … … 432 432 /// <param name="clientId"></param> 433 433 /// <returns></returns> 434 public ResponseJob SendJob(Guid clientId) { 435 436 ResponseJob response = new ResponseJob(); 434 public ResponseObject<JobDto> GetJob(Guid clientId) { 435 ResponseObject<JobDto> response = new ResponseObject<JobDto>(); 437 436 438 437 JobDto job2Calculate = scheduler.GetNextJobForSlave(clientId); 439 438 if (job2Calculate != null) { 440 response. Job= job2Calculate;441 response. Job.PluginsNeeded = DaoLocator.PluginInfoDao.GetPluginDependenciesForJob(response.Job);439 response.Obj = job2Calculate; 440 response.Obj.PluginsNeeded = DaoLocator.PluginInfoDao.GetPluginDependenciesForJob(response.Obj); 442 441 response.Success = true; 443 442 Logger.Info("Job pulled: " + job2Calculate + " for user " + clientId); … … 449 448 } else { 450 449 response.Success = false; 451 response. Job= null;450 response.Obj = null; 452 451 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT; 453 452 Logger.Info("No more Jobs left for " + clientId); 454 453 } 455 456 457 458 454 return response; 459 455 } … … 711 707 } 712 708 713 public Response PluginSendPlugins(List<HivePluginInfoDto> pluginList) {714 Response Plugin response = new ResponsePlugin();709 public ResponseList<CachedHivePluginInfoDto> SendPlugins(List<HivePluginInfoDto> pluginList) { 710 ResponseList<CachedHivePluginInfoDto> response = new ResponseList<CachedHivePluginInfoDto>(); 715 711 foreach (HivePluginInfoDto pluginInfo in pluginList) { 716 712 if (pluginInfo.Update) { … … 719 715 ApplicationManager.Manager.Plugins.Where(pd => pd.Name == pluginInfo.Name && pd.Version.Major == pluginInfo.Version.Major && pd.Version.Minor == pluginInfo.Version.Minor && pd.Version.Revision > pluginInfo.Version.Revision).SingleOrDefault(); 720 716 if (ipd != null) { 721 response. Plugins.Add(convertPluginDescriptorToDto(ipd));717 response.List.Add(convertPluginDescriptorToDto(ipd)); 722 718 } 723 719 } else { … … 725 721 ApplicationManager.Manager.Plugins.Where(pd => pd.Name == pluginInfo.Name && pd.Version.Major == pluginInfo.Version.Major && pd.Version.Minor == pluginInfo.Version.Minor && pd.Version.Revision >= pluginInfo.Version.Revision).SingleOrDefault(); 726 722 if (ipd != null) { 727 response. Plugins.Add(convertPluginDescriptorToDto(ipd));723 response.List.Add(convertPluginDescriptorToDto(ipd)); 728 724 } else { 729 725 response.Success = false; -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/HeuristicLab.Hive.Server-3.3.csproj
r4171 r4254 78 78 </PropertyGroup> 79 79 <ItemGroup> 80 <Reference Include="HeuristicLab.Common.Resources-3.3"> 81 <HintPath>..\..\..\..\..\..\..\..\..\Programme\HeuristicLab 3.3\HeuristicLab.Common.Resources-3.3.dll</HintPath> 82 </Reference> 80 83 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 81 84 <HintPath>..\..\..\..\..\..\..\..\..\Programme\HeuristicLab 3.3\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> … … 133 136 <SubType>Designer</SubType> 134 137 </EmbeddedResource> 135 <EmbeddedResource Include="Properties\Resources.resx">136 <Generator>ResXFileCodeGenerator</Generator>137 <LastGenOutput>Resources.Designer.cs</LastGenOutput>138 <SubType>Designer</SubType>139 </EmbeddedResource>140 <Compile Include="Properties\Resources.Designer.cs">141 <AutoGen>True</AutoGen>142 <DependentUpon>Resources.resx</DependentUpon>143 <DesignTime>True</DesignTime>144 </Compile>145 138 <None Include="Properties\AssemblyInfo.frame" /> 146 139 <None Include="HeuristicLab.snk" /> 147 <None Include="Properties\Settings.settings">148 <Generator>SettingsSingleFileGenerator</Generator>149 <LastGenOutput>Settings.Designer.cs</LastGenOutput>150 </None>151 <Compile Include="Properties\Settings.Designer.cs">152 <AutoGen>True</AutoGen>153 <DependentUpon>Settings.settings</DependentUpon>154 <DesignTimeSharedInput>True</DesignTimeSharedInput>155 </Compile>156 140 </ItemGroup> 157 141 <ItemGroup> … … 164 148 <Name>HeuristicLab.Hive.Server.Core-3.3</Name> 165 149 </ProjectReference> 166 </ItemGroup>167 <ItemGroup>168 <None Include="Resources\HeuristicLab.ico" />169 150 </ItemGroup> 170 151 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/HeuristicLabHiveServerApplication.cs
r4253 r4254 30 30 using HeuristicLab.Hive.Contracts.Interfaces; 31 31 using HeuristicLab.PluginInfrastructure; 32 using HeuristicLab.Hive.Server.Core; 32 33 33 34 namespace HeuristicLab.Hive.Server { … … 162 163 baseAddrDict.Add(STR_ExecutionEngineFacade, StartService(Services.ExecutionEngineFacade, addresses[index], WcfSettings.DEFAULTPORT)); 163 164 164 // [chn] why is lifecyclemanager instantiated here?? shouldnt Core.ServiceLocator be used? 165 IEnumerable<ILifecycleManager> lifecycleManagers = ApplicationManager.Manager.GetInstances<ILifecycleManager>(); 166 if (lifecycleManagers.Count() > 0) { 167 ILifecycleManager lifecycleManager = lifecycleManagers.First(); 165 ILifecycleManager lifecycleManager = ServiceLocator.GetLifecycleManager(); 168 166 169 167 lifecycleManager.Init(); 170 168 171 // [chn] remove gui code here, how to display any response from server? 172 Form mainForm = new MainForm(baseAddrDict); 173 Application.Run(mainForm); 169 Form mainForm = new MainForm(baseAddrDict); 170 Application.Run(); 174 171 175 176 }172 lifecycleManager.Shutdown(); 173 177 174 StopService(Services.All); 178 175 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/HeuristicLabHiveServerPlugin.cs
r4171 r4254 29 29 [Plugin("HeuristicLab.Hive.Server", "3.3")] 30 30 [PluginFile("HeuristicLab.Hive.Server-3.3.dll", PluginFileType.Assembly)] 31 [PluginDependency("HeuristicLab.Common.Resources", "3.3")] 31 32 [PluginDependency("HeuristicLab.Hive.Contracts", "3.3")] 32 33 [PluginDependency("HeuristicLab.Hive.Server.Core", "3.3")] -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/MainForm.Designer.cs
r4042 r4254 51 51 // rtfServices 52 52 // 53 this.rtfServices.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 54 | System.Windows.Forms.AnchorStyles.Left) 55 | System.Windows.Forms.AnchorStyles.Right))); 53 56 this.rtfServices.Location = new System.Drawing.Point(12, 25); 54 57 this.rtfServices.Name = "rtfServices"; 55 58 this.rtfServices.ReadOnly = true; 56 this.rtfServices.Size = new System.Drawing.Size( 280, 121);59 this.rtfServices.Size = new System.Drawing.Size(377, 129); 57 60 this.rtfServices.TabIndex = 1; 58 61 this.rtfServices.Text = ""; … … 96 99 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 97 100 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 98 this.ClientSize = new System.Drawing.Size( 304, 166);101 this.ClientSize = new System.Drawing.Size(401, 166); 99 102 this.Controls.Add(this.rtfServices); 100 103 this.Controls.Add(this.label1); 101 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;102 104 this.Name = "MainForm"; 103 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;104 105 this.Text = "Hive Server"; 105 106 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/MainForm.cs
r4171 r4254 7 7 using System.Text; 8 8 using System.Windows.Forms; 9 using HeuristicLab.Hive.Server.Properties;10 9 11 namespace HeuristicLab.Hive.Server 12 { 13 public partial class MainForm : Form { 14 public MainForm(Dictionary<string, Uri> addresses) { 15 InitializeComponent(); 16 this.Visible = false; 17 this.Hide(); 10 namespace HeuristicLab.Hive.Server { 11 public partial class MainForm : Form { 12 public MainForm(Dictionary<string, Uri> addresses) { 13 InitializeComponent(); 18 14 19 20 21 22 23 24 25 26 27 28 29 15 Uri uri; 16 StringBuilder servicesTxt = new StringBuilder(); 17 addresses.TryGetValue(HeuristicLabHiveServerApplication.STR_ClientCommunicator, out uri); 18 if (uri != null) 19 servicesTxt.AppendLine(String.Format("Server Client: {0}", uri)); 20 addresses.TryGetValue(HeuristicLabHiveServerApplication.STR_ServerConsoleFacade, out uri); 21 if (uri != null) 22 servicesTxt.AppendLine(String.Format("Server Console: {0}", uri)); 23 addresses.TryGetValue(HeuristicLabHiveServerApplication.STR_ExecutionEngineFacade, out uri); 24 if (uri != null) 25 servicesTxt.AppendLine(String.Format("Execution Engine: {0}", uri)); 30 26 31 27 rtfServices.AppendText(servicesTxt.ToString()); 32 28 33 ni.Icon = Resources.HeuristicLab;34 35 36 37 38 39 29 ni.Icon = HeuristicLab.Common.Resources.HeuristicLab.Icon; 30 ni.BalloonTipTitle = "HL Hive Server Services"; 31 ni.BalloonTipText = servicesTxt.ToString(); 32 ni.BalloonTipIcon = ToolTipIcon.Info; 33 ni.Text = "HL Hive Server Services"; 34 ni.ShowBalloonTip(10000); 35 } 40 36 41 private void CloseApp(object sender, EventArgs e) { 42 Dispose(); 43 } 37 private void CloseApp(object sender, EventArgs e) { 38 this.Dispose(); 39 Application.Exit(); 40 } 44 41 45 46 47 42 private void ShowInfo(object sender, EventArgs e) { 43 this.Visible = true; 44 } 48 45 49 private void btnClose_Click(object sender, EventArgs e) { 50 this.Visible = false; 51 } 52 53 private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { 54 } 55 46 private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { 47 e.Cancel = true; 48 this.Visible = false; 56 49 } 50 } 57 51 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/HeuristicLab.Hive.Slave.Communication-3.3.csproj
r4253 r4254 111 111 <Compile Include="HeuristicLabHiveSlaveCommunicationPlugin.cs" /> 112 112 <Compile Include="Properties\AssemblyInfo.cs" /> 113 <Compile Include=" SendJobCompletedEventArgs.cs" />113 <Compile Include="GetJobCompletedEventArgs.cs" /> 114 114 <Compile Include="Service References\ServerService\Reference.cs"> 115 115 <AutoGen>True</AutoGen> … … 123 123 <None Include="HeuristicLab.snk" /> 124 124 <None Include="Properties\AssemblyInfo.frame" /> 125 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.BusinessObjects.JobDto.datasource" /> 126 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.ResponseHeartBeat.datasource" /> 127 <None Include="Properties\DataSources\HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto.datasource" /> 125 128 <None Include="Service References\ServerService\Arrays1.xsd"> 126 129 <SubType>Designer</SubType> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/ServerService/HeuristicLab.Hive.Contracts.BusinessObjects1.xsd
r4170 r4254 2 2 <xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 3 3 <xs:import namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.DataAccess" /> 4 <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /> 4 5 <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" /> 5 <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />6 6 <xs:import namespace="http://schemas.datacontract.org/2004/07/System" /> 7 7 <xs:complexType name="ClientDto"> … … 71 71 <xs:complexType name="HeartBeatData"> 72 72 <xs:sequence> 73 <xs:element minOccurs="0" name="ClientId" type="ser:guid" />74 73 <xs:element minOccurs="0" name="FreeCores" type="xs:int" /> 75 74 <xs:element minOccurs="0" name="FreeMemory" type="xs:int" /> 76 75 <xs:element xmlns:q3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="JobProgress" nillable="true" type="q3:ArrayOfKeyValueOfguiddouble" /> 76 <xs:element minOccurs="0" name="SlaveId" type="ser:guid" /> 77 77 </xs:sequence> 78 78 </xs:complexType> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/ServerService/HeuristicLab.Hive.Contracts1.xsd
r4170 r4254 11 11 </xs:complexType> 12 12 <xs:element name="Response" nillable="true" type="tns:Response" /> 13 <xs:complexType name="ResponseH B">13 <xs:complexType name="ResponseHeartBeat"> 14 14 <xs:complexContent mixed="false"> 15 15 <xs:extension base="tns:Response"> … … 20 20 </xs:complexContent> 21 21 </xs:complexType> 22 <xs:element name="ResponseH B" nillable="true" type="tns:ResponseHB" />22 <xs:element name="ResponseHeartBeat" nillable="true" type="tns:ResponseHeartBeat" /> 23 23 <xs:complexType name="ArrayOfMessageContainer"> 24 24 <xs:sequence> … … 50 50 </xs:simpleType> 51 51 <xs:element name="MessageContainer.MessageType" nillable="true" type="tns:MessageContainer.MessageType" /> 52 <xs:complexType name="ResponseJob"> 52 <xs:complexType name="ResponseObjectOfJobDtoZAa7YIsz"> 53 <xs:annotation> 54 <xs:appinfo> 55 <GenericType Name="ResponseObjectOf{0}{#}" Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> 56 <GenericParameter Name="JobDto" Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects"> 57 </GenericParameter> 58 </GenericType> 59 </xs:appinfo> 60 </xs:annotation> 53 61 <xs:complexContent mixed="false"> 54 62 <xs:extension base="tns:Response"> 55 63 <xs:sequence> 56 <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" minOccurs="0" name=" Job" nillable="true" type="q1:JobDto" />64 <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" minOccurs="0" name="Obj" nillable="true" type="q1:JobDto" /> 57 65 </xs:sequence> 58 66 </xs:extension> 59 67 </xs:complexContent> 60 68 </xs:complexType> 61 <xs:element name="Response Job" nillable="true" type="tns:ResponseJob" />69 <xs:element name="ResponseObjectOfJobDtoZAa7YIsz" nillable="true" type="tns:ResponseObjectOfJobDtoZAa7YIsz" /> 62 70 <xs:complexType name="ResponseResultReceived"> 63 71 <xs:complexContent mixed="false"> … … 71 79 </xs:complexType> 72 80 <xs:element name="ResponseResultReceived" nillable="true" type="tns:ResponseResultReceived" /> 73 <xs:complexType name="ResponsePlugin"> 81 <xs:complexType name="ResponseListOfCachedHivePluginInfoDtoZMwZop09"> 82 <xs:annotation> 83 <xs:appinfo> 84 <GenericType Name="ResponseListOf{0}{#}" Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> 85 <GenericParameter Name="CachedHivePluginInfoDto" Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.PluginInfrastructure"> 86 </GenericParameter> 87 </GenericType> 88 </xs:appinfo> 89 </xs:annotation> 74 90 <xs:complexContent mixed="false"> 75 91 <xs:extension base="tns:Response"> 76 92 <xs:sequence> 77 <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/HeuristicLab.PluginInfrastructure" minOccurs="0" name=" Plugins" nillable="true" type="q2:ArrayOfCachedHivePluginInfoDto" />93 <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/HeuristicLab.PluginInfrastructure" minOccurs="0" name="List" nillable="true" type="q2:ArrayOfCachedHivePluginInfoDto" /> 78 94 </xs:sequence> 79 95 </xs:extension> 80 96 </xs:complexContent> 81 97 </xs:complexType> 82 <xs:element name="Response Plugin" nillable="true" type="tns:ResponsePlugin" />98 <xs:element name="ResponseListOfCachedHivePluginInfoDtoZMwZop09" nillable="true" type="tns:ResponseListOfCachedHivePluginInfoDtoZMwZop09" /> 83 99 <xs:complexType name="ResponseCalendar"> 84 100 <xs:complexContent mixed="false"> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/ServerService/Reference.cs
r4253 r4254 10 10 11 11 namespace HeuristicLab.Hive.Slave.Communication.ServerService { 12 using System.Runtime.Serialization; 13 using System; 14 15 16 [System.Diagnostics.DebuggerStepThroughAttribute()] 17 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 18 [System.Runtime.Serialization.DataContractAttribute(Name="PersistableObject", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.DataAccess")] 19 [System.SerializableAttribute()] 20 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.BusinessObjects.ClientConfigDto))] 21 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.BusinessObjects.JobDto))] 22 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfoDto))] 23 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto))] 24 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.BusinessObjects.ProjectDto))] 25 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.BusinessObjects.AppointmentDto))] 26 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.BusinessObjects.ResourceDto))] 27 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.BusinessObjects.ClientDto))] 28 public partial class PersistableObject : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 29 30 [System.NonSerializedAttribute()] 31 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 32 33 [System.Runtime.Serialization.OptionalFieldAttribute()] 34 private System.Guid IdField; 35 36 [global::System.ComponentModel.BrowsableAttribute(false)] 37 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 38 get { 39 return this.extensionDataField; 40 } 41 set { 42 this.extensionDataField = value; 43 } 44 } 45 46 [System.Runtime.Serialization.DataMemberAttribute()] 47 public System.Guid Id { 48 get { 49 return this.IdField; 50 } 51 set { 52 if ((this.IdField.Equals(value) != true)) { 53 this.IdField = value; 54 this.RaisePropertyChanged("Id"); 55 } 56 } 57 } 58 59 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 60 61 protected void RaisePropertyChanged(string propertyName) { 62 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 63 if ((propertyChanged != null)) { 64 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 65 } 66 } 67 } 68 69 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 70 [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServerService.IClientFacade")] 71 public interface IClientFacade { 72 73 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")] 74 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))] 75 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))] 12 13 14 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 15 [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServerService.ISlaveFacade")] 16 public interface ISlaveFacade { 17 18 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/Login", ReplyAction="http://tempuri.org/ISlaveCommunicator/LoginResponse")] 19 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHeartBeat))] 20 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto>))] 76 21 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))] 77 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.Response Plugin))]22 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto>))] 78 23 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseCalendar))] 79 24 HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientDto clientInfo); 80 25 81 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/Login", ReplyAction="http://tempuri.org/IClientCommunicator/LoginResponse")]26 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/Login", ReplyAction="http://tempuri.org/ISlaveCommunicator/LoginResponse")] 82 27 System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientDto clientInfo, System.AsyncCallback callback, object asyncState); 83 28 84 29 HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result); 85 30 86 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]87 HeuristicLab.Hive.Contracts.ResponseH BProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData);88 89 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessHeartBeatResponse")]31 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/ISlaveCommunicator/ProcessHeartBeatResponse")] 32 HeuristicLab.Hive.Contracts.ResponseHeartBeat ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData); 33 34 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/ProcessHeartBeat", ReplyAction="http://tempuri.org/ISlaveCommunicator/ProcessHeartBeatResponse")] 90 35 System.IAsyncResult BeginProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData, System.AsyncCallback callback, object asyncState); 91 36 92 HeuristicLab.Hive.Contracts.ResponseH BEndProcessHeartBeat(System.IAsyncResult result);93 94 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]95 HeuristicLab.Hive.Contracts.Response Job SendJob(System.Guid clientId);96 97 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/SendJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendJobResponse")]98 System.IAsyncResult Begin SendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState);99 100 HeuristicLab.Hive.Contracts.Response Job EndSendJob(System.IAsyncResult result);101 102 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")]37 HeuristicLab.Hive.Contracts.ResponseHeartBeat EndProcessHeartBeat(System.IAsyncResult result); 38 39 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/GetJob", ReplyAction="http://tempuri.org/ISlaveCommunicator/GetJobResponse")] 40 HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto> GetJob(System.Guid clientId); 41 42 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/GetJob", ReplyAction="http://tempuri.org/ISlaveCommunicator/GetJobResponse")] 43 System.IAsyncResult BeginGetJob(System.Guid clientId, System.AsyncCallback callback, object asyncState); 44 45 HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto> EndGetJob(System.IAsyncResult result); 46 47 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/ISlaveCommunicator/StoreFinishedJobResultResponse")] 103 48 HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, string exception); 104 49 105 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")]50 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/ISlaveCommunicator/StoreFinishedJobResultResponse")] 106 51 System.IAsyncResult BeginStoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, string exception, System.AsyncCallback callback, object asyncState); 107 52 108 53 HeuristicLab.Hive.Contracts.ResponseResultReceived EndStoreFinishedJobResult(System.IAsyncResult result); 109 54 110 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessSnapshotResponse")]55 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/ISlaveCommunicator/ProcessSnapshotResponse")] 111 56 HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, string exception); 112 57 113 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/IClientCommunicator/ProcessSnapshotResponse")]58 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/ProcessSnapshot", ReplyAction="http://tempuri.org/ISlaveCommunicator/ProcessSnapshotResponse")] 114 59 System.IAsyncResult BeginProcessSnapshot(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, string exception, System.AsyncCallback callback, object asyncState); 115 60 116 61 HeuristicLab.Hive.Contracts.ResponseResultReceived EndProcessSnapshot(System.IAsyncResult result); 117 62 118 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]119 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseH B))]120 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.Response Job))]63 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/Logout", ReplyAction="http://tempuri.org/ISlaveCommunicator/LogoutResponse")] 64 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHeartBeat))] 65 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto>))] 121 66 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))] 122 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.Response Plugin))]67 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto>))] 123 68 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseCalendar))] 124 69 HeuristicLab.Hive.Contracts.Response Logout(System.Guid clientId); 125 70 126 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/Logout", ReplyAction="http://tempuri.org/IClientCommunicator/LogoutResponse")]71 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/Logout", ReplyAction="http://tempuri.org/ISlaveCommunicator/LogoutResponse")] 127 72 System.IAsyncResult BeginLogout(System.Guid clientId, System.AsyncCallback callback, object asyncState); 128 73 129 74 HeuristicLab.Hive.Contracts.Response EndLogout(System.IAsyncResult result); 130 75 131 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/IClientCommunicator/IsJobStillNeededResponse")]132 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseH B))]133 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.Response Job))]76 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/ISlaveCommunicator/IsJobStillNeededResponse")] 77 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHeartBeat))] 78 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto>))] 134 79 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))] 135 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.Response Plugin))]80 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto>))] 136 81 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseCalendar))] 137 82 HeuristicLab.Hive.Contracts.Response IsJobStillNeeded(System.Guid jobId); 138 83 139 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/IClientCommunicator/IsJobStillNeededResponse")]84 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/IsJobStillNeeded", ReplyAction="http://tempuri.org/ISlaveCommunicator/IsJobStillNeededResponse")] 140 85 System.IAsyncResult BeginIsJobStillNeeded(System.Guid jobId, System.AsyncCallback callback, object asyncState); 141 86 142 87 HeuristicLab.Hive.Contracts.Response EndIsJobStillNeeded(System.IAsyncResult result); 143 88 144 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/SendPlugins", ReplyAction="http://tempuri.org/IClientCommunicator/SendPluginsResponse")]145 HeuristicLab.Hive.Contracts.Response PluginSendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfoDto[] pluginList);146 147 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/SendPlugins", ReplyAction="http://tempuri.org/IClientCommunicator/SendPluginsResponse")]89 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/SendPlugins", ReplyAction="http://tempuri.org/ISlaveCommunicator/SendPluginsResponse")] 90 HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto> SendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfoDto[] pluginList); 91 92 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/SendPlugins", ReplyAction="http://tempuri.org/ISlaveCommunicator/SendPluginsResponse")] 148 93 System.IAsyncResult BeginSendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfoDto[] pluginList, System.AsyncCallback callback, object asyncState); 149 94 150 HeuristicLab.Hive.Contracts.Response PluginEndSendPlugins(System.IAsyncResult result);151 152 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/GetCalendar", ReplyAction="http://tempuri.org/IClientCommunicator/GetCalendarResponse")]95 HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto> EndSendPlugins(System.IAsyncResult result); 96 97 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/GetCalendar", ReplyAction="http://tempuri.org/ISlaveCommunicator/GetCalendarResponse")] 153 98 HeuristicLab.Hive.Contracts.ResponseCalendar GetCalendar(System.Guid clientId); 154 99 155 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/GetCalendar", ReplyAction="http://tempuri.org/IClientCommunicator/GetCalendarResponse")]100 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/GetCalendar", ReplyAction="http://tempuri.org/ISlaveCommunicator/GetCalendarResponse")] 156 101 System.IAsyncResult BeginGetCalendar(System.Guid clientId, System.AsyncCallback callback, object asyncState); 157 102 158 103 HeuristicLab.Hive.Contracts.ResponseCalendar EndGetCalendar(System.IAsyncResult result); 159 104 160 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientCommunicator/SetCalendarStatus", ReplyAction="http://tempuri.org/IClientCommunicator/SetCalendarStatusResponse")]161 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseH B))]162 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.Response Job))]105 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveCommunicator/SetCalendarStatus", ReplyAction="http://tempuri.org/ISlaveCommunicator/SetCalendarStatusResponse")] 106 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHeartBeat))] 107 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto>))] 163 108 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))] 164 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.Response Plugin))]109 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto>))] 165 110 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseCalendar))] 166 111 HeuristicLab.Hive.Contracts.Response SetCalendarStatus(System.Guid clientId, HeuristicLab.Hive.Contracts.BusinessObjects.CalendarState state); 167 112 168 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientCommunicator/SetCalendarStatus", ReplyAction="http://tempuri.org/IClientCommunicator/SetCalendarStatusResponse")]113 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveCommunicator/SetCalendarStatus", ReplyAction="http://tempuri.org/ISlaveCommunicator/SetCalendarStatusResponse")] 169 114 System.IAsyncResult BeginSetCalendarStatus(System.Guid clientId, HeuristicLab.Hive.Contracts.BusinessObjects.CalendarState state, System.AsyncCallback callback, object asyncState); 170 115 171 116 HeuristicLab.Hive.Contracts.Response EndSetCalendarStatus(System.IAsyncResult result); 172 117 173 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientFacade/SendStreamedJob", ReplyAction="http://tempuri.org/IClientFacade/SendStreamedJobResponse")]118 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveFacade/SendStreamedJob", ReplyAction="http://tempuri.org/ISlaveFacade/SendStreamedJobResponse")] 174 119 System.IO.Stream SendStreamedJob(System.Guid clientId); 175 120 176 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientFacade/SendStreamedJob", ReplyAction="http://tempuri.org/IClientFacade/SendStreamedJobResponse")]121 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveFacade/SendStreamedJob", ReplyAction="http://tempuri.org/ISlaveFacade/SendStreamedJobResponse")] 177 122 System.IAsyncResult BeginSendStreamedJob(System.Guid clientId, System.AsyncCallback callback, object asyncState); 178 123 179 124 System.IO.Stream EndSendStreamedJob(System.IAsyncResult result); 180 125 181 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientFacade/SendStreamedPlugins", ReplyAction="http://tempuri.org/IClientFacade/SendStreamedPluginsResponse")]126 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveFacade/SendStreamedPlugins", ReplyAction="http://tempuri.org/ISlaveFacade/SendStreamedPluginsResponse")] 182 127 System.IO.Stream SendStreamedPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfoDto[] pluginList); 183 128 184 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientFacade/SendStreamedPlugins", ReplyAction="http://tempuri.org/IClientFacade/SendStreamedPluginsResponse")]129 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveFacade/SendStreamedPlugins", ReplyAction="http://tempuri.org/ISlaveFacade/SendStreamedPluginsResponse")] 185 130 System.IAsyncResult BeginSendStreamedPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfoDto[] pluginList, System.AsyncCallback callback, object asyncState); 186 131 187 132 System.IO.Stream EndSendStreamedPlugins(System.IAsyncResult result); 188 133 189 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientFacade/StoreFinishedJobResultStreamed", ReplyAction="http://tempuri.org/IClientFacade/StoreFinishedJobResultStreamedResponse")]134 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveFacade/StoreFinishedJobResultStreamed", ReplyAction="http://tempuri.org/ISlaveFacade/StoreFinishedJobResultStreamedResponse")] 190 135 HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResultStreamed(System.IO.Stream stream); 191 136 192 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientFacade/StoreFinishedJobResultStreamed", ReplyAction="http://tempuri.org/IClientFacade/StoreFinishedJobResultStreamedResponse")]137 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveFacade/StoreFinishedJobResultStreamed", ReplyAction="http://tempuri.org/ISlaveFacade/StoreFinishedJobResultStreamedResponse")] 193 138 System.IAsyncResult BeginStoreFinishedJobResultStreamed(System.IO.Stream stream, System.AsyncCallback callback, object asyncState); 194 139 195 140 HeuristicLab.Hive.Contracts.ResponseResultReceived EndStoreFinishedJobResultStreamed(System.IAsyncResult result); 196 141 197 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/I ClientFacade/ProcessSnapshotStreamed", ReplyAction="http://tempuri.org/IClientFacade/ProcessSnapshotStreamedResponse")]142 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveFacade/ProcessSnapshotStreamed", ReplyAction="http://tempuri.org/ISlaveFacade/ProcessSnapshotStreamedResponse")] 198 143 HeuristicLab.Hive.Contracts.ResponseResultReceived ProcessSnapshotStreamed(System.IO.Stream stream); 199 144 200 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/I ClientFacade/ProcessSnapshotStreamed", ReplyAction="http://tempuri.org/IClientFacade/ProcessSnapshotStreamedResponse")]145 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveFacade/ProcessSnapshotStreamed", ReplyAction="http://tempuri.org/ISlaveFacade/ProcessSnapshotStreamedResponse")] 201 146 System.IAsyncResult BeginProcessSnapshotStreamed(System.IO.Stream stream, System.AsyncCallback callback, object asyncState); 202 147 … … 205 150 206 151 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 207 public interface I ClientFacadeChannel : HeuristicLab.Hive.Slave.Communication.ServerService.IClientFacade, System.ServiceModel.IClientChannel {152 public interface ISlaveFacadeChannel : HeuristicLab.Hive.Slave.Communication.ServerService.ISlaveFacade, System.ServiceModel.IClientChannel { 208 153 } 209 154 … … 238 183 } 239 184 240 public HeuristicLab.Hive.Contracts.ResponseH BResult {241 get { 242 base.RaiseExceptionIfNecessary(); 243 return ((HeuristicLab.Hive.Contracts.ResponseH B)(this.results[0]));244 } 245 } 246 } 247 248 [System.Diagnostics.DebuggerStepThroughAttribute()] 249 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 250 public partial class SendJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {251 252 private object[] results; 253 254 public SendJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :255 base(exception, cancelled, userState) { 256 this.results = results; 257 } 258 259 public HeuristicLab.Hive.Contracts.Response JobResult {260 get { 261 base.RaiseExceptionIfNecessary(); 262 return ((HeuristicLab.Hive.Contracts.Response Job)(this.results[0]));185 public HeuristicLab.Hive.Contracts.ResponseHeartBeat Result { 186 get { 187 base.RaiseExceptionIfNecessary(); 188 return ((HeuristicLab.Hive.Contracts.ResponseHeartBeat)(this.results[0])); 189 } 190 } 191 } 192 193 [System.Diagnostics.DebuggerStepThroughAttribute()] 194 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 195 public partial class GetJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 196 197 private object[] results; 198 199 public GetJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 200 base(exception, cancelled, userState) { 201 this.results = results; 202 } 203 204 public HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto> Result { 205 get { 206 base.RaiseExceptionIfNecessary(); 207 return ((HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto>)(this.results[0])); 263 208 } 264 209 } … … 352 297 } 353 298 354 public HeuristicLab.Hive.Contracts.Response PluginResult {355 get { 356 base.RaiseExceptionIfNecessary(); 357 return ((HeuristicLab.Hive.Contracts.Response Plugin)(this.results[0]));299 public HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto> Result { 300 get { 301 base.RaiseExceptionIfNecessary(); 302 return ((HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto>)(this.results[0])); 358 303 } 359 304 } … … 476 421 [System.Diagnostics.DebuggerStepThroughAttribute()] 477 422 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 478 public partial class ClientFacadeClient : System.ServiceModel.ClientBase<HeuristicLab.Hive.Slave.Communication.ServerService.IClientFacade>, HeuristicLab.Hive.Slave.Communication.ServerService.IClientFacade {423 public partial class SlaveFacadeClient : System.ServiceModel.ClientBase<HeuristicLab.Hive.Slave.Communication.ServerService.ISlaveFacade>, HeuristicLab.Hive.Slave.Communication.ServerService.ISlaveFacade { 479 424 480 425 private BeginOperationDelegate onBeginLoginDelegate; … … 490 435 private System.Threading.SendOrPostCallback onProcessHeartBeatCompletedDelegate; 491 436 492 private BeginOperationDelegate onBegin SendJobDelegate;493 494 private EndOperationDelegate onEnd SendJobDelegate;495 496 private System.Threading.SendOrPostCallback on SendJobCompletedDelegate;437 private BeginOperationDelegate onBeginGetJobDelegate; 438 439 private EndOperationDelegate onEndGetJobDelegate; 440 441 private System.Threading.SendOrPostCallback onGetJobCompletedDelegate; 497 442 498 443 private BeginOperationDelegate onBeginStoreFinishedJobResultDelegate; … … 562 507 private System.Threading.SendOrPostCallback onProcessSnapshotStreamedCompletedDelegate; 563 508 564 public ClientFacadeClient() {565 } 566 567 public ClientFacadeClient(string endpointConfigurationName) :509 public SlaveFacadeClient() { 510 } 511 512 public SlaveFacadeClient(string endpointConfigurationName) : 568 513 base(endpointConfigurationName) { 569 514 } 570 515 571 public ClientFacadeClient(string endpointConfigurationName, string remoteAddress) :516 public SlaveFacadeClient(string endpointConfigurationName, string remoteAddress) : 572 517 base(endpointConfigurationName, remoteAddress) { 573 518 } 574 519 575 public ClientFacadeClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :520 public SlaveFacadeClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 576 521 base(endpointConfigurationName, remoteAddress) { 577 522 } 578 523 579 public ClientFacadeClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :524 public SlaveFacadeClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 580 525 base(binding, remoteAddress) { 581 526 } … … 585 530 public event System.EventHandler<ProcessHeartBeatCompletedEventArgs> ProcessHeartBeatCompleted; 586 531 587 public event System.EventHandler< SendJobCompletedEventArgs> SendJobCompleted;532 public event System.EventHandler<GetJobCompletedEventArgs> GetJobCompleted; 588 533 589 534 public event System.EventHandler<StoreFinishedJobResultCompletedEventArgs> StoreFinishedJobResultCompleted; … … 659 604 } 660 605 661 public HeuristicLab.Hive.Contracts.ResponseH BProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {606 public HeuristicLab.Hive.Contracts.ResponseHeartBeat ProcessHeartBeat(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) { 662 607 return base.Channel.ProcessHeartBeat(hbData); 663 608 } … … 669 614 670 615 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 671 public HeuristicLab.Hive.Contracts.ResponseH BEndProcessHeartBeat(System.IAsyncResult result) {616 public HeuristicLab.Hive.Contracts.ResponseHeartBeat EndProcessHeartBeat(System.IAsyncResult result) { 672 617 return base.Channel.EndProcessHeartBeat(result); 673 618 } … … 679 624 680 625 private object[] OnEndProcessHeartBeat(System.IAsyncResult result) { 681 HeuristicLab.Hive.Contracts.ResponseH BretVal = this.EndProcessHeartBeat(result);626 HeuristicLab.Hive.Contracts.ResponseHeartBeat retVal = this.EndProcessHeartBeat(result); 682 627 return new object[] { 683 628 retVal}; … … 709 654 } 710 655 711 public HeuristicLab.Hive.Contracts.Response Job SendJob(System.Guid clientId) {712 return base.Channel. SendJob(clientId);713 } 714 715 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 716 public System.IAsyncResult Begin SendJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) {717 return base.Channel.Begin SendJob(clientId, callback, asyncState);718 } 719 720 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 721 public HeuristicLab.Hive.Contracts.Response Job EndSendJob(System.IAsyncResult result) {722 return base.Channel.End SendJob(result);723 } 724 725 private System.IAsyncResult OnBegin SendJob(object[] inValues, System.AsyncCallback callback, object asyncState) {656 public HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto> GetJob(System.Guid clientId) { 657 return base.Channel.GetJob(clientId); 658 } 659 660 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 661 public System.IAsyncResult BeginGetJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) { 662 return base.Channel.BeginGetJob(clientId, callback, asyncState); 663 } 664 665 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 666 public HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto> EndGetJob(System.IAsyncResult result) { 667 return base.Channel.EndGetJob(result); 668 } 669 670 private System.IAsyncResult OnBeginGetJob(object[] inValues, System.AsyncCallback callback, object asyncState) { 726 671 System.Guid clientId = ((System.Guid)(inValues[0])); 727 return this.Begin SendJob(clientId, callback, asyncState);728 } 729 730 private object[] OnEnd SendJob(System.IAsyncResult result) {731 HeuristicLab.Hive.Contracts.Response Job retVal = this.EndSendJob(result);732 return new object[] { 733 retVal}; 734 } 735 736 private void On SendJobCompleted(object state) {737 if ((this. SendJobCompleted != null)) {738 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 739 this. SendJobCompleted(this, new SendJobCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));740 } 741 } 742 743 public void SendJobAsync(System.Guid clientId) {744 this. SendJobAsync(clientId, null);745 } 746 747 public void SendJobAsync(System.Guid clientId, object userState) {748 if ((this.onBegin SendJobDelegate == null)) {749 this.onBegin SendJobDelegate = new BeginOperationDelegate(this.OnBeginSendJob);750 } 751 if ((this.onEnd SendJobDelegate == null)) {752 this.onEnd SendJobDelegate = new EndOperationDelegate(this.OnEndSendJob);753 } 754 if ((this.on SendJobCompletedDelegate == null)) {755 this.on SendJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendJobCompleted);756 } 757 base.InvokeAsync(this.onBegin SendJobDelegate, new object[] {758 clientId}, this.onEnd SendJobDelegate, this.onSendJobCompletedDelegate, userState);672 return this.BeginGetJob(clientId, callback, asyncState); 673 } 674 675 private object[] OnEndGetJob(System.IAsyncResult result) { 676 HeuristicLab.Hive.Contracts.ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto> retVal = this.EndGetJob(result); 677 return new object[] { 678 retVal}; 679 } 680 681 private void OnGetJobCompleted(object state) { 682 if ((this.GetJobCompleted != null)) { 683 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 684 this.GetJobCompleted(this, new GetJobCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); 685 } 686 } 687 688 public void GetJobAsync(System.Guid clientId) { 689 this.GetJobAsync(clientId, null); 690 } 691 692 public void GetJobAsync(System.Guid clientId, object userState) { 693 if ((this.onBeginGetJobDelegate == null)) { 694 this.onBeginGetJobDelegate = new BeginOperationDelegate(this.OnBeginGetJob); 695 } 696 if ((this.onEndGetJobDelegate == null)) { 697 this.onEndGetJobDelegate = new EndOperationDelegate(this.OnEndGetJob); 698 } 699 if ((this.onGetJobCompletedDelegate == null)) { 700 this.onGetJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetJobCompleted); 701 } 702 base.InvokeAsync(this.onBeginGetJobDelegate, new object[] { 703 clientId}, this.onEndGetJobDelegate, this.onGetJobCompletedDelegate, userState); 759 704 } 760 705 … … 975 920 } 976 921 977 public HeuristicLab.Hive.Contracts.Response PluginSendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfoDto[] pluginList) {922 public HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto> SendPlugins(HeuristicLab.Hive.Contracts.BusinessObjects.HivePluginInfoDto[] pluginList) { 978 923 return base.Channel.SendPlugins(pluginList); 979 924 } … … 985 930 986 931 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 987 public HeuristicLab.Hive.Contracts.Response PluginEndSendPlugins(System.IAsyncResult result) {932 public HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto> EndSendPlugins(System.IAsyncResult result) { 988 933 return base.Channel.EndSendPlugins(result); 989 934 } … … 995 940 996 941 private object[] OnEndSendPlugins(System.IAsyncResult result) { 997 HeuristicLab.Hive.Contracts.Response PluginretVal = this.EndSendPlugins(result);942 HeuristicLab.Hive.Contracts.ResponseList<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto> retVal = this.EndSendPlugins(result); 998 943 return new object[] { 999 944 retVal}; -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/ServerService/Reference.svcmap
r4107 r4254 19 19 </ClientOptions> 20 20 <MetadataSources> 21 <MetadataSource Address="net.tcp://10.42.1.15 3:9000/HiveServer/mex" Protocol="mex" SourceId="1" />21 <MetadataSource Address="net.tcp://10.42.1.154:9000/HiveServer/mex" Protocol="mex" SourceId="1" /> 22 22 </MetadataSources> 23 23 <Metadata> 24 <MetadataFile FileName="service1.wsdl" MetadataType="Wsdl" ID="0 3ab6bc6-4c88-4e1f-8d59-3f52f2942db4" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />25 <MetadataFile FileName="service2.xsd" MetadataType="Schema" ID=" 51e801d0-81c2-4b13-b430-c177265c3333" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />26 <MetadataFile FileName="service3.xsd" MetadataType="Schema" ID=" e8e86f83-8c65-4364-a203-c7b20d29ac40" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />27 <MetadataFile FileName="HeuristicLab.Hive.Contracts.BusinessObjects1.xsd" MetadataType="Schema" ID=" 249326e6-36f3-421b-927e-ca9b7bedfdb5" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />28 <MetadataFile FileName="HeuristicLab.DataAccess1.xsd" MetadataType="Schema" ID="5 e0b464e-8324-4e2e-bbed-da3c79943457" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />29 <MetadataFile FileName="HeuristicLab.Hive.Contracts1.xsd" MetadataType="Schema" ID=" 0e2228b1-c9aa-4a6c-99ef-dbdcf6c563d9" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />30 <MetadataFile FileName="Arrays1.xsd" MetadataType="Schema" ID=" 0537e276-0286-4f2d-a565-616bf77a9e75" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />31 <MetadataFile FileName="System1.xsd" MetadataType="Schema" ID=" 27a70b20-97c3-47b5-a35c-767183544bc7" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />32 <MetadataFile FileName="HeuristicLab.PluginInfrastructure2.xsd" MetadataType="Schema" ID=" af9a77d2-d649-4bb6-bf18-f1b3ba4d594a" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />33 <MetadataFile FileName="Message1.xsd" MetadataType="Schema" ID=" e9066a85-9edd-4f73-a792-4b932bdb9e59" SourceId="1" SourceUrl="net.tcp://10.42.1.153:9000/HiveServer/mex" />24 <MetadataFile FileName="service1.wsdl" MetadataType="Wsdl" ID="0162f5cd-4ce4-4063-b440-7f660342c1b4" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 25 <MetadataFile FileName="service2.xsd" MetadataType="Schema" ID="38b7fb46-f017-4fd9-90a3-4dd56030d327" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 26 <MetadataFile FileName="service3.xsd" MetadataType="Schema" ID="6eda0295-9645-4116-9a1a-12ad7571f78e" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 27 <MetadataFile FileName="HeuristicLab.Hive.Contracts.BusinessObjects1.xsd" MetadataType="Schema" ID="abb70224-775d-4edc-986c-20eede5dbe04" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 28 <MetadataFile FileName="HeuristicLab.DataAccess1.xsd" MetadataType="Schema" ID="55cbe34c-d0be-42ef-989a-a97018741832" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 29 <MetadataFile FileName="HeuristicLab.Hive.Contracts1.xsd" MetadataType="Schema" ID="d4834dd8-d9fe-4ce9-b5e9-dd9fe5451fbe" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 30 <MetadataFile FileName="Arrays1.xsd" MetadataType="Schema" ID="7f60dd4e-614e-4b85-a4e7-a4caac529103" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 31 <MetadataFile FileName="System1.xsd" MetadataType="Schema" ID="9bdcdb6f-8162-4554-84af-95dd11d14f5e" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 32 <MetadataFile FileName="HeuristicLab.PluginInfrastructure2.xsd" MetadataType="Schema" ID="df9afdc0-162d-4bae-93e1-31ab835940f9" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 33 <MetadataFile FileName="Message1.xsd" MetadataType="Schema" ID="332a2050-4e50-46c6-8b55-0e53a2dfe882" SourceId="1" SourceUrl="net.tcp://10.42.1.154:9000/HiveServer/mex" /> 34 34 </Metadata> 35 35 <Extensions> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/ServerService/configuration.svcinfo
r4107 r4254 3 3 <behaviors /> 4 4 <bindings> 5 <binding digest="System.ServiceModel.Configuration.NetTcpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferSize="65536" maxConnections="10" name="NetTcpBinding_I ClientFacade" transactionFlow="false" transactionProtocol="OleTransactions" transferMode="Streamed"><readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192" /><reliableSession enabled="false" inactivityTimeout="00:10:00" ordered="true" /><security mode="None"><message clientCredentialType="Windows" /><transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /></security></Data>" bindingType="netTcpBinding" name="NetTcpBinding_IClientFacade" />5 <binding digest="System.ServiceModel.Configuration.NetTcpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferSize="65536" maxConnections="10" name="NetTcpBinding_ISlaveFacade" transactionFlow="false" transactionProtocol="OleTransactions" transferMode="Streamed"><readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192" /><reliableSession enabled="false" inactivityTimeout="00:10:00" ordered="true" /><security mode="None"><message clientCredentialType="Windows" /><transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /></security></Data>" bindingType="netTcpBinding" name="NetTcpBinding_ISlaveFacade" /> 6 6 </bindings> 7 7 <endpoints> 8 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://10.42.1.15 3:9000/HiveServer/ClientCommunicator" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IClientFacade" contract="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://10.42.1.153:9000/HiveServer/ClientCommunicator" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IClientFacade" contract="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade" />" contractName="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade" />8 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://10.42.1.154:9000/HiveServer/ClientCommunicator" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ISlaveFacade" contract="ServerService.ISlaveFacade" name="NetTcpBinding_ISlaveFacade" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://10.42.1.154:9000/HiveServer/ClientCommunicator" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ISlaveFacade" contract="ServerService.ISlaveFacade" name="NetTcpBinding_ISlaveFacade" />" contractName="ServerService.ISlaveFacade" name="NetTcpBinding_ISlaveFacade" /> 9 9 </endpoints> 10 10 </configurationSnapshot> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/ServerService/configuration91.svcinfo
r4107 r4254 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum=" 8ELBmhFDdKazse0ChCu2fhV6nYM=">2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="q2x/4cQUEACPUg4K+/rZlk1YeAs="> 3 3 <bindingConfigurations> 4 <bindingConfiguration bindingType="netTcpBinding" name="NetTcpBinding_I ClientFacade">4 <bindingConfiguration bindingType="netTcpBinding" name="NetTcpBinding_ISlaveFacade"> 5 5 <properties> 6 6 <property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 7 <serializedValue>NetTcpBinding_I ClientFacade</serializedValue>7 <serializedValue>NetTcpBinding_ISlaveFacade</serializedValue> 8 8 </property> 9 9 <property path="/closeTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> … … 119 119 </bindingConfigurations> 120 120 <endpoints> 121 <endpoint name="NetTcpBinding_I ClientFacade" contract="ServerService.IClientFacade" bindingType="netTcpBinding" address="net.tcp://10.42.1.153:9000/HiveServer/ClientCommunicator" bindingConfiguration="NetTcpBinding_IClientFacade">121 <endpoint name="NetTcpBinding_ISlaveFacade" contract="ServerService.ISlaveFacade" bindingType="netTcpBinding" address="net.tcp://10.42.1.154:9000/HiveServer/ClientCommunicator" bindingConfiguration="NetTcpBinding_ISlaveFacade"> 122 122 <properties> 123 123 <property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 124 <serializedValue>net.tcp://10.42.1.15 3:9000/HiveServer/ClientCommunicator</serializedValue>124 <serializedValue>net.tcp://10.42.1.154:9000/HiveServer/ClientCommunicator</serializedValue> 125 125 </property> 126 126 <property path="/behaviorConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> … … 131 131 </property> 132 132 <property path="/bindingConfiguration" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 133 <serializedValue>NetTcpBinding_I ClientFacade</serializedValue>133 <serializedValue>NetTcpBinding_ISlaveFacade</serializedValue> 134 134 </property> 135 135 <property path="/contract" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 136 <serializedValue>ServerService.I ClientFacade</serializedValue>136 <serializedValue>ServerService.ISlaveFacade</serializedValue> 137 137 </property> 138 138 <property path="/headers" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.AddressHeaderCollectionElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> … … 194 194 </property> 195 195 <property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 196 <serializedValue>NetTcpBinding_I ClientFacade</serializedValue>196 <serializedValue>NetTcpBinding_ISlaveFacade</serializedValue> 197 197 </property> 198 198 <property path="/kind" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/ServerService/service1.wsdl
r4107 r4254 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name=" ClientFacade" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">3 <wsp:Policy wsu:Id="NetTcpBinding_I ClientFacade_policy">2 <wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SlaveFacade" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> 3 <wsp:Policy wsu:Id="NetTcpBinding_ISlaveFacade_policy"> 4 4 <wsp:ExactlyOne> 5 5 <wsp:All> … … 26 26 </xsd:schema> 27 27 </wsdl:types> 28 <wsdl:message name="I ClientFacade_Login_InputMessage">28 <wsdl:message name="ISlaveFacade_Login_InputMessage"> 29 29 <wsdl:part name="parameters" element="tns:Login" /> 30 30 </wsdl:message> 31 <wsdl:message name="I ClientFacade_Login_OutputMessage">31 <wsdl:message name="ISlaveFacade_Login_OutputMessage"> 32 32 <wsdl:part name="parameters" element="tns:LoginResponse" /> 33 33 </wsdl:message> 34 <wsdl:message name="I ClientFacade_ProcessHeartBeat_InputMessage">34 <wsdl:message name="ISlaveFacade_ProcessHeartBeat_InputMessage"> 35 35 <wsdl:part name="parameters" element="tns:ProcessHeartBeat" /> 36 36 </wsdl:message> 37 <wsdl:message name="I ClientFacade_ProcessHeartBeat_OutputMessage">37 <wsdl:message name="ISlaveFacade_ProcessHeartBeat_OutputMessage"> 38 38 <wsdl:part name="parameters" element="tns:ProcessHeartBeatResponse" /> 39 39 </wsdl:message> 40 <wsdl:message name="I ClientFacade_SendJob_InputMessage">41 <wsdl:part name="parameters" element="tns: SendJob" />42 </wsdl:message> 43 <wsdl:message name="I ClientFacade_SendJob_OutputMessage">44 <wsdl:part name="parameters" element="tns: SendJobResponse" />45 </wsdl:message> 46 <wsdl:message name="I ClientFacade_StoreFinishedJobResult_InputMessage">40 <wsdl:message name="ISlaveFacade_GetJob_InputMessage"> 41 <wsdl:part name="parameters" element="tns:GetJob" /> 42 </wsdl:message> 43 <wsdl:message name="ISlaveFacade_GetJob_OutputMessage"> 44 <wsdl:part name="parameters" element="tns:GetJobResponse" /> 45 </wsdl:message> 46 <wsdl:message name="ISlaveFacade_StoreFinishedJobResult_InputMessage"> 47 47 <wsdl:part name="parameters" element="tns:StoreFinishedJobResult" /> 48 48 </wsdl:message> 49 <wsdl:message name="I ClientFacade_StoreFinishedJobResult_OutputMessage">49 <wsdl:message name="ISlaveFacade_StoreFinishedJobResult_OutputMessage"> 50 50 <wsdl:part name="parameters" element="tns:StoreFinishedJobResultResponse" /> 51 51 </wsdl:message> 52 <wsdl:message name="I ClientFacade_ProcessSnapshot_InputMessage">52 <wsdl:message name="ISlaveFacade_ProcessSnapshot_InputMessage"> 53 53 <wsdl:part name="parameters" element="tns:ProcessSnapshot" /> 54 54 </wsdl:message> 55 <wsdl:message name="I ClientFacade_ProcessSnapshot_OutputMessage">55 <wsdl:message name="ISlaveFacade_ProcessSnapshot_OutputMessage"> 56 56 <wsdl:part name="parameters" element="tns:ProcessSnapshotResponse" /> 57 57 </wsdl:message> 58 <wsdl:message name="I ClientFacade_Logout_InputMessage">58 <wsdl:message name="ISlaveFacade_Logout_InputMessage"> 59 59 <wsdl:part name="parameters" element="tns:Logout" /> 60 60 </wsdl:message> 61 <wsdl:message name="I ClientFacade_Logout_OutputMessage">61 <wsdl:message name="ISlaveFacade_Logout_OutputMessage"> 62 62 <wsdl:part name="parameters" element="tns:LogoutResponse" /> 63 63 </wsdl:message> 64 <wsdl:message name="I ClientFacade_IsJobStillNeeded_InputMessage">64 <wsdl:message name="ISlaveFacade_IsJobStillNeeded_InputMessage"> 65 65 <wsdl:part name="parameters" element="tns:IsJobStillNeeded" /> 66 66 </wsdl:message> 67 <wsdl:message name="I ClientFacade_IsJobStillNeeded_OutputMessage">67 <wsdl:message name="ISlaveFacade_IsJobStillNeeded_OutputMessage"> 68 68 <wsdl:part name="parameters" element="tns:IsJobStillNeededResponse" /> 69 69 </wsdl:message> 70 <wsdl:message name="I ClientFacade_SendPlugins_InputMessage">70 <wsdl:message name="ISlaveFacade_SendPlugins_InputMessage"> 71 71 <wsdl:part name="parameters" element="tns:SendPlugins" /> 72 72 </wsdl:message> 73 <wsdl:message name="I ClientFacade_SendPlugins_OutputMessage">73 <wsdl:message name="ISlaveFacade_SendPlugins_OutputMessage"> 74 74 <wsdl:part name="parameters" element="tns:SendPluginsResponse" /> 75 75 </wsdl:message> 76 <wsdl:message name="I ClientFacade_GetCalendar_InputMessage">76 <wsdl:message name="ISlaveFacade_GetCalendar_InputMessage"> 77 77 <wsdl:part name="parameters" element="tns:GetCalendar" /> 78 78 </wsdl:message> 79 <wsdl:message name="I ClientFacade_GetCalendar_OutputMessage">79 <wsdl:message name="ISlaveFacade_GetCalendar_OutputMessage"> 80 80 <wsdl:part name="parameters" element="tns:GetCalendarResponse" /> 81 81 </wsdl:message> 82 <wsdl:message name="I ClientFacade_SetCalendarStatus_InputMessage">82 <wsdl:message name="ISlaveFacade_SetCalendarStatus_InputMessage"> 83 83 <wsdl:part name="parameters" element="tns:SetCalendarStatus" /> 84 84 </wsdl:message> 85 <wsdl:message name="I ClientFacade_SetCalendarStatus_OutputMessage">85 <wsdl:message name="ISlaveFacade_SetCalendarStatus_OutputMessage"> 86 86 <wsdl:part name="parameters" element="tns:SetCalendarStatusResponse" /> 87 87 </wsdl:message> 88 <wsdl:message name="I ClientFacade_SendStreamedJob_InputMessage">88 <wsdl:message name="ISlaveFacade_SendStreamedJob_InputMessage"> 89 89 <wsdl:part name="parameters" element="tns:SendStreamedJob" /> 90 90 </wsdl:message> 91 <wsdl:message name="I ClientFacade_SendStreamedJob_OutputMessage">91 <wsdl:message name="ISlaveFacade_SendStreamedJob_OutputMessage"> 92 92 <wsdl:part name="parameters" element="tns:SendStreamedJobResponse" /> 93 93 </wsdl:message> 94 <wsdl:message name="I ClientFacade_SendStreamedPlugins_InputMessage">94 <wsdl:message name="ISlaveFacade_SendStreamedPlugins_InputMessage"> 95 95 <wsdl:part name="parameters" element="tns:SendStreamedPlugins" /> 96 96 </wsdl:message> 97 <wsdl:message name="I ClientFacade_SendStreamedPlugins_OutputMessage">97 <wsdl:message name="ISlaveFacade_SendStreamedPlugins_OutputMessage"> 98 98 <wsdl:part name="parameters" element="tns:SendStreamedPluginsResponse" /> 99 99 </wsdl:message> 100 <wsdl:message name="I ClientFacade_StoreFinishedJobResultStreamed_InputMessage">100 <wsdl:message name="ISlaveFacade_StoreFinishedJobResultStreamed_InputMessage"> 101 101 <wsdl:part name="parameters" element="tns:StoreFinishedJobResultStreamed" /> 102 102 </wsdl:message> 103 <wsdl:message name="I ClientFacade_StoreFinishedJobResultStreamed_OutputMessage">103 <wsdl:message name="ISlaveFacade_StoreFinishedJobResultStreamed_OutputMessage"> 104 104 <wsdl:part name="parameters" element="tns:StoreFinishedJobResultStreamedResponse" /> 105 105 </wsdl:message> 106 <wsdl:message name="I ClientFacade_ProcessSnapshotStreamed_InputMessage">106 <wsdl:message name="ISlaveFacade_ProcessSnapshotStreamed_InputMessage"> 107 107 <wsdl:part name="parameters" element="tns:ProcessSnapshotStreamed" /> 108 108 </wsdl:message> 109 <wsdl:message name="I ClientFacade_ProcessSnapshotStreamed_OutputMessage">109 <wsdl:message name="ISlaveFacade_ProcessSnapshotStreamed_OutputMessage"> 110 110 <wsdl:part name="parameters" element="tns:ProcessSnapshotStreamedResponse" /> 111 111 </wsdl:message> 112 <wsdl:portType name="I ClientFacade">112 <wsdl:portType name="ISlaveFacade"> 113 113 <wsdl:operation name="Login"> 114 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/Login" message="tns:IClientFacade_Login_InputMessage" />115 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/LoginResponse" message="tns:IClientFacade_Login_OutputMessage" />114 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/Login" message="tns:ISlaveFacade_Login_InputMessage" /> 115 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/LoginResponse" message="tns:ISlaveFacade_Login_OutputMessage" /> 116 116 </wsdl:operation> 117 117 <wsdl:operation name="ProcessHeartBeat"> 118 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/ProcessHeartBeat" message="tns:IClientFacade_ProcessHeartBeat_InputMessage" />119 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/ProcessHeartBeatResponse" message="tns:IClientFacade_ProcessHeartBeat_OutputMessage" />120 </wsdl:operation> 121 <wsdl:operation name=" SendJob">122 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/SendJob" message="tns:IClientFacade_SendJob_InputMessage" />123 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/SendJobResponse" message="tns:IClientFacade_SendJob_OutputMessage" />118 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/ProcessHeartBeat" message="tns:ISlaveFacade_ProcessHeartBeat_InputMessage" /> 119 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/ProcessHeartBeatResponse" message="tns:ISlaveFacade_ProcessHeartBeat_OutputMessage" /> 120 </wsdl:operation> 121 <wsdl:operation name="GetJob"> 122 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/GetJob" message="tns:ISlaveFacade_GetJob_InputMessage" /> 123 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/GetJobResponse" message="tns:ISlaveFacade_GetJob_OutputMessage" /> 124 124 </wsdl:operation> 125 125 <wsdl:operation name="StoreFinishedJobResult"> 126 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/StoreFinishedJobResult" message="tns:IClientFacade_StoreFinishedJobResult_InputMessage" />127 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/StoreFinishedJobResultResponse" message="tns:IClientFacade_StoreFinishedJobResult_OutputMessage" />126 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/StoreFinishedJobResult" message="tns:ISlaveFacade_StoreFinishedJobResult_InputMessage" /> 127 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/StoreFinishedJobResultResponse" message="tns:ISlaveFacade_StoreFinishedJobResult_OutputMessage" /> 128 128 </wsdl:operation> 129 129 <wsdl:operation name="ProcessSnapshot"> 130 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/ProcessSnapshot" message="tns:IClientFacade_ProcessSnapshot_InputMessage" />131 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/ProcessSnapshotResponse" message="tns:IClientFacade_ProcessSnapshot_OutputMessage" />130 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/ProcessSnapshot" message="tns:ISlaveFacade_ProcessSnapshot_InputMessage" /> 131 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/ProcessSnapshotResponse" message="tns:ISlaveFacade_ProcessSnapshot_OutputMessage" /> 132 132 </wsdl:operation> 133 133 <wsdl:operation name="Logout"> 134 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/Logout" message="tns:IClientFacade_Logout_InputMessage" />135 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/LogoutResponse" message="tns:IClientFacade_Logout_OutputMessage" />134 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/Logout" message="tns:ISlaveFacade_Logout_InputMessage" /> 135 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/LogoutResponse" message="tns:ISlaveFacade_Logout_OutputMessage" /> 136 136 </wsdl:operation> 137 137 <wsdl:operation name="IsJobStillNeeded"> 138 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/IsJobStillNeeded" message="tns:IClientFacade_IsJobStillNeeded_InputMessage" />139 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/IsJobStillNeededResponse" message="tns:IClientFacade_IsJobStillNeeded_OutputMessage" />138 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/IsJobStillNeeded" message="tns:ISlaveFacade_IsJobStillNeeded_InputMessage" /> 139 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/IsJobStillNeededResponse" message="tns:ISlaveFacade_IsJobStillNeeded_OutputMessage" /> 140 140 </wsdl:operation> 141 141 <wsdl:operation name="SendPlugins"> 142 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/SendPlugins" message="tns:IClientFacade_SendPlugins_InputMessage" />143 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/SendPluginsResponse" message="tns:IClientFacade_SendPlugins_OutputMessage" />142 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/SendPlugins" message="tns:ISlaveFacade_SendPlugins_InputMessage" /> 143 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/SendPluginsResponse" message="tns:ISlaveFacade_SendPlugins_OutputMessage" /> 144 144 </wsdl:operation> 145 145 <wsdl:operation name="GetCalendar"> 146 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/GetCalendar" message="tns:IClientFacade_GetCalendar_InputMessage" />147 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/GetCalendarResponse" message="tns:IClientFacade_GetCalendar_OutputMessage" />146 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/GetCalendar" message="tns:ISlaveFacade_GetCalendar_InputMessage" /> 147 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/GetCalendarResponse" message="tns:ISlaveFacade_GetCalendar_OutputMessage" /> 148 148 </wsdl:operation> 149 149 <wsdl:operation name="SetCalendarStatus"> 150 <wsdl:input wsaw:Action="http://tempuri.org/I ClientCommunicator/SetCalendarStatus" message="tns:IClientFacade_SetCalendarStatus_InputMessage" />151 <wsdl:output wsaw:Action="http://tempuri.org/I ClientCommunicator/SetCalendarStatusResponse" message="tns:IClientFacade_SetCalendarStatus_OutputMessage" />150 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveCommunicator/SetCalendarStatus" message="tns:ISlaveFacade_SetCalendarStatus_InputMessage" /> 151 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveCommunicator/SetCalendarStatusResponse" message="tns:ISlaveFacade_SetCalendarStatus_OutputMessage" /> 152 152 </wsdl:operation> 153 153 <wsdl:operation name="SendStreamedJob"> 154 <wsdl:input wsaw:Action="http://tempuri.org/I ClientFacade/SendStreamedJob" message="tns:IClientFacade_SendStreamedJob_InputMessage" />155 <wsdl:output wsaw:Action="http://tempuri.org/I ClientFacade/SendStreamedJobResponse" message="tns:IClientFacade_SendStreamedJob_OutputMessage" />154 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveFacade/SendStreamedJob" message="tns:ISlaveFacade_SendStreamedJob_InputMessage" /> 155 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveFacade/SendStreamedJobResponse" message="tns:ISlaveFacade_SendStreamedJob_OutputMessage" /> 156 156 </wsdl:operation> 157 157 <wsdl:operation name="SendStreamedPlugins"> 158 <wsdl:input wsaw:Action="http://tempuri.org/I ClientFacade/SendStreamedPlugins" message="tns:IClientFacade_SendStreamedPlugins_InputMessage" />159 <wsdl:output wsaw:Action="http://tempuri.org/I ClientFacade/SendStreamedPluginsResponse" message="tns:IClientFacade_SendStreamedPlugins_OutputMessage" />158 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveFacade/SendStreamedPlugins" message="tns:ISlaveFacade_SendStreamedPlugins_InputMessage" /> 159 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveFacade/SendStreamedPluginsResponse" message="tns:ISlaveFacade_SendStreamedPlugins_OutputMessage" /> 160 160 </wsdl:operation> 161 161 <wsdl:operation name="StoreFinishedJobResultStreamed"> 162 <wsdl:input wsaw:Action="http://tempuri.org/I ClientFacade/StoreFinishedJobResultStreamed" message="tns:IClientFacade_StoreFinishedJobResultStreamed_InputMessage" />163 <wsdl:output wsaw:Action="http://tempuri.org/I ClientFacade/StoreFinishedJobResultStreamedResponse" message="tns:IClientFacade_StoreFinishedJobResultStreamed_OutputMessage" />162 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveFacade/StoreFinishedJobResultStreamed" message="tns:ISlaveFacade_StoreFinishedJobResultStreamed_InputMessage" /> 163 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveFacade/StoreFinishedJobResultStreamedResponse" message="tns:ISlaveFacade_StoreFinishedJobResultStreamed_OutputMessage" /> 164 164 </wsdl:operation> 165 165 <wsdl:operation name="ProcessSnapshotStreamed"> 166 <wsdl:input wsaw:Action="http://tempuri.org/I ClientFacade/ProcessSnapshotStreamed" message="tns:IClientFacade_ProcessSnapshotStreamed_InputMessage" />167 <wsdl:output wsaw:Action="http://tempuri.org/I ClientFacade/ProcessSnapshotStreamedResponse" message="tns:IClientFacade_ProcessSnapshotStreamed_OutputMessage" />166 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveFacade/ProcessSnapshotStreamed" message="tns:ISlaveFacade_ProcessSnapshotStreamed_InputMessage" /> 167 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveFacade/ProcessSnapshotStreamedResponse" message="tns:ISlaveFacade_ProcessSnapshotStreamed_OutputMessage" /> 168 168 </wsdl:operation> 169 169 </wsdl:portType> 170 <wsdl:binding name="NetTcpBinding_I ClientFacade" type="tns:IClientFacade">171 <wsp:PolicyReference URI="#NetTcpBinding_I ClientFacade_policy">170 <wsdl:binding name="NetTcpBinding_ISlaveFacade" type="tns:ISlaveFacade"> 171 <wsp:PolicyReference URI="#NetTcpBinding_ISlaveFacade_policy"> 172 172 </wsp:PolicyReference> 173 173 <soap12:binding transport="http://schemas.microsoft.com/soap/tcp" /> 174 174 <wsdl:operation name="Login"> 175 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/Login" style="document" />175 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/Login" style="document" /> 176 176 <wsdl:input> 177 177 <soap12:body use="literal" /> … … 182 182 </wsdl:operation> 183 183 <wsdl:operation name="ProcessHeartBeat"> 184 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/ProcessHeartBeat" style="document" />185 <wsdl:input> 186 <soap12:body use="literal" /> 187 </wsdl:input> 188 <wsdl:output> 189 <soap12:body use="literal" /> 190 </wsdl:output> 191 </wsdl:operation> 192 <wsdl:operation name=" SendJob">193 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/SendJob" style="document" />184 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/ProcessHeartBeat" style="document" /> 185 <wsdl:input> 186 <soap12:body use="literal" /> 187 </wsdl:input> 188 <wsdl:output> 189 <soap12:body use="literal" /> 190 </wsdl:output> 191 </wsdl:operation> 192 <wsdl:operation name="GetJob"> 193 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/GetJob" style="document" /> 194 194 <wsdl:input> 195 195 <soap12:body use="literal" /> … … 200 200 </wsdl:operation> 201 201 <wsdl:operation name="StoreFinishedJobResult"> 202 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/StoreFinishedJobResult" style="document" />202 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/StoreFinishedJobResult" style="document" /> 203 203 <wsdl:input> 204 204 <soap12:body use="literal" /> … … 209 209 </wsdl:operation> 210 210 <wsdl:operation name="ProcessSnapshot"> 211 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/ProcessSnapshot" style="document" />211 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/ProcessSnapshot" style="document" /> 212 212 <wsdl:input> 213 213 <soap12:body use="literal" /> … … 218 218 </wsdl:operation> 219 219 <wsdl:operation name="Logout"> 220 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/Logout" style="document" />220 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/Logout" style="document" /> 221 221 <wsdl:input> 222 222 <soap12:body use="literal" /> … … 227 227 </wsdl:operation> 228 228 <wsdl:operation name="IsJobStillNeeded"> 229 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/IsJobStillNeeded" style="document" />229 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/IsJobStillNeeded" style="document" /> 230 230 <wsdl:input> 231 231 <soap12:body use="literal" /> … … 236 236 </wsdl:operation> 237 237 <wsdl:operation name="SendPlugins"> 238 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/SendPlugins" style="document" />238 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/SendPlugins" style="document" /> 239 239 <wsdl:input> 240 240 <soap12:body use="literal" /> … … 245 245 </wsdl:operation> 246 246 <wsdl:operation name="GetCalendar"> 247 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/GetCalendar" style="document" />247 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/GetCalendar" style="document" /> 248 248 <wsdl:input> 249 249 <soap12:body use="literal" /> … … 254 254 </wsdl:operation> 255 255 <wsdl:operation name="SetCalendarStatus"> 256 <soap12:operation soapAction="http://tempuri.org/I ClientCommunicator/SetCalendarStatus" style="document" />256 <soap12:operation soapAction="http://tempuri.org/ISlaveCommunicator/SetCalendarStatus" style="document" /> 257 257 <wsdl:input> 258 258 <soap12:body use="literal" /> … … 263 263 </wsdl:operation> 264 264 <wsdl:operation name="SendStreamedJob"> 265 <soap12:operation soapAction="http://tempuri.org/I ClientFacade/SendStreamedJob" style="document" />265 <soap12:operation soapAction="http://tempuri.org/ISlaveFacade/SendStreamedJob" style="document" /> 266 266 <wsdl:input> 267 267 <soap12:body use="literal" /> … … 272 272 </wsdl:operation> 273 273 <wsdl:operation name="SendStreamedPlugins"> 274 <soap12:operation soapAction="http://tempuri.org/I ClientFacade/SendStreamedPlugins" style="document" />274 <soap12:operation soapAction="http://tempuri.org/ISlaveFacade/SendStreamedPlugins" style="document" /> 275 275 <wsdl:input> 276 276 <soap12:body use="literal" /> … … 281 281 </wsdl:operation> 282 282 <wsdl:operation name="StoreFinishedJobResultStreamed"> 283 <soap12:operation soapAction="http://tempuri.org/I ClientFacade/StoreFinishedJobResultStreamed" style="document" />283 <soap12:operation soapAction="http://tempuri.org/ISlaveFacade/StoreFinishedJobResultStreamed" style="document" /> 284 284 <wsdl:input> 285 285 <soap12:body use="literal" /> … … 290 290 </wsdl:operation> 291 291 <wsdl:operation name="ProcessSnapshotStreamed"> 292 <soap12:operation soapAction="http://tempuri.org/I ClientFacade/ProcessSnapshotStreamed" style="document" />292 <soap12:operation soapAction="http://tempuri.org/ISlaveFacade/ProcessSnapshotStreamed" style="document" /> 293 293 <wsdl:input> 294 294 <soap12:body use="literal" /> … … 299 299 </wsdl:operation> 300 300 </wsdl:binding> 301 <wsdl:service name=" ClientFacade">302 <wsdl:port name="NetTcpBinding_I ClientFacade" binding="tns:NetTcpBinding_IClientFacade">303 <soap12:address location="net.tcp://10.42.1.15 3:9000/HiveServer/ClientCommunicator" />301 <wsdl:service name="SlaveFacade"> 302 <wsdl:port name="NetTcpBinding_ISlaveFacade" binding="tns:NetTcpBinding_ISlaveFacade"> 303 <soap12:address location="net.tcp://10.42.1.154:9000/HiveServer/ClientCommunicator" /> 304 304 <wsa10:EndpointReference> 305 <wsa10:Address>net.tcp://10.42.1.15 3:9000/HiveServer/ClientCommunicator</wsa10:Address>305 <wsa10:Address>net.tcp://10.42.1.154:9000/HiveServer/ClientCommunicator</wsa10:Address> 306 306 </wsa10:EndpointReference> 307 307 </wsdl:port> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/ServerService/service2.xsd
r4170 r4254 29 29 <xs:complexType> 30 30 <xs:sequence> 31 <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="ProcessHeartBeatResult" nillable="true" type="q4:ResponseH B" />32 </xs:sequence> 33 </xs:complexType> 34 </xs:element> 35 <xs:element name=" SendJob">31 <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="ProcessHeartBeatResult" nillable="true" type="q4:ResponseHeartBeat" /> 32 </xs:sequence> 33 </xs:complexType> 34 </xs:element> 35 <xs:element name="GetJob"> 36 36 <xs:complexType> 37 37 <xs:sequence> … … 40 40 </xs:complexType> 41 41 </xs:element> 42 <xs:element name=" SendJobResponse">43 <xs:complexType> 44 <xs:sequence> 45 <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name=" SendJobResult" nillable="true" type="q6:ResponseJob" />42 <xs:element name="GetJobResponse"> 43 <xs:complexType> 44 <xs:sequence> 45 <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="GetJobResult" nillable="true" type="q6:ResponseObjectOfJobDtoZAa7YIsz" /> 46 46 </xs:sequence> 47 47 </xs:complexType> … … 121 121 <xs:complexType> 122 122 <xs:sequence> 123 <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="SendPluginsResult" nillable="true" type="q18:Response Plugin" />123 <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="SendPluginsResult" nillable="true" type="q18:ResponseListOfCachedHivePluginInfoDtoZMwZop09" /> 124 124 </xs:sequence> 125 125 </xs:complexType> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/WcfService.cs
r4253 r4254 66 66 public event EventHandler Connected; 67 67 68 public ClientFacadeClient proxy = null;68 public SlaveFacadeClient proxy = null; 69 69 70 70 /// <summary> … … 87 87 88 88 Logger.Debug("Creating the new connection proxy"); 89 proxy = new ClientFacadeClient(89 proxy = new SlaveFacadeClient( 90 90 HeuristicLab.Hive.Contracts.WcfSettings.GetStreamedBinding(), 91 91 new EndpointAddress("net.tcp://" + ServerIP + ":" + ServerPort + "/HiveServer/ClientCommunicator") … … 204 204 /// </summary> 205 205 #region PullJob 206 public event System.EventHandler< SendJobCompletedEventArgs> SendJobCompleted;206 public event System.EventHandler<GetJobCompletedEventArgs> SendJobCompleted; 207 207 public void SendJobAsync(Guid guid) { 208 208 if (ConnState == NetworkEnum.WcfConnState.Loggedin) { … … 223 223 //first deserialize the response 224 224 BinaryFormatter formatter = new BinaryFormatter(); 225 Response Job response = (ResponseJob)formatter.Deserialize(stream);225 ResponseObject<JobDto> response = (ResponseObject<JobDto>)formatter.Deserialize(stream); 226 226 227 227 //second deserialize the BLOB … … 236 236 memStream.Close(); 237 237 238 SendJobCompletedEventArgs completedEventArgs = new SendJobCompletedEventArgs(new object[] { response, memStream.GetBuffer() }, e.Error, e.Cancelled, e.UserState);238 GetJobCompletedEventArgs completedEventArgs = new GetJobCompletedEventArgs(new object[] { response, memStream.GetBuffer() }, e.Error, e.Cancelled, e.UserState); 239 239 SendJobCompleted(sender, completedEventArgs); 240 240 } catch (Exception ex) { … … 390 390 } 391 391 392 public List<HeuristicLab.PluginInfrastructure.CachedHivePluginInfoDto> RequestPlugins(List<HivePluginInfoDto> requestedPlugins) {392 public IEnumerable<CachedHivePluginInfoDto> RequestPlugins(List<HivePluginInfoDto> requestedPlugins) { 393 393 try { 394 394 Logger.Debug("STARTED: Requesting Plugins for Job"); … … 396 396 Stream stream = proxy.SendStreamedPlugins(requestedPlugins.ToArray()); 397 397 Logger.Debug("ENDED: Getting the stream"); 398 BinaryFormatter formatter = 399 new BinaryFormatter(); 398 BinaryFormatter formatter = new BinaryFormatter(); 400 399 Logger.Debug("STARTED: Deserializing the stream"); 401 Response Plugin response = (ResponsePlugin)formatter.Deserialize(stream);400 ResponseList<CachedHivePluginInfoDto> response = (ResponseList<CachedHivePluginInfoDto>)formatter.Deserialize(stream); 402 401 Logger.Debug("ENDED: Deserializing the stream"); 403 402 if (stream != null) 404 403 stream.Dispose(); 405 return response. Plugins;404 return response.List; 406 405 } catch (Exception e) { 407 406 HandleNetworkError(e); -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/app.config
r4107 r4254 4 4 <bindings> 5 5 <netTcpBinding> 6 <binding name="NetTcpBinding_I ClientFacade" closeTimeout="00:01:00"6 <binding name="NetTcpBinding_ISlaveFacade" closeTimeout="00:01:00" 7 7 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 8 8 transactionFlow="false" transferMode="Streamed" transactionProtocol="OleTransactions" … … 22 22 </bindings> 23 23 <client> 24 <endpoint address="net.tcp://10.42.1.15 3:9000/HiveServer/ClientCommunicator"25 binding="netTcpBinding" bindingConfiguration="NetTcpBinding_I ClientFacade"26 contract="ServerService.I ClientFacade" name="NetTcpBinding_IClientFacade" />24 <endpoint address="net.tcp://10.42.1.154:9000/HiveServer/ClientCommunicator" 25 binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ISlaveFacade" 26 contract="ServerService.ISlaveFacade" name="NetTcpBinding_ISlaveFacade" /> 27 27 </client> 28 28 </system.serviceModel> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/ConfigurationManager/UptimeManager.cs
r4253 r4254 14 14 public class UptimeManager { 15 15 16 private AppointmentContainer _appContainer = null;16 private AppointmentContainer appContainer = null; 17 17 public AppointmentContainer AppContainer { 18 18 get { 19 if ( _appContainer == null)19 if (appContainer == null) 20 20 RestoreFromHDD(); 21 return _appContainer;21 return appContainer; 22 22 } 23 23 } … … 65 65 try { 66 66 r = new StreamReader(path + "calendar.xml"); 67 _appContainer = (AppointmentContainer)s.Deserialize(r);67 appContainer = (AppointmentContainer)s.Deserialize(r); 68 68 CalendarAvailable = true; 69 69 } … … 71 71 Logger.Error("Deserialization of Calendar failed", e); 72 72 Logger.Info("Starting with a new one"); 73 _appContainer = new AppointmentContainer();73 appContainer = new AppointmentContainer(); 74 74 CalendarAvailable = false; 75 75 } … … 79 79 } 80 80 } else { 81 _appContainer = new AppointmentContainer();81 appContainer = new AppointmentContainer(); 82 82 } 83 83 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/Core.cs
r4253 r4254 78 78 public void Start() { 79 79 abortRequested = false; 80 Logger.Info("Hive Clientstarted");80 Logger.Info("Hive Slave started"); 81 81 SlaveConsoleServer server = new SlaveConsoleServer(); 82 server.StartClientConsoleServer(new Uri("net.tcp://127.0.0.1:8000/ ClientConsole/"));82 server.StartClientConsoleServer(new Uri("net.tcp://127.0.0.1:8000/SlaveConsole/")); 83 83 84 84 ConfigManager manager = ConfigManager.Instance; 85 85 manager.Core = this; 86 87 88 86 89 87 //Register all Wcf Service references 90 88 wcfService = WcfService.Instance; 91 89 wcfService.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(wcfService_LoginCompleted); 92 wcfService.SendJobCompleted += new EventHandler< SendJobCompletedEventArgs>(wcfService_SendJobCompleted);90 wcfService.SendJobCompleted += new EventHandler<GetJobCompletedEventArgs>(wcfService_GetJobCompleted); 93 91 wcfService.StoreFinishedJobResultCompleted += new EventHandler<StoreFinishedJobResultCompletedEventArgs>(wcfService_StoreFinishedJobResultCompleted); 94 92 wcfService.ProcessSnapshotCompleted += new EventHandler<ProcessSnapshotCompletedEventArgs>(wcfService_ProcessSnapshotCompleted); … … 96 94 wcfService.ServerChanged += new EventHandler(wcfService_ServerChanged); 97 95 wcfService.Connected += new EventHandler(wcfService_Connected); 96 98 97 //Recover Server IP and Port from the Settings Framework 99 98 ConnectionContainer cc = ConfigManager.Instance.GetServerIPAndPort(); … … 131 130 Logger.Error("AbortJob: Engine doesn't exist"); 132 131 break; 132 133 133 //Job has been successfully aborted 134 135 136 134 case MessageContainer.MessageType.JobAborted: 137 135 Guid jobId = new Guid(container.JobId.ToString()); 138 136 KillAppDomain(jobId); 139 137 break; 140 141 138 142 139 //Request a Snapshot from the Execution Engine … … 145 142 engines[container.JobId].RequestSnapshot(); 146 143 else 147 Logger.Error("RequestSnapshot: Engine doesn't exist"); 148 break; 149 144 Logger.Error("RequestSnapshot: Engine with Job doesn't exist"); 145 break; 150 146 151 147 //Snapshot is ready and can be sent back to the Server … … 153 149 ThreadPool.QueueUserWorkItem(new WaitCallback(GetSnapshot), container.JobId); 154 150 break; 155 156 151 157 152 //Pull a Job from the Server … … 243 238 KillAppDomain(jId); 244 239 } 245 } catch (InvalidStateException ise) { 240 } 241 catch (InvalidStateException ise) { 246 242 Logger.Error("Invalid State while Snapshoting:", ise); 247 243 } … … 302 298 /// <param name="sender"></param> 303 299 /// <param name="e"></param> 304 void wcfService_ SendJobCompleted(object sender, SendJobCompletedEventArgs e) {300 void wcfService_GetJobCompleted(object sender, GetJobCompletedEventArgs e) { 305 301 if (e.Result.StatusMessage != ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT) { 306 Logger.Info("Received new job with id " + e.Result. Job.Id);302 Logger.Info("Received new job with id " + e.Result.Obj.Id); 307 303 bool sandboxed = false; 308 Logger.Debug("Fetching plugins for job " + e.Result. Job.Id);309 310 PluginCache.Instance.PreparePlugins(e.Result. Job.PluginsNeeded);311 312 PluginCache.Instance.CopyPluginsForJob(e.Result. Job.PluginsNeeded, e.Result.Job.Id);304 Logger.Debug("Fetching plugins for job " + e.Result.Obj.Id); 305 306 PluginCache.Instance.PreparePlugins(e.Result.Obj.PluginsNeeded); 307 308 PluginCache.Instance.CopyPluginsForJob(e.Result.Obj.PluginsNeeded, e.Result.Obj.Id); 313 309 314 310 // foreach (CachedHivePluginInfoDto plugininfo in PluginCache.Instance.GetPlugins(e.Result.Job.PluginsNeeded)) 315 311 // files.AddRange(plugininfo.PluginFiles); 316 Logger.Debug("Plugins fetched for job " + e.Result. Job.Id);312 Logger.Debug("Plugins fetched for job " + e.Result.Obj.Id); 317 313 try { 318 String pluginDir = Path.Combine(PluginCache.PLUGIN_REPO, e.Result. Job.Id.ToString());319 314 String pluginDir = Path.Combine(PluginCache.PLUGIN_REPO, e.Result.Obj.Id.ToString()); 315 320 316 AppDomain appDomain = HeuristicLab.PluginInfrastructure.Sandboxing.SandboxManager.CreateAndInitSandbox(pluginDir, null); 321 317 appDomain.UnhandledException += new UnhandledExceptionEventHandler(appDomain_UnhandledException); 322 318 lock (engines) { 323 if (!jobs.ContainsKey(e.Result. Job.Id)) {324 jobs.Add(e.Result. Job.Id, e.Result.Job);325 appDomains.Add(e.Result. Job.Id, appDomain);319 if (!jobs.ContainsKey(e.Result.Obj.Id)) { 320 jobs.Add(e.Result.Obj.Id, e.Result.Obj); 321 appDomains.Add(e.Result.Obj.Id, appDomain); 326 322 Logger.Debug("Creating AppDomain"); 327 Executor engine = 328 (Executor) 329 appDomain.CreateInstanceAndUnwrap(typeof(Executor).Assembly.GetName().Name, typeof(Executor).FullName); 323 Executor engine = (Executor)appDomain.CreateInstanceAndUnwrap(typeof(Executor).Assembly.GetName().Name, typeof(Executor).FullName); 330 324 Logger.Debug("Created AppDomain"); 331 engine.JobId = e.Result. Job.Id;325 engine.JobId = e.Result.Obj.Id; 332 326 engine.Queue = MessageQueue.GetInstance(); 333 Logger.Debug("Starting Engine for job " + e.Result. Job.Id);327 Logger.Debug("Starting Engine for job " + e.Result.Obj.Id); 334 328 engine.Start(e.Data); 335 engines.Add(e.Result. Job.Id, engine);329 engines.Add(e.Result.Obj.Id, engine); 336 330 337 331 SlaveStatusInfo.JobsFetched++; 338 339 332 Logger.Info("Increment FetchedJobs to:" + SlaveStatusInfo.JobsFetched); 340 333 } 341 334 } 342 } catch (Exception exception) { 343 Logger.Error("Creating the Appdomain and loading the job failed for job " + e.Result.Job.Id); 335 } 336 catch (Exception exception) { 337 Logger.Error("Creating the Appdomain and loading the job failed for job " + e.Result.Obj.Id); 344 338 Logger.Error("Error thrown is: ", exception); 345 339 CurrentlyFetching = false; 346 KillAppDomain(e.Result. Job.Id);347 wcfService.StoreFinishedJobResultsSync(ConfigManager.Instance.GetClientInfo().Id, e.Result. Job.Id, new byte[] { }, 1, exception, true);348 } 349 } else 340 KillAppDomain(e.Result.Obj.Id); 341 wcfService.StoreFinishedJobResultsSync(ConfigManager.Instance.GetClientInfo().Id, e.Result.Obj.Id, new byte[] { }, 1, exception, true); 342 } 343 } else { 350 344 Logger.Info("No more jobs left!"); 345 } 351 346 CurrentlyFetching = false; 352 347 } … … 480 475 PluginCache.Instance.DeletePluginsForJob(id); 481 476 GC.Collect(); 482 } catch (Exception ex) { 477 } 478 catch (Exception ex) { 483 479 Logger.Error("Exception when unloading the appdomain: ", ex); 484 480 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/Heartbeat.cs
r4253 r4254 124 124 125 125 void wcfService_ProcessHeartBeatCompleted(object sender, ProcessHeartBeatCompletedEventArgs e) { 126 Logger.Debug("Heartbeat received");126 Logger.Debug("Heartbeat Response received"); 127 127 e.Result.ActionRequest.ForEach(mc => MessageQueue.GetInstance().AddMessage(mc)); 128 128 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/JobStorage/JobStorageManager.cs
r4253 r4254 15 15 namespace HeuristicLab.Hive.Slave.Core.JobStorage { 16 16 public class JobStorageManager { 17 17 18 18 private static List<JobStorageInfo> storedJobsList = new List<JobStorageInfo>(); 19 19 20 20 private static String path = System.IO.Directory.GetCurrentDirectory() + "\\Hive.Slave.Jobs\\"; 21 21 22 22 public static void PersistObjectToDisc(String serverIP, long serverPort, Guid jobId, byte[] job) { 23 23 String filename = serverIP + "." + serverPort + "." + jobId.ToString(); 24 24 JobStorageInfo info = new JobStorageInfo { JobID = jobId, ServerIP = serverIP, ServerPort = serverPort, TimeFinished = DateTime.Now }; 25 25 26 26 Stream jobstream = null; 27 27 try { 28 28 jobstream = File.Create(path + filename + ".dat"); 29 29 jobstream.Write(job, 0, job.Length); 30 storedJobsList.Add(info); 30 storedJobsList.Add(info); 31 31 Logger.Info("Job " + info.JobID + " stored on the harddisc"); 32 32 } … … 35 35 } 36 36 finally { 37 if (jobstream!=null)37 if (jobstream != null) 38 38 jobstream.Close(); 39 39 } 40 40 41 41 StoreJobList(); 42 43 42 } 44 43 45 44 public static void CheckAndSubmitJobsFromDisc() { 46 for (int index=storedJobsList.Count; index > 0; index--) {47 if (WcfService.Instance.ConnState == NetworkEnum.WcfConnState.Loggedin && (storedJobsList[index -1].ServerIP == WcfService.Instance.ServerIP && storedJobsList[index-1].ServerPort == WcfService.Instance.ServerPort)) {48 String filename = storedJobsList[index -1].ServerIP + "." + storedJobsList[index-1].ServerPort + "." + storedJobsList[index-1].JobID.ToString();45 for (int index = storedJobsList.Count; index > 0; index--) { 46 if (WcfService.Instance.ConnState == NetworkEnum.WcfConnState.Loggedin && (storedJobsList[index - 1].ServerIP == WcfService.Instance.ServerIP && storedJobsList[index - 1].ServerPort == WcfService.Instance.ServerPort)) { 47 String filename = storedJobsList[index - 1].ServerIP + "." + storedJobsList[index - 1].ServerPort + "." + storedJobsList[index - 1].JobID.ToString(); 49 48 Logger.Info("Sending stored job " + storedJobsList[index - 1].JobID + " to the server"); 50 49 try { … … 59 58 SlaveStatusInfo.JobsProcessed++; 60 59 storedJobsList.Remove(storedJobsList[index - 1]); 61 File.Delete(path + filename + ".dat"); 60 File.Delete(path + filename + ".dat"); 62 61 } 63 62 catch (Exception e) { … … 66 65 StoreJobList(); 67 66 } 68 69 }70 67 } 68 } 71 69 } 72 70 73 71 public static void StoreJobList() { 74 72 XmlSerializer serializer = new XmlSerializer(typeof(List<JobStorageInfo>)); 75 TextWriter writer = new StreamWriter(Path.Combine(path ,"list.xml"));73 TextWriter writer = new StreamWriter(Path.Combine(path, "list.xml")); 76 74 serializer.Serialize(writer, storedJobsList); 77 75 writer.Close(); … … 82 80 if (!Directory.Exists(path)) 83 81 Directory.CreateDirectory(path); 84 82 85 83 XmlSerializer serializer = new XmlSerializer(typeof(List<JobStorageInfo>)); 86 84 FileStream stream = null; 87 if (File.Exists(Path.Combine(path ,"list.xml"))) {85 if (File.Exists(Path.Combine(path, "list.xml"))) { 88 86 try { 89 87 stream = new FileStream(Path.Combine(path, "list.xml"), FileMode.Open); … … 94 92 catch (Exception e) { 95 93 Logger.Error("Exception while loading the Stored Job List", e); 96 } finally { 97 if(stream != null) 94 } 95 finally { 96 if (stream != null) 98 97 stream.Dispose(); 99 98 } … … 103 102 } 104 103 } 105 106 104 } 107 105 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/PluginCache.cs
r4253 r4254 97 97 98 98 Logger.Debug("First run - Update the plugins in the cache"); 99 100 99 localPlugins.AddRange(missingPlugins); 101 102 List<CachedHivePluginInfoDto> updateablePlugins = WcfService.Instance.RequestPlugins(localPlugins); 100 IEnumerable<CachedHivePluginInfoDto> updateablePlugins = WcfService.Instance.RequestPlugins(localPlugins); 103 101 104 102 foreach (CachedHivePluginInfoDto updateablePlugin in updateablePlugins) { 105 PluginDescription pd = 106 cachedPlugins.Where(cachedPlugin => cachedPlugin.Name.Equals(updateablePlugin.Name)).SingleOrDefault(); 103 PluginDescription pd = cachedPlugins.Where(cachedPlugin => cachedPlugin.Name.Equals(updateablePlugin.Name)).SingleOrDefault(); 107 104 108 105 if (pd != null) { … … 115 112 Logger.Debug("deleted old files"); 116 113 Logger.Debug("creating new files"); 117 118 119 120 114 foreach (HivePluginFile pf in updateablePlugin.PluginFiles) { 121 115 File.WriteAllBytes(PLUGIN_REPO + pf.Name.Split('\\').Last(), pf.BinaryFile);
Note: See TracChangeset
for help on using the changeset viewer.