示例#1
0
        public static ClusterConfig SeedNode(IAkkaNetworkAddress address, params IAkkaNetworkAddress[] otherSeeds)
        {
            var allSeeds  = otherSeeds.Union(new[] { address });
            var seedNodes = allSeeds.Select(GetSeedNetworkAddress).ToArray();

            return(new ClusterConfig(address, seedNodes));
        }
示例#2
0
 public AkkaConfiguration(IAkkaNetworkAddress networkConf,
                          IAkkaDbConfiguration dbConf,
                          LogVerbosity logVerbosity = LogVerbosity.Warning)
 {
     Network       = networkConf;
     Persistence   = dbConf;
     _logVerbosity = logVerbosity;
 }
示例#3
0
        public GridNodeConnector(IAkkaNetworkAddress serverAddress, AkkaConfiguration clientConfiguration = null)
        {
            _serverAddress = serverAddress;

            var conf = clientConfiguration ?? new ConsoleAkkaConfiguretion();

            _consoleSystem = conf.CreateInMemorySystem();
            DomainEventsJsonSerializationExtensionProvider.Provider.Apply(_consoleSystem);
        }
示例#4
0
 protected RemoteActorConfig(IAkkaNetworkAddress config) : this(config.PortNumber, config.Host, config.PublicHost, config.EnforceIpVersion)
 {
 }
示例#5
0
 public ClusterConfig(IAkkaNetworkAddress config, params string[] seedNodes) : base(config)
 {
     _seedNodes = seedNodes;
 }
示例#6
0
        private static string GetSeedNetworkAddress(IAkkaNetworkAddress conf)
        {
            string networkAddress = $"akka.tcp://{conf.SystemName}@{conf.Host}:{conf.PortNumber}";

            return(networkAddress);
        }
示例#7
0
        public static ClusterConfig NonSeedNode(IAkkaNetworkAddress address, IAkkaNetworkAddress[] seedNodesAddresses)
        {
            var seedNodes = seedNodesAddresses.Select(GetSeedNetworkAddress).ToArray();

            return(new ClusterConfig(new AkkaNetworkAddress(address.SystemName, address.Host, 0), seedNodes));
        }
示例#8
0
 public static string ToRootSelectionPath(this IAkkaNetworkAddress adr)
 {
     return($"akka.tcp://{adr.SystemName}@{adr.Host}:{adr.PortNumber}/user");
 }
示例#9
0
 public StandAloneConfig(IAkkaNetworkAddress address) : base(address)
 {
 }