mirror of
https://bitbucket.org/anguist/ntpa
synced 2026-10-01 15:58:16 +00:00
interprocess communication
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
// Author:
|
||||
// Carsten Sonne Larsen <cs@innolan.dk>
|
||||
//
|
||||
// Copyright (c) 2013 Carsten Sonne Larsen
|
||||
// Copyright (c) 2013-2016 Carsten Sonne Larsen
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -30,29 +30,31 @@ namespace Ntp.Analyzer.Process
|
||||
{
|
||||
public sealed class Main
|
||||
{
|
||||
public Main (string configFile, int pid)
|
||||
public Main (string configFile, int pid, string name)
|
||||
{
|
||||
// Also update solution version.
|
||||
version = "8.8.5";
|
||||
version = "8.8.6";
|
||||
|
||||
this.configFile = configFile;
|
||||
this.pid = pid;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
private readonly string version;
|
||||
private readonly string configFile;
|
||||
private readonly int pid;
|
||||
private readonly string name;
|
||||
|
||||
public void Start ()
|
||||
{
|
||||
Initializer i = new Initializer (version, configFile, pid);
|
||||
Initializer i = new Initializer (version, configFile, pid, name);
|
||||
i.Run ();
|
||||
|
||||
if (!i.Ready) {
|
||||
return;
|
||||
}
|
||||
|
||||
Cluster c = new Cluster (i.Scheduler, i.Nodes, i.Log);
|
||||
Cluster c = new Cluster (name, i.Scheduler, i.Nodes, i.Log);
|
||||
c.Activate ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user