Inheritance: Akka.Remote.TestKit.MultiNodeConfig
示例#1
0
        protected ClusterShardingGracefulShutdownSpec(ClusterShardingGracefulShutdownSpecConfig config)
            : base(config, typeof(ClusterShardingGracefulShutdownSpec))
        {
            _config = config;

            _region = new Lazy <IActorRef>(() => ClusterSharding.Get(Sys).ShardRegion("Entity"));
        }
        protected ClusterShardingGracefulShutdownSpec(ClusterShardingGracefulShutdownSpecConfig config, Type type)
            : base(config, type)
        {
            _config           = config;
            _region           = new Lazy <IActorRef>(() => ClusterSharding.Get(Sys).ShardRegion("Entity"));
            _storageLocations = new List <FileInfo>
            {
                new FileInfo(Sys.Settings.Config.GetString("akka.cluster.sharding.distributed-data.durable.lmdb.dir"))
            };

            IsDDataMode = config.Mode == "ddata";
            DeleteStorageLocations();
            EnterBarrier("startup");
        }