- Timestamp:
- 06/28/18 11:13:37 (7 years ago)
- Location:
- branches/2522_RefactorPluginInfrastructure
- Files:
-
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2522_RefactorPluginInfrastructure
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3
- Property svn:ignore
-
old new 1 1 Plugin.cs 2 2 obj 3 *.user
-
- Property svn:ignore
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Core.cs
r12920 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/DummyListener.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/AppDomainNotCreatedException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/InvalidStateException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/JobAlreadyExistsException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/OutOfCoresException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/OutOfMemoryException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/SerializationException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/TaskAlreadyRunningException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/TaskFailedException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/TaskNotDataFoundException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/TaskNotFoundException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Exceptions/TaskNotRunningException.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Executor.cs
r12920 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 185 185 #endregion 186 186 187 public Tuple<TaskData, DateTime> GetTaskDataSnapshot() {188 if (taskDataInvalid) return null;189 190 Tuple<TaskData, DateTime> snapshot = null;191 if (task == null) {192 if (CurrentException == null) {193 CurrentException = new Exception("Task with id " + this.TaskId + " is null, sending empty task");194 }195 } else {196 var taskData = new TaskData();197 198 var pausedTrigger = new EventWaitHandle(false, EventResetMode.ManualReset);199 EventHandler pausedHandler = null;200 pausedHandler = (s, e) => {201 task.TaskPaused -= pausedHandler;202 task.TaskPaused += Task_TaskPaused;203 pausedTrigger.Set();204 };205 206 task.TaskPaused -= Task_TaskPaused;207 task.TaskPaused += pausedHandler;208 task.Pause();209 pausedTrigger.WaitOne();210 211 taskData.Data = PersistenceUtil.Serialize(task);212 var timestamp = DateTime.Now;213 214 EventHandler startedHandler = null;215 startedHandler = (s, e) => {216 task.TaskStarted -= startedHandler;217 task.TaskStarted += Task_TaskStarted;218 };219 220 task.TaskStarted -= Task_TaskStarted;221 task.TaskStarted += startedHandler;222 task.Start();223 224 taskData.TaskId = TaskId;225 snapshot = Tuple.Create(taskData, timestamp);226 }227 228 return snapshot;229 }230 231 187 public TaskData GetTaskData() { 232 188 if (taskDataInvalid) return null; -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/ExecutorMessage.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/ExecutorQueue.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/HeuristicLab.Clients.Hive.Slave-3.3.csproj
r11651 r15973 170 170 <Compile Include="StatusCommons.cs" /> 171 171 <Compile Include="WcfService.cs" /> 172 <None Include="app.config" /> 172 <None Include="app.config"> 173 <SubType>Designer</SubType> 174 </None> 173 175 <None Include="Plugin.cs.frame" /> 174 176 <Compile Include="Plugin.cs" /> … … 185 187 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 186 188 <PropertyGroup> 187 <PostBuildEvent>188 </PostBuildEvent>189 </PropertyGroup>190 <PropertyGroup>191 189 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 192 190 set ProjectDir=$(ProjectDir) … … 200 198 201 199 $SolutionDir/PreBuildEvent.sh 202 </PreBuildEvent> 200 </PreBuildEvent> 201 <PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' "> 202 set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 203 set ProjectDir=$(ProjectDir) 204 set SolutionDir=$(SolutionDir) 205 set OutDir=$(OutDir) 206 set TargetDir=$(TargetDir) 207 set Platform=$(PlatformName) 208 set Configuration=$(ConfigurationName) 209 210 call "$(SolutionDir)MergeConfigs.cmd" 211 </PostBuildEvent> 212 <PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 213 export OutDir=$(OutDir) 214 export ProjectDir=$(ProjectDir) 215 export SolutionDir=$(SolutionDir) 216 export TargetDir=$(TargetDir) 217 218 $SolutionDir/MergeConfigs.sh 219 </PostBuildEvent> 203 220 </PropertyGroup> 204 221 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/IPluginProvider.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Manager/ConfigManager.cs
r12273 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Manager/EventLogManager.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Manager/HeartbeatManager.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Manager/PluginManager.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Manager/TaskManager.cs
r12920 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 37 37 public class TaskManager { 38 38 private static readonly ReaderWriterLockSlim slaveTasksLocker = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion); 39 private readonly Dictionary<Guid, SnapshotInfo> slaveTasks;39 private readonly Dictionary<Guid, Tuple<SlaveTask, DateTime>> slaveTasks; 40 40 private readonly ILog log; 41 41 private readonly PluginManager pluginManager; … … 43 43 private readonly CancellationToken ct; 44 44 private readonly AutoResetEvent waitHandle; 45 private readonly WcfService wcfService;46 45 private readonly TimeSpan checkpointInterval; 47 46 private readonly TimeSpan checkpointCheckInterval; … … 70 69 this.pluginManager = pluginCache; 71 70 this.log = log; 72 this.slaveTasks = new Dictionary<Guid, SnapshotInfo>();71 this.slaveTasks = new Dictionary<Guid, Tuple<SlaveTask, DateTime>>(); 73 72 74 73 cts = new CancellationTokenSource(); 75 74 ct = cts.Token; 76 75 waitHandle = new AutoResetEvent(true); 77 wcfService = WcfService.Instance;78 76 checkpointInterval = Settings.Default.CheckpointInterval; 79 77 checkpointCheckInterval = Settings.Default.CheckpointCheckInterval; … … 85 83 private void Checkpointing() { 86 84 while (!ct.IsCancellationRequested) { 87 slaveTasksLocker.Enter WriteLock();85 slaveTasksLocker.EnterUpgradeableReadLock(); 88 86 try { 89 87 foreach (var entry in slaveTasks) { 90 var taskId = entry.Key; 91 var snapshotInfo = entry.Value; 92 93 if (DateTime.Now - snapshotInfo.LastSnapshot <= checkpointInterval) continue; 94 95 var task = wcfService.GetTask(taskId); 96 var snapshot = snapshotInfo.Task.GetTaskDataSnapshot(); 97 98 if (snapshot == null) continue; 99 100 slaveTasks[taskId].LastSnapshot = snapshot.Item2; 101 var slaveId = ConfigManager.Instance.GetClientInfo().Id; 102 wcfService.UpdateTaskData(task, snapshot.Item1, slaveId, TaskState.Calculating); 88 if (DateTime.Now - entry.Value.Item2 > checkpointInterval) 89 PauseTaskAsync(entry.Key); 103 90 } 104 } finally { slaveTasksLocker.Exit WriteLock(); }91 } finally { slaveTasksLocker.ExitUpgradeableReadLock(); } 105 92 waitHandle.WaitOne(checkpointCheckInterval); 106 93 } … … 146 133 try { 147 134 if (!slaveTasks.ContainsKey(taskId)) throw new TaskNotRunningException(taskId); 148 SlaveTask slaveTask = slaveTasks[taskId]. Task;135 SlaveTask slaveTask = slaveTasks[taskId].Item1; 149 136 slaveTask.PauseTask(); 150 137 } … … 156 143 try { 157 144 if (!slaveTasks.ContainsKey(taskId)) throw new TaskNotRunningException(taskId); 158 SlaveTask slaveTask = slaveTasks[taskId]. Task;145 SlaveTask slaveTask = slaveTasks[taskId].Item1; 159 146 slaveTask.StopTask(); 160 147 } … … 167 154 try { 168 155 if (!slaveTasks.ContainsKey(taskId)) throw new TaskNotRunningException(taskId); 169 slaveTask = slaveTasks[taskId]. Task;156 slaveTask = slaveTasks[taskId].Item1; 170 157 if (!slaveTask.IsPrepared) throw new AppDomainNotCreatedException(); 171 158 RemoveSlaveTask(taskId, slaveTask); … … 181 168 try { 182 169 foreach (var slaveTask in slaveTasks.Values) { 183 slaveTask. Task.PauseTask();170 slaveTask.Item1.PauseTask(); 184 171 } 185 172 } … … 191 178 try { 192 179 foreach (var slaveTask in slaveTasks.Values) { 193 slaveTask. Task.StopTask();180 slaveTask.Item1.StopTask(); 194 181 } 195 182 } … … 201 188 try { 202 189 foreach (var slaveTask in slaveTasks.Values.ToArray()) { 203 AbortTask(slaveTask. Task.TaskId);190 AbortTask(slaveTask.Item1.TaskId); 204 191 } 205 192 } … … 212 199 slaveTasksLocker.EnterWriteLock(); 213 200 try { 214 slaveTasks.Add(task.Id, new SnapshotInfo { Task = slaveTask, LastSnapshot = task.DateCreated.GetValueOrDefault() });201 slaveTasks.Add(task.Id, Tuple.Create(slaveTask, DateTime.Now)); 215 202 RegisterSlaveTaskEvents(slaveTask); 216 203 } … … 247 234 slaveTasksLocker.EnterUpgradeableReadLock(); 248 235 try { 249 slaveTask = slaveTasks[e.Value]. Task;236 slaveTask = slaveTasks[e.Value].Item1; 250 237 } 251 238 finally { slaveTasksLocker.ExitUpgradeableReadLock(); } … … 259 246 slaveTasksLocker.EnterUpgradeableReadLock(); 260 247 try { 261 slaveTask = slaveTasks[e.Value]. Task;248 slaveTask = slaveTasks[e.Value].Item1; 262 249 RemoveSlaveTask(e.Value, slaveTask); 263 250 } … … 281 268 slaveTasksLocker.EnterUpgradeableReadLock(); 282 269 try { 283 slaveTask = slaveTasks[e.Value]. Task;270 slaveTask = slaveTasks[e.Value].Item1; 284 271 RemoveSlaveTask(e.Value, slaveTask); 285 272 } … … 303 290 slaveTasksLocker.EnterUpgradeableReadLock(); 304 291 try { 305 slaveTask = slaveTasks[e.Value]. Task;292 slaveTask = slaveTasks[e.Value].Item1; 306 293 RemoveSlaveTask(e.Value, slaveTask); 307 294 } … … 353 340 slaveTasksLocker.EnterReadLock(); 354 341 try { 355 return slaveTasks.ToDictionary(x => x.Key, x => x.Value. Task.ExecutionTime);342 return slaveTasks.ToDictionary(x => x.Key, x => x.Value.Item1.ExecutionTime); 356 343 } 357 344 finally { slaveTasksLocker.ExitReadLock(); } 358 }359 360 private sealed class SnapshotInfo {361 public SlaveTask Task { get; set; }362 public DateTime LastSnapshot { get; set; }363 345 } 364 346 } -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/MessageQueue.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/NetworkEnum.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Plugin.cs.frame
r13321 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 29 29 namespace HeuristicLab.Clients.Hive.SlaveCore { 30 [Plugin("HeuristicLab.Clients.Hive.SlaveCore", "3.3.1 3.$WCREV$")]30 [Plugin("HeuristicLab.Clients.Hive.SlaveCore", "3.3.15.$WCREV$")] 31 31 [PluginFile("HeuristicLab.Clients.Hive.SlaveCore-3.3.dll", PluginFileType.Assembly)] 32 32 -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/Properties/AssemblyInfo.cs.frame
r13321 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 32 32 [assembly: AssemblyCompany("")] 33 33 [assembly: AssemblyProduct("HeuristicLab")] 34 [assembly: AssemblyCopyright("(c) 2002-201 5HEAL")]34 [assembly: AssemblyCopyright("(c) 2002-2018 HEAL")] 35 35 [assembly: AssemblyTrademark("")] 36 36 [assembly: AssemblyCulture("")] … … 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.3.0.0")] 57 [assembly: AssemblyFileVersion("3.3.1 3.$WCREV$")]57 [assembly: AssemblyFileVersion("3.3.15.$WCREV$")] -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/ServiceContracts/ISlaveCommunication.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/ServiceContracts/ISlaveCommunicationCallbacks.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/SlaveClientCom.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/SlaveCommunicationService.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/SlaveStatusInfo.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/SlaveTask.cs
r12926 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 165 165 } 166 166 167 public Tuple<TaskData, DateTime> GetTaskDataSnapshot() {168 Tuple<TaskData, DateTime> snapshot = null;169 try {170 snapshot = executor.GetTaskDataSnapshot();171 if (snapshot == null) return Tuple.Create(originalTaskData, DateTime.Now);172 }173 catch (Exception ex) {174 EventLogManager.LogException(ex);175 }176 return snapshot;177 }178 179 167 public TaskData GetTaskData() { 180 168 TaskData data = null; -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/StatusCommons.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/TaskStatus.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/WcfService.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive.Slave/3.3/app.config
r12960 r15973 1 <?xml version="1.0" ?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <configuration> 3 3 <configSections> … … 7 7 </sectionGroup> 8 8 </configSections> 9 <runtime>10 <gcServer enabled="true"/>11 </runtime>12 9 13 <startup>14 <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>15 </startup>16 17 <system.serviceModel>18 <behaviors>19 <endpointBehaviors>20 <behavior name="HiveBehaviorConfiguration">21 <dataContractSerializer maxItemsInObjectGraph="2147483647"/>22 </behavior>23 </endpointBehaviors>24 </behaviors>25 <bindings>26 <wsHttpBinding>27 <binding name="wsHttpBinding_Hive" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:35:00" sendTimeout="00:35:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">28 <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>29 <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>30 <security mode="Message">31 <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>32 <message clientCredentialType="UserName" negotiateServiceCredential="true" algorithmSuite="Default"/>33 </security>34 </binding>35 </wsHttpBinding>36 <netTcpBinding>37 <binding name="netTcpBinding_Hive" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:35:00" sendTimeout="00:35:00" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">38 <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>39 <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>40 <security mode="TransportWithMessageCredential">41 <transport clientCredentialType="Windows"/>42 <message clientCredentialType="UserName" algorithmSuite="Default"/>43 </security>44 </binding>45 </netTcpBinding>46 </bindings>47 <services>48 <service name="HeuristicLab.Clients.Hive.SlaveCore.SlaveCommunicationService">49 <endpoint address="net.pipe://localhost/HeuristicLabSlaveCom" binding="netNamedPipeBinding" contract="HeuristicLab.Clients.Hive.SlaveCore.ServiceContracts.ISlaveCommunication"/>50 </service>51 </services>52 <client>53 <endpoint name="SlaveCommunicationServiceEndpoint" address="net.pipe://localhost/HeuristicLabSlaveCom" binding="netNamedPipeBinding" contract="HeuristicLab.Clients.Hive.SlaveCore.ServiceContracts.ISlaveCommunication"/>54 <endpoint address="http://services.heuristiclab.com/Hive-3.3/HiveService.svc" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_Hive" contract="HeuristicLab.Clients.Hive.IHiveService" name="wsHttpBinding_IHiveService" behaviorConfiguration="HiveBehaviorConfiguration">55 <identity>56 <certificate encodedValue="AwAAAAEAAAAUAAAAwK1+2oAmcy/mI2P2QjyiJRh0y60gAAAAAQAAACoCAAAwggImMIIBj6ADAgECAhAIkseQ2EEhgU720qJA61gqMA0GCSqGSIb3DQEBBAUAMCQxIjAgBgNVBAMTGXNlcnZpY2VzLmhldXJpc3RpY2xhYi5jb20wHhcNMTAwNTExMTExNDAyWhcNMzkxMjMxMjM1OTU5WjAkMSIwIAYDVQQDExlzZXJ2aWNlcy5oZXVyaXN0aWNsYWIuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq26Bwmwc7k+4W30qLQ2j+FInEL5BuH6opDY6CSlrtt3xQS/anrhvpbf3QghLDVINzcHkzbPmm/SguG4F85QLB6xO+tJaOvRo0iEK5g3c307vMIru7FJwk/OhplEQ5J1hbDgL3zOJlrWlgtqRVxCtVdF3XroI9BctOt1NkeKv9ewIDAQABo1kwVzBVBgNVHQEETjBMgBCjbgdYd4j5JgUuJ1Wo/GxroSYwJDEiMCAGA1UEAxMZc2VydmljZXMuaGV1cmlzdGljbGFiLmNvbYIQCJLHkNhBIYFO9tKiQOtYKjANBgkqhkiG9w0BAQQFAAOBgQAb/2xk2uQad68shSPl/uixWgvFI8WkxOTBopOLaLtDxwCeZ3mWVHdV9VnixHtThubnEBXAhYOCQSIXWtQuXFWO+gH3YyjTRJY5kTmXyuvBRTn3/so5SrQ7Rdlm9hf6E5YVX3tCjAy7ybUyaDUkQfmH5vmvgvpMzRfsJ1qhnUpJiQ=="/>57 </identity>58 </endpoint>59 <endpoint address="net.tcp://services.heuristiclab.com/Hive-3.3/HiveService.svc" binding="netTcpBinding" bindingConfiguration="netTcpBinding_Hive" contract="HeuristicLab.Clients.Hive.IHiveService" name="netTcpBinding_IHiveService" behaviorConfiguration="HiveBehaviorConfiguration">60 <identity>61 <certificate encodedValue="AwAAAAEAAAAUAAAAwK1+2oAmcy/mI2P2QjyiJRh0y60gAAAAAQAAACoCAAAwggImMIIBj6ADAgECAhAIkseQ2EEhgU720qJA61gqMA0GCSqGSIb3DQEBBAUAMCQxIjAgBgNVBAMTGXNlcnZpY2VzLmhldXJpc3RpY2xhYi5jb20wHhcNMTAwNTExMTExNDAyWhcNMzkxMjMxMjM1OTU5WjAkMSIwIAYDVQQDExlzZXJ2aWNlcy5oZXVyaXN0aWNsYWIuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq26Bwmwc7k+4W30qLQ2j+FInEL5BuH6opDY6CSlrtt3xQS/anrhvpbf3QghLDVINzcHkzbPmm/SguG4F85QLB6xO+tJaOvRo0iEK5g3c307vMIru7FJwk/OhplEQ5J1hbDgL3zOJlrWlgtqRVxCtVdF3XroI9BctOt1NkeKv9ewIDAQABo1kwVzBVBgNVHQEETjBMgBCjbgdYd4j5JgUuJ1Wo/GxroSYwJDEiMCAGA1UEAxMZc2VydmljZXMuaGV1cmlzdGljbGFiLmNvbYIQCJLHkNhBIYFO9tKiQOtYKjANBgkqhkiG9w0BAQQFAAOBgQAb/2xk2uQad68shSPl/uixWgvFI8WkxOTBopOLaLtDxwCeZ3mWVHdV9VnixHtThubnEBXAhYOCQSIXWtQuXFWO+gH3YyjTRJY5kTmXyuvBRTn3/so5SrQ7Rdlm9hf6E5YVX3tCjAy7ybUyaDUkQfmH5vmvgvpMzRfsJ1qhnUpJiQ=="/>62 </identity>63 </endpoint>64 </client>65 </system.serviceModel>66 10 <userSettings> 67 11 <HeuristicLab.Clients.Hive.SlaveCore.Properties.Settings> … … 164 108 <value> 165 109 <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 166 <string> netTcpBinding_IHiveService</string>167 <string> wsHttpBinding_IHiveService</string>110 <string>NetBinding_IHiveService</string> 111 <string>WSHttpBinding_IHiveService</string> 168 112 </ArrayOfString> 169 113 </value> … … 174 118 </HeuristicLab.Clients.Hive.Settings> 175 119 </userSettings> 120 121 <system.serviceModel> 122 <bindings> 123 <netTcpBinding> 124 <binding name="NetBinding_IHiveService" receiveTimeout="00:20:00" 125 sendTimeout="00:20:00" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" 126 maxReceivedMessageSize="2147483647"> 127 <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" 128 maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> 129 <security mode="TransportWithMessageCredential"> 130 <message clientCredentialType="UserName" /> 131 </security> 132 </binding> 133 </netTcpBinding> 134 <wsHttpBinding> 135 <binding name="WSHttpBinding_IHiveService" receiveTimeout="00:20:00" 136 sendTimeout="00:20:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> 137 <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" 138 maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> 139 <security> 140 <message clientCredentialType="UserName" /> 141 </security> 142 </binding> 143 </wsHttpBinding> 144 </bindings> 145 <services> 146 <service name="HeuristicLab.Clients.Hive.SlaveCore.SlaveCommunicationService"> 147 <endpoint address="net.pipe://localhost/HeuristicLabSlaveCom" binding="netNamedPipeBinding" contract="HeuristicLab.Clients.Hive.SlaveCore.ServiceContracts.ISlaveCommunication"/> 148 </service> 149 </services> 150 <client> 151 <endpoint name="SlaveCommunicationServiceEndpoint" address="net.pipe://localhost/HeuristicLabSlaveCom" binding="netNamedPipeBinding" contract="HeuristicLab.Clients.Hive.SlaveCore.ServiceContracts.ISlaveCommunication"/> 152 <endpoint address="http://services.heuristiclab.com/Hive-3.3/HiveService.svc" 153 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IHiveService" 154 contract="HeuristicLab.Clients.Hive.IHiveService" name="WSHttpBinding_IHiveService"> 155 <identity> 156 <dns value="services.heuristiclab.com" /> 157 </identity> 158 </endpoint> 159 <endpoint address="net.tcp://services.heuristiclab.com/Hive-3.3/HiveService.svc" 160 binding="netTcpBinding" bindingConfiguration="NetBinding_IHiveService" 161 contract="HeuristicLab.Clients.Hive.IHiveService" name="NetBinding_IHiveService"> 162 <identity> 163 <dns value="services.heuristiclab.com" /> 164 </identity> 165 </endpoint> 166 </client> 167 </system.serviceModel> 168 169 <runtime> 170 <gcServer enabled="true"/> 171 </runtime> 172 173 <startup> 174 <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> 175 </startup> 176 176 </configuration>
Note: See TracChangeset
for help on using the changeset viewer.