コード例 #1
0
ファイル: MasterNode.cs プロジェクト: supcry/Plex
        public MasterNode(string nodeName, IConnection connection, ICollection<IConnection> slaves)
        {
            // _nodeName = nodeName;
            _connection = new Connection(connection.Address, connection.Port);
            _finder = new NodeDiscover(slaves);

            Trace.TraceInformation("Создана мастер-нода " + nodeName + ", con=" + connection.Address + ":" + connection.Port + ", slavesCount=" + slaves.Count);
        }
コード例 #2
0
ファイル: TaskScheduler.cs プロジェクト: supcry/Plex
 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;
 }