示例#1
0
        public static void Shutdown(bool gracefull = true)
        {
            if (gracefull)
            {
                Config.ClusterProvider.Shutdown();
                //This is to wait ownership transfering complete.
                Task.Delay(2000).Wait();
                MemberList.Stop();
                PidCache.Stop();
                Partition.Stop();
            }

            Remote.Remote.Shutdown(gracefull);

            Logger.LogInformation("Stopped Cluster");
        }
示例#2
0
        public static void Shutdown(bool gracefull = true)
        {
            if (gracefull)
            {
                cp.Shutdown();

                MemberList.UnsubEventStream();
                MemberList.Stop();
                PidCache.UnsubEventStream();
                PidCache.Stop();
                Partition.UnsubEventStream();
                Partition.StopPartitionActors();
            }

            Remote.Remote.Shutdown(gracefull);

            Logger.LogInformation("Stopped Cluster");
        }