public Deployer(Settings settings) { _settings = settings; _deployment = settings.Config.GetConfig("akka.actor.deployment"); _default = _deployment.GetConfig("default"); Init(); }
/// <summary> /// Default constructor... /// </summary> public DefaultDispatcherPrerequisites(EventStream eventStream, IScheduler scheduler, Settings settings, Mailboxes mailboxes) { Mailboxes = mailboxes; Settings = settings; Scheduler = scheduler; EventStream = eventStream; }
public ClusterActorRefProvider(string systemName, Settings settings, EventStream eventStream /*DynamicAccess*/) : base(systemName, settings, eventStream) { var clusterConfig = ClusterConfigFactory.Default(); settings.InjectTopLevelFallback(clusterConfig); Deployer = new ClusterDeployer(settings); }
public Deployer(Settings settings) { _settings = settings; var config = settings.Config.GetConfig("akka.actor.deployment"); _default = config.GetConfig("default"); var rootObj = config.Root.GetObject(); if (rootObj == null) return; var unwrapped = rootObj.Unwrapped.Where(d => !d.Key.Equals("default")).ToArray(); foreach (var d in unwrapped.Select(x => ParseConfig(x.Key, config.GetConfig(x.Key)))) { SetDeploy(d); } }
public LocalActorRefProvider(string systemName, Settings settings, EventStream eventStream, Deployer deployer, Func<ActorPath, InternalActorRef> deadLettersFactory) { _settings = settings; _eventStream = eventStream; _deployer = deployer ?? new Deployer(settings); _rootPath = new RootActorPath(new Address("akka", systemName)); _log = Logging.GetLogger(eventStream, "LocalActorRefProvider(" + _rootPath.Address + ")"); if (deadLettersFactory == null) deadLettersFactory = p => new DeadLetterActorRef(this, p, _eventStream); _deadLetters = deadLettersFactory(_rootPath / "deadLetters"); _tempNumber = new AtomicCounterLong(1); _tempNode = _rootPath / "temp"; //TODO: _guardianSupervisorStrategyConfigurator = dynamicAccess.createInstanceFor[SupervisorStrategyConfigurator](settings.SupervisorStrategyClass, EmptyImmutableSeq).get _systemGuardianStrategy = SupervisorStrategy.DefaultStrategy; }
public IntPriorityMailbox(Settings settings, Config config) : base(settings, config) { }
public TaskManagerMailbox(Akka.Actor.Settings settings, Config config) : base(settings, config) { }
public ConsensusServiceMailbox(Akka.Actor.Settings settings, Config config) : base(settings, config) { }
/// <summary> /// TBD /// </summary> /// <param name="systemName">TBD</param> /// <param name="settings">TBD</param> /// <param name="eventStream">TBD</param> public LocalActorRefProvider(string systemName, Settings settings, EventStream eventStream) : this(systemName, settings, eventStream, null, null) { //Intentionally left blank }
public BoundedMessageQueue(Settings settings, Config config) : this(config.GetInt("mailbox-capacity"), config.GetTimeSpan("mailbox-push-timeout-time")) { }
public LocalActorRefProvider(string systemName, Settings settings, EventStream eventStream) : this(systemName, settings, eventStream, null, null) { //Intentionally left blank }
public ClusterDeployer(Settings settings) : base(settings) { }
public PriorityMailbox(Akka.Actor.Settings settings, Config config) : base(settings, config) { }
public Deployer(Settings settings) { this.settings = settings; deployment = settings.Config.GetConfig("akka.actor.deployment"); @default = deployment.GetConfig("default"); }
public ProtocolHandlerMailbox(Akka.Actor.Settings settings, Config config) : base(settings, config) { InitMessageFlags(); }
public RemoteNodeMailbox(Akka.Actor.Settings settings, Config config) : base(settings, config) { }
public RemoteDeployer(Settings settings) : base(settings) { }
public BlockchainMailbox(Akka.Actor.Settings settings, Config config) : base(settings, config) { }
public LocalActorRefProvider(string systemName, Settings settings, EventStream eventStream, Deployer deployer, Func<ActorPath, IInternalActorRef> deadLettersFactory) { _settings = settings; _eventStream = eventStream; _deployer = deployer ?? new Deployer(settings); _rootPath = new RootActorPath(new Address("akka", systemName)); _log = Logging.GetLogger(eventStream, "LocalActorRefProvider(" + _rootPath.Address + ")"); if(deadLettersFactory == null) deadLettersFactory = p => new DeadLetterActorRef(this, p, _eventStream); _deadLetters = deadLettersFactory(_rootPath / "deadLetters"); _tempNumber = new AtomicCounterLong(1); _tempNode = _rootPath / "temp"; _systemGuardianStrategy = SupervisorStrategy.DefaultStrategy; _userGuardianStrategyConfigurator = SupervisorStrategyConfigurator.CreateConfigurator(Settings.SupervisorStrategyClass); }
public ProtocolHandlerMailbox(Akka.Actor.Settings settings, Config config) : base(settings, config) { }
public AkkaIOTransport(ActorSystem system, Config config) { _settings = new Settings(config); _manager = system.ActorOf(Props.Create(() => new TransportManager()), "IO-TRANSPORT"); }
protected internal override void OnStart(string[] args) { bool useRPC = false; for (int i = 0; i < args.Length; i++) { switch (args[i]) { case "/rpc": case "--rpc": case "-r": useRPC = true; break; case "/testnet": case "--testnet": case "-t": ProtocolSettings.Initialize(new ConfigurationBuilder().AddJsonFile("protocol.testnet.json").Build()); Settings.Initialize(new ConfigurationBuilder().AddJsonFile("config.testnet.json").Build()); break; case "/mainnet": case "--mainnet": case "-m": ProtocolSettings.Initialize(new ConfigurationBuilder().AddJsonFile("protocol.mainnet.json").Build()); Settings.Initialize(new ConfigurationBuilder().AddJsonFile("config.mainnet.json").Build()); break; } } store = new LevelDBStore(Path.GetFullPath(Settings.Default.Paths.Chain)); system = new TrustlinkSystem(store); system.StartNode(new ChannelsConfig { Tcp = new IPEndPoint(IPAddress.Any, Settings.Default.P2P.Port), WebSocket = new IPEndPoint(IPAddress.Any, Settings.Default.P2P.WsPort), MinDesiredConnections = Settings.Default.P2P.MinDesiredConnections, MaxConnections = Settings.Default.P2P.MaxConnections, MaxConnectionsPerAddress = Settings.Default.P2P.MaxConnectionsPerAddress }); if (Settings.Default.UnlockWallet.IsActive) { try { Program.Wallet = OpenWallet(Settings.Default.UnlockWallet.Path, Settings.Default.UnlockWallet.Password); } catch (CryptographicException) { Console.WriteLine($"failed to open file \"{Settings.Default.UnlockWallet.Path}\""); } if (Settings.Default.UnlockWallet.StartConsensus && Program.Wallet != null) { OnStartConsensusCommand(null); } } if (useRPC) { system.StartRpc(Settings.Default.RPC.BindAddress, Settings.Default.RPC.Port, wallet: Program.Wallet, sslCert: Settings.Default.RPC.SslCert, password: Settings.Default.RPC.SslCertPassword, maxLinkInvoke: Settings.Default.RPC.MaxLINKInvoke); } }