/// <summary> /// Registers existing miner. /// </summary> /// <param name="miner">LISpMiner to register.</param> /// <returns>ID of registered LISpMiner.</returns> public void Unregister(LISpMiner.LISpMiner miner) { var m = this.GetMiner(miner.Id); if (m != null) { RegisteredMiners.Remove(miner.Id); miner.Dispose(); } }
internal LMSwbImporter(LISpMiner lispMiner, ODBC.ConnectionString connectionString, string lmPrivatePath) : base() { this.LISpMiner = lispMiner; this.LMExecutablesPath = this.LISpMiner.LMExecutablesPath; this.LMPrivatePath = lmPrivatePath; this.OdbcConnectionString = connectionString.Value; this.ApplicationName = "LMSwbImporter.exe"; this.AppLog = String.Format("{0}-{1}.dat", "_AppLog_importer", Guid.NewGuid()); }
private static void CopyToPool(Environment environment, LISpMiner miner) { if (!miner.SharedPool) { DirectoryUtil.Copy(environment.LMPath, miner.LMExecutablesPath); } else { Directory.CreateDirectory(miner.LMPrivatePath); } }
internal LMSwbImporter(LISpMiner lispMiner, ODBC.ConnectionString connectionString, string lmPrivatePath) : base() { this.LISpMiner = lispMiner; this.LMExecutablesPath = this.LISpMiner.LMExecutablesPath; this.LMPrivatePath = lmPrivatePath; this.OdbcConnectionString = connectionString.Value; this.ApplicationName = "LMSwbImporter.exe"; this.AppLog = String.Format("{0}-{1}.dat", "_AppLog_importer", Guid.NewGuid()); }
internal LMProcPooler(LISpMiner lispMiner, ODBC.ConnectionString connectionString, string lmPrivatePath) : base() { this.LISpMiner = lispMiner; this.LMExecutablesPath = this.LISpMiner.LMExecutablesPath; this.LMPrivatePath = lmPrivatePath; this.OdbcConnectionString = connectionString.Value; this.ApplicationName = "LMProcPooler.exe"; this.AppLog = String.Format("{0}-{1}.dat", "_AppLog_LMProcPooler", Guid.NewGuid()); this.CancelAll = false; // this.TimeOut = 10; }
internal LMProcPooler(LISpMiner lispMiner, ODBC.ConnectionString connectionString, string lmPrivatePath) : base() { this.LISpMiner = lispMiner; this.LMExecutablesPath = this.LISpMiner.LMExecutablesPath; this.LMPrivatePath = lmPrivatePath; this.OdbcConnectionString = connectionString.Value; this.ApplicationName = "LMProcPooler.exe"; this.AppLog = String.Format("{0}-{1}.dat", "_AppLog_LMProcPooler", Guid.NewGuid()); this.CancelAll = false; // this.TimeOut = 10; }
internal LMSwbExporter(LISpMiner lispMiner, ODBC.ConnectionString connectionString, string lmPrivatePath) : base() { this.LISpMiner = lispMiner; this.LMExecutablesPath = this.LISpMiner.LMExecutablesPath; this.LMPrivatePath = lmPrivatePath; this.OdbcConnectionString = connectionString.Value; this.ApplicationName = "LMSwbExporter.exe"; this.AppLog = String.Format("{0}-{1}.dat", "_AppLog_exporter", Guid.NewGuid()); this.NoAttributeDisctinctValues = false; this.NoEscapeSeqUnicode = false; }
internal LMSwbExporter(LISpMiner lispMiner, ODBC.ConnectionString connectionString, string lmPrivatePath) : base() { this.LISpMiner = lispMiner; this.LMExecutablesPath = this.LISpMiner.LMExecutablesPath; this.LMPrivatePath = lmPrivatePath; this.OdbcConnectionString = connectionString.Value; this.ApplicationName = "LMSwbExporter.exe"; this.AppLog = String.Format("{0}-{1}.dat", "_AppLog_exporter", Guid.NewGuid()); this.NoAttributeDisctinctValues = false; this.NoEscapeSeqUnicode = false; }
internal LMGridPooler(LISpMiner lispMiner, ODBC.ConnectionString connectionString, string lmPrivatePath, PCGridSettings gridSettings) : base() { this.LISpMiner = lispMiner; this.LMExecutablesPath = this.LISpMiner.LMExecutablesPath; this.LMPrivatePath = lmPrivatePath; this.OdbcConnectionString = connectionString.Value; this.GridSettings = gridSettings; this.GridDataPath = Path.GetFullPath(string.Format(@"{0}\PCGrid", this.LMPrivatePath)); this.ApplicationName = "LMGridPooler.exe"; this.AppLog = String.Format("{0}-{1}.dat", "_AppLog_LMGridPooler", Guid.NewGuid()); this.CancelAll = false; // this.TimeOut = 10; InitializePCGrid(); }
internal LMGridPooler(LISpMiner lispMiner, ODBC.ConnectionString connectionString, string lmPrivatePath, PCGridSettings gridSettings) : base() { this.LISpMiner = lispMiner; this.LMExecutablesPath = this.LISpMiner.LMExecutablesPath; this.LMPrivatePath = lmPrivatePath; this.OdbcConnectionString = connectionString.Value; this.GridSettings = gridSettings; this.GridDataPath = Path.GetFullPath(string.Format(@"{0}\PCGrid", this.LMPrivatePath)); this.ApplicationName = "LMGridPooler.exe"; this.AppLog = String.Format("{0}-{1}.dat", "_AppLog_LMGridPooler", Guid.NewGuid()); this.CancelAll = false; // this.TimeOut = 10; InitializePCGrid(); }
/// <summary> /// Registers existing miner. /// </summary> /// <param name="miner">LISpMiner to register.</param> /// <returns>ID of registered LISpMiner.</returns> public string Register(LISpMiner.LISpMiner miner) { RegisteredMiners.Add(miner.Id, miner); return(miner.Id); }
private static void CopyToPool(Environment environment, LISpMiner miner) { if (!miner.SharedPool) { DirectoryUtil.Copy(environment.LMPath, miner.LMExecutablesPath); } else { Directory.CreateDirectory(miner.LMPrivatePath); } }