interprocess communication

This commit is contained in:
2016-03-13 00:56:33 +01:00
parent a1af555c5d
commit 939f7a5abe
13 changed files with 249 additions and 26 deletions
+7 -5
View File
@@ -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 ();
}
}