Last change
on this file since 5306 was
5153,
checked in by cneumuel, 14 years ago
|
#1260
- increased timeouts for sent jobs (which are needed if the jobs take long time to deserialize on slave)
- added DeleteJob to ClientService
- made optimizer actually Pause instead of Stop when stop is called explicitly (so they can be resumed later)
- temporarily disabled job-abortion from server because it aborted jobs which took too long to deserialize on slaves (this issue needs to be investigated)
- reduced locking of engines on slave so that the deserialization does not block heartbeats
#1347
- worked on HiveEngine
- added test project for HiveEngine
|
File size:
878 bytes
|
Line | |
---|
1 |
|
---|
2 | using System;
|
---|
3 | using System.Collections.Generic;
|
---|
4 | using System.IO;
|
---|
5 | using System.Linq;
|
---|
6 | using System.Reflection;
|
---|
7 | using HeuristicLab.PluginInfrastructure;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.HiveEngineTest {
|
---|
10 | internal static class PluginLoader {
|
---|
11 | public const string AssemblyExtension = ".dll";
|
---|
12 | public static List<Assembly> pluginAssemblies;
|
---|
13 |
|
---|
14 | static PluginLoader() {
|
---|
15 | foreach (string path in Directory.GetFiles(Environment.CurrentDirectory)
|
---|
16 | .Where(s => s.EndsWith(AssemblyExtension)))
|
---|
17 | Assembly.LoadFrom(path);
|
---|
18 |
|
---|
19 | pluginAssemblies = AppDomain.CurrentDomain.GetAssemblies().Where(IsPluginAssembly).ToList();
|
---|
20 | }
|
---|
21 |
|
---|
22 | private static bool IsPluginAssembly(Assembly assembly) {
|
---|
23 | return assembly.GetExportedTypes()
|
---|
24 | .Where(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface).Any();
|
---|
25 | }
|
---|
26 | }
|
---|
27 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.