Hey everyone. Fantastic project! Following a while now... Watched your cluster contrib meeting on YT and there you mentioned the need of a MultiNode Visulaizer.
So I did a little something :). It is not pretty and it is written in F# (currently learning so code is probably a mess), so do not expect too much.
But maybe I can do something out of it (spit out static HTML) if needed.
https://github.com/Birnsen/MultiNodeVisualizer/blob/master/mnv.png
The numbers are the amount of events at that given moment. If an test fails is also not implemented yet but should be easy to do...
Had only one file to test it so others will probably fail.
protected override void PreStart()
{
base.PreStart();
Console.WriteLine("FooActor: PreStart");
}
protected override void PostStop()
{
base.PostStop();
Console.WriteLine("FooActor: PostStop");
}
protected override void OnReceive(object message)
{
string number = (string)message;
Console.WriteLine("FooActor: OnReceiving:\t {0}", number);
Thread.Sleep(2000);
Console.WriteLine("FooActor: OnReceived:\t {0}", number);
}
}
class Program
{
static void Main(string[] args)
{
using (ActorSystem system = ActorSystem.Create("BLUE"))
{
IActorRef fooActor = system.ActorOf(Props.Create(() => new FooActor()), "FooActor");
fooActor.Tell("1");
fooActor.Tell("2");
Thread.Sleep(100);
//system.Stop(fooActor);
system.Shutdown();
//fooActor.Tell(PoisonPill.Instance);
system.AwaitTermination();
Console.WriteLine("Shutdon Completed");
Console.ReadLine();
}
Console.ReadLine();
}
}