public class AkkaBootstrapTools extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AkkaBootstrapTools.ActorSystemExecutorConfiguration
Configuration interface for
ActorSystem underlying executor. |
Modifier and Type | Method and Description |
---|---|
static RpcSystem.ForkJoinExecutorConfiguration |
getForkJoinExecutorConfiguration(Configuration configuration) |
static akka.actor.ActorSystem |
startLocalActorSystem(Configuration configuration,
String actorSystemName,
org.slf4j.Logger logger,
com.typesafe.config.Config actorSystemExecutorConfiguration,
com.typesafe.config.Config customConfig)
Starts a local Actor System.
|
static akka.actor.ActorSystem |
startRemoteActorSystem(Configuration configuration,
String externalAddress,
String externalPortRange,
org.slf4j.Logger logger)
Starts a remote ActorSystem at given address and specific port range.
|
static akka.actor.ActorSystem |
startRemoteActorSystem(Configuration configuration,
String actorSystemName,
String externalAddress,
String externalPortRange,
String bindAddress,
Optional<Integer> bindPort,
org.slf4j.Logger logger,
com.typesafe.config.Config actorSystemExecutorConfiguration,
com.typesafe.config.Config customConfig)
Starts a remote ActorSystem at given address and specific port range.
|
@VisibleForTesting public static akka.actor.ActorSystem startRemoteActorSystem(Configuration configuration, String externalAddress, String externalPortRange, org.slf4j.Logger logger) throws Exception
configuration
- The Flink configurationexternalAddress
- The external address to access the ActorSystem.externalPortRange
- The choosing range of the external port to access the ActorSystem.logger
- The logger to output log information.Exception
- Thrown when actor system cannot be started in specified port rangepublic static akka.actor.ActorSystem startRemoteActorSystem(Configuration configuration, String actorSystemName, String externalAddress, String externalPortRange, String bindAddress, Optional<Integer> bindPort, org.slf4j.Logger logger, com.typesafe.config.Config actorSystemExecutorConfiguration, com.typesafe.config.Config customConfig) throws Exception
configuration
- The Flink configurationactorSystemName
- Name of the started ActorSystem
externalAddress
- The external address to access the ActorSystem.externalPortRange
- The choosing range of the external port to access the ActorSystem.bindAddress
- The local address to bind to.bindPort
- The local port to bind to. If not present, then the external port will be
used.logger
- The logger to output log information.actorSystemExecutorConfiguration
- configuration for the ActorSystem's underlying
executorcustomConfig
- Custom Akka config to be combined with the config derived from Flink
configuration.Exception
- Thrown when actor system cannot be started in specified port rangepublic static akka.actor.ActorSystem startLocalActorSystem(Configuration configuration, String actorSystemName, org.slf4j.Logger logger, com.typesafe.config.Config actorSystemExecutorConfiguration, com.typesafe.config.Config customConfig) throws Exception
configuration
- The Flink configuration.actorSystemName
- Name of the started ActorSystem.logger
- The logger to output log information.actorSystemExecutorConfiguration
- Configuration for the ActorSystem's underlying
executor.customConfig
- Custom Akka config to be combined with the config derived from Flink
configuration.Exception
public static RpcSystem.ForkJoinExecutorConfiguration getForkJoinExecutorConfiguration(Configuration configuration)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.