Exemple #1
0
        public void ShardingBigtablePersistence_NoConfig_ShouldUseDefault()
        {
            var bigtablePersistence = ShardingBigtablePersistence.Get(Sys);

            Assert.Empty(bigtablePersistence.JournalSettings.TableName);
            Assert.Empty(bigtablePersistence.SnapshotSettings.TableName);
        }
        public void BigtablePersistence_UsingDedicatedShardingPlugin_ShouldUseBigtableShardingPlugin()
        {
            BigtablePersistence.Get(Sys);
            ShardingBigtablePersistence.Get(Sys);
            var clusterShardingJournalPlugin  = Sys.Settings.Config.GetString("akka.cluster.sharding.journal-plugin-id");
            var clusterShardingSnapshotPlugin = Sys.Settings.Config.GetString("akka.cluster.sharding.snapshot-plugin-id");

            Assert.Equal("akka.persistence.journal.bigtable-sharding", clusterShardingJournalPlugin);
            Assert.Equal("akka.persistence.snapshot-store.bigtable-sharding", clusterShardingSnapshotPlugin);
        }
Exemple #3
0
        public void ShardingBigtablePersistence_Get_ShouldAddExtension()
        {
            var shardingBigtablePersistence = ShardingBigtablePersistence.Get(Sys);

            Assert.NotNull(shardingBigtablePersistence);
            Assert.True(Sys.HasExtension <ShardingBigtablePersistence>());

            Assert.Equal("localhost", shardingBigtablePersistence.TransportSerializationSetttings.Hostname);
            Assert.Equal(2552, shardingBigtablePersistence.TransportSerializationSetttings.Port);
            Assert.Equal("akka.tcp", shardingBigtablePersistence.TransportSerializationSetttings.TranportProtocol);

            Assert.Equal("f", shardingBigtablePersistence.JournalSettings.FamilyName);
            Assert.Equal("f", shardingBigtablePersistence.SnapshotSettings.FamilyName);
        }
 public ShardingBigtableSnapshotStore() : base(ShardingBigtablePersistence.Get(Context.System))
 {
 }
 public ShardingBigtableJournal() : base(ShardingBigtablePersistence.Get(Context.System))
 {
 }