Exemplo n.º 1
0
 public TaskScheduler(string taskName, string workDir, string[] mainFileList, NodeDiscover finder, Connection connection)
 {
     _taskName = taskName;
     _storage = new FileStorage(workDir, taskName);
     _mainFileList = _storage.Precache(mainFileList);
     _finder = finder;
     _connection = connection;
 }
Exemplo n.º 2
0
 public TaskProcess(string nodeName, string taskName, Connection masterConnect,
     string workDir, Dictionary<string, ulong> mainFileList,
     bool haltOnException, int maxThreadsCount)
 {
     _nodeName = nodeName;
     _taskName = taskName;
     _masterConnect = masterConnect;
     _storage = new FileStorage(workDir, taskName, masterConnect);
     _mainFileList = mainFileList;
     _haltOnException = haltOnException;
     _maxThreadsCount = maxThreadsCount;
     _status = NodeTaskStatus.Unknown;
 }