Beispiel #1
0
        public void InitializeClusterSystem()
        {
            Program.ClusterSystem = ActorSystemFactory.LaunchClusterManager();

            GlobalContext.Properties["ipaddress"] = AppSettings.GetIpAddressFromConfig();

            Program.ClusterHelper = Program.ClusterSystem.ActorOf(Props.Create(() => new ClusterHelper()), ActorPaths.ClusterHelperActor.Name);

            Program.ClusterSystem.ActorOf(ClusterSingletonManager.Props(
                                              singletonProps: Props.Create(() => new JobManager()),                                        // Props used to create actor singleton
                                              terminationMessage: PoisonPill.Instance,                                                     // message used to stop actor gracefully
                                              settings: ClusterSingletonManagerSettings.Create(Program.ClusterSystem).WithRole("worker")), // cluster singleton manager settings
                                          name: "jobmanager");
        }
Beispiel #2
0
 public void InitializeCluster()
 {
     _lighthouseSystem     = ActorSystemFactory.LaunchClusterManager();
     Program.ClusterSystem = _lighthouseSystem;
     Program.ClusterHelper = Program.ClusterSystem.ActorOf(Props.Create(() => new ClusterHelper()), ActorPaths.ClusterHelperActor.Name);
 }
Beispiel #3
0
 public void InitializeCluster()
 {
     Program.MyActorSystem = ActorSystemFactory.LaunchClusterManager(systemNameTB.Text, ipAddressTB.Text, Convert.ToInt32(portTB.Text));
     loggerBox.Items.Insert(0, string.Format("{0}  {1}", DateTime.Now.ToString("MM-dd-yy hh:mm:ss.fff"), "Actor System Started"));
     InitializeActors();
 }