Changeset 5000 for branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core
- Timestamp:
- 11/30/10 15:58:33 (13 years ago)
- Location:
- branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades/SlaveFacade.cs
r4424 r5000 225 225 } 226 226 227 [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)] 228 [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Slave)] 229 public ResponseObject<HivePluginFile> GetConfigurationFile() { 230 return slaveCommunicator.GetConfigurationFile(); 231 } 232 227 233 #endregion 228 234 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/LifecycleManager.cs
r4810 r5000 30 30 namespace HeuristicLab.Hive.Server.Core { 31 31 class LifecycleManager : ILifecycleManager { 32 private readonly string pluginDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data\\Plugins"); 32 33 private AutoResetEvent waitHandle; 33 34 private Thread thread; … … 57 58 } 58 59 60 private byte[] configurationFile; 61 public byte[] ConfigurationFile { 62 get { 63 if (configurationFile == null) { 64 configurationFile = File.ReadAllBytes(Path.Combine(pluginDir, "HeuristicLab 3.3.exe.config")); 65 } 66 return configurationFile; 67 } 68 } 69 59 70 #region ILifecycleManager Members 60 71 … … 69 80 70 81 private void LoadPlugins() { 71 pm = new PluginManager( Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data\\Plugins"));82 pm = new PluginManager(pluginDir); 72 83 pm.DiscoverAndCheckPlugins(); 73 84 pm.InitializeLifetimeService(); … … 115 126 116 127 #endregion 117 118 119 128 } 120 129 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/SlaveCommunicator.cs
r4914 r5000 571 571 //jobStream.Close(); 572 572 573 DaoLocator.JobDao.SetBinaryJobFile(result.Id, serializedJob.ToArray()); 573 if (serializedJob.Count > 0) { 574 DaoLocator.JobDao.SetBinaryJobFile(result.Id, serializedJob.ToArray()); 575 } 574 576 } 575 577 Logger.Info("END Job received for Storage:"); … … 662 664 663 665 job.SerializedJobData = result; 664 666 665 667 DaoLocator.JobDao.Update(job.JobInfo); 666 668 … … 760 762 pd.Version.Major == pluginInfo.Version.Major && 761 763 pd.Version.Minor == pluginInfo.Version.Minor && 762 pd.Version.Revision >= pluginInfo.Version.Revision && 763 pd.Version.MinorRevision >= pluginInfo.Version.MinorRevision).SingleOrDefault(); 764 pd.Version.Build >= pluginInfo.Version.Build).SingleOrDefault(); // ignore revision here, otherwise each client who uses a more recent trunk-build than the server-build will not be able to execute the job 764 765 if (ipd != null) { 765 766 response.List.Add(ConvertPluginDescriptorToDto(ipd)); … … 788 789 } 789 790 791 public ResponseObject<HivePluginFile> GetConfigurationFile() { 792 var response = new ResponseObject<HivePluginFile>(); 793 response.Obj = new HivePluginFile(lifecycleManager.ConfigurationFile, "Sandbox.config"); 794 return response; 795 } 796 790 797 #endregion 791 798 }
Note: See TracChangeset
for help on using the changeset viewer.