- Timestamp:
- 05/02/11 19:07:24 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4.csproj
r5721 r6101 58 58 <Compile Include="Program.cs" /> 59 59 <Compile Include="Properties\AssemblyInfo.cs" /> 60 <Compile Include="SlaveCommListener.cs" /> 60 61 </ItemGroup> 61 62 <ItemGroup> 62 <ProjectReference Include="..\HeuristicLab.Clients.Hive.Slave.Tests\HeuristicLab.Clients.Hive.Slave.Tests-3.4.csproj">63 <Project>{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}</Project>64 <Name>HeuristicLab.Clients.Hive.Slave.Tests-3.4</Name>65 </ProjectReference>66 63 <ProjectReference Include="..\HeuristicLab.Clients.Hive.Slave\3.4\HeuristicLab.Clients.Hive.Slave-3.4.csproj"> 67 64 <Project>{989FE92B-484E-41EE-87E2-6A24AF0381D8}</Project> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4/Program.cs
r6039 r6101 22 22 using System; 23 23 using System.Threading; 24 using HeuristicLab.Clients.Hive.SlaveCore.Tests; 24 25 25 26 26 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/HeuristicLab.Clients.Hive.Slave.Tests-3.4.csproj
r5852 r6101 66 66 </PropertyGroup> 67 67 <ItemGroup> 68 <Reference Include="ALGLIB-2.5.0">69 <HintPath>C:\Program Files\HeuristicLab 3.3\ALGLIB-2.5.0.dll</HintPath>70 </Reference>71 68 <Reference Include="ALGLIB-3.1.0"> 72 69 <HintPath>C:\Program Files\HeuristicLab 3.3\ALGLIB-3.1.0.dll</HintPath> … … 74 71 <Reference Include="Google.ProtocolBuffers-0.9.1"> 75 72 <HintPath>C:\Program Files\HeuristicLab 3.3\Google.ProtocolBuffers-0.9.1.dll</HintPath> 76 </Reference>77 <Reference Include="HeuristicLab.ALGLIB-2.5.0">78 <HintPath>C:\Program Files\HeuristicLab 3.3\HeuristicLab.ALGLIB-2.5.0.dll</HintPath>79 73 </Reference> 80 74 <Reference Include="HeuristicLab.ALGLIB-3.1.0"> … … 347 341 <Compile Include="Properties\AssemblyInfo.cs" /> 348 342 <Compile Include="Mocks\MockServiceLocator.cs" /> 349 <Compile Include="SlaveCommListener.cs" />350 343 <Compile Include="SlaveTest.cs" /> 351 344 </ItemGroup> 352 345 <ItemGroup> 346 <ProjectReference Include="..\HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4\HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4.csproj"> 347 <Project>{464D70B8-2D91-485C-B622-22E4A4891C68}</Project> 348 <Name>HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4</Name> 349 </ProjectReference> 353 350 <ProjectReference Include="..\HeuristicLab.Clients.Hive.Slave\3.4\HeuristicLab.Clients.Hive.Slave-3.4.csproj"> 354 351 <Project>{989FE92B-484E-41EE-87E2-6A24AF0381D8}</Project> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/SlaveTest.cs
r6006 r6101 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Clients.Hive.SlaveCore.ConsoleClient; 25 26 using Microsoft.VisualStudio.TestTools.UnitTesting; 26 27 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs
r6100 r6101 79 79 slaveComm = new ServiceHost(typeof(SlaveCommunicationService)); 80 80 slaveComm.Open(); 81 82 81 clientCom = SlaveClientCom.Instance.ClientCom; 82 83 // delete all left over job directories 84 PluginCache.Instance.CleanPluginTemp(); 83 85 clientCom.LogMessage("Hive Slave started"); 84 86 … … 483 485 AppDomain appDomain = HeuristicLab.PluginInfrastructure.Sandboxing.SandboxManager.CreateAndInitSandbox(myJob.Id.ToString(), pluginDir, Path.Combine(pluginDir, configFileName)); 484 486 appDomain.UnhandledException += new UnhandledExceptionEventHandler(AppDomain_UnhandledException); 487 Executor engine; 485 488 lock (engines) { 486 489 appDomains.Add(myJob.Id, appDomain); 487 490 clientCom.LogMessage("Creating AppDomain"); 488 Executorengine = (Executor)appDomain.CreateInstanceAndUnwrap(typeof(Executor).Assembly.GetName().Name, typeof(Executor).FullName);491 engine = (Executor)appDomain.CreateInstanceAndUnwrap(typeof(Executor).Assembly.GetName().Name, typeof(Executor).FullName); 489 492 clientCom.LogMessage("Created AppDomain"); 490 493 engine.JobId = myJob.Id; … … 492 495 clientCom.LogMessage("Starting Engine for job " + myJob.Id); 493 496 engines.Add(myJob.Id, engine); 494 engine.Start(jobData.Data);495 497 } 496 498 engine.Start(jobData.Data); 497 499 } 498 500 catch (Exception exception) { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/PluginCache.cs
r6008 r6101 231 231 232 232 /// <summary> 233 /// Checks the PluginTemp directory for orphaned directories and deletes them. 234 /// This should be only called if no jobs are currently running. 235 /// </summary> 236 public void CleanPluginTemp() { 237 if (Directory.Exists(PluginTempBaseDir)) { 238 foreach (string dir in Directory.EnumerateDirectories(PluginTempBaseDir)) { 239 try { 240 SlaveClientCom.Instance.ClientCom.LogMessage("Deleting orphaned directory " + dir); 241 Directory.Delete(dir, true); 242 } 243 catch (Exception ex) { 244 SlaveClientCom.Instance.ClientCom.LogMessage("Error cleaning up PluginTemp directory " + dir + ": " + ex.ToString()); 245 } 246 } 247 } 248 } 249 250 /// <summary> 233 251 /// checks the pluginCacheDirectory and deletes plugin folders which are not used anymore 234 /// </summary> 235 /// <param name="path"></param> 252 /// </summary> 236 253 private void CleanPluginCache() { 237 254 FileStream fs = null;
Note: See TracChangeset
for help on using the changeset viewer.