scala.Option<Object> portOption = AkkaUtils.getAddress(getContext().system()).port(); int actorSystemPort = portOption.isDefined() ? (int) portOption.get() : -1;
final String akkaHostname = AkkaUtils.getAddress(actorSystem).host().get(); final int akkaPort = (Integer) AkkaUtils.getAddress(actorSystem).port().get();
@Override public void wasQuarantinedBy(String remoteSystem, ActorSystem actorSystem) { Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); log.error("The actor system {} has been quarantined by {}. Shutting the actor system " + "down to be able to reestablish a connection!", actorSystemAddress, remoteSystem); shutdownActorSystem(actorSystem); }
@Override public void wasQuarantinedBy(String remoteSystem, ActorSystem actorSystem) { Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); log.error("The actor system {} has been quarantined by {}. Shutting the actor system " + "down to be able to reestablish a connection!", actorSystemAddress, remoteSystem); shutdownActorSystem(actorSystem); }
@Override public void hasQuarantined(String remoteSystem, ActorSystem actorSystem) { Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); log.error("The actor system {} has quarantined the remote actor system {}. Shutting " + "the actor system down to be able to reestablish a connection!", actorSystemAddress, remoteSystem); shutdownActorSystem(actorSystem); }
@Override public void hasQuarantined(String remoteSystem, ActorSystem actorSystem) { Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); log.error("The actor system {} has quarantined the remote actor system {}. Shutting " + "the actor system down to be able to reestablish a connection!", actorSystemAddress, remoteSystem); shutdownActorSystem(actorSystem); }
@Override public void hasQuarantined(String remoteSystem, ActorSystem actorSystem) { Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); log.error("The actor system {} has quarantined the remote actor system {}. Shutting " + "the actor system down to be able to reestablish a connection!", actorSystemAddress, remoteSystem); shutdownActorSystem(actorSystem); }
@Override public void wasQuarantinedBy(String remoteSystem, ActorSystem actorSystem) { Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); log.error("The actor system {} has been quarantined by {}. Shutting the actor system " + "down to be able to reestablish a connection!", actorSystemAddress, remoteSystem); shutdownActorSystem(actorSystem); }
@Override public void wasQuarantinedBy(String remoteSystem, ActorSystem actorSystem) { Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); log.error("The actor system {} has been quarantined by {}. Shutting the actor system " + "down to be able to reestablish a connection!", actorSystemAddress, remoteSystem); shutdownActorSystem(actorSystem); }
@Override public void hasQuarantined(String remoteSystem, ActorSystem actorSystem) { Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); log.error("The actor system {} has quarantined the remote actor system {}. Shutting " + "the actor system down to be able to reestablish a connection!", actorSystemAddress, remoteSystem); shutdownActorSystem(actorSystem); }
logger.info("Actor system started at {}", AkkaUtils.getAddress(actorSystem)); return actorSystem;
logger.info("Actor system started at {}", AkkaUtils.getAddress(actorSystem)); return actorSystem;
logger.info("Actor system started at {}", AkkaUtils.getAddress(actorSystem)); return actorSystem;
final Address address = AkkaUtils.getAddress(actorSystem); config.setString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, address.host().get()); config.setString(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY, address.port().get().toString());
scala.Option<Object> portOption = AkkaUtils.getAddress(getContext().system()).port(); int actorSystemPort = portOption.isDefined() ? (int) portOption.get() : -1;
scala.Option<Object> portOption = AkkaUtils.getAddress(getContext().system()).port(); int actorSystemPort = portOption.isDefined() ? (int) portOption.get() : -1;
public AkkaRpcService(final ActorSystem actorSystem, final Time timeout) { this.actorSystem = checkNotNull(actorSystem, "actor system"); this.timeout = checkNotNull(timeout, "timeout"); if (actorSystem.settings().config().hasPath(MAXIMUM_FRAME_SIZE_PATH)) { maximumFramesize = actorSystem.settings().config().getBytes(MAXIMUM_FRAME_SIZE_PATH); } else { // only local communication maximumFramesize = Long.MAX_VALUE; } Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); if (actorSystemAddress.host().isDefined()) { address = actorSystemAddress.host().get(); } else { address = ""; } internalScheduledExecutor = new InternalScheduledExecutorImpl(actorSystem); }
public AkkaRpcService(final ActorSystem actorSystem, final Time timeout) { this.actorSystem = checkNotNull(actorSystem, "actor system"); this.timeout = checkNotNull(timeout, "timeout"); if (actorSystem.settings().config().hasPath(MAXIMUM_FRAME_SIZE_PATH)) { maximumFramesize = actorSystem.settings().config().getBytes(MAXIMUM_FRAME_SIZE_PATH); } else { // only local communication maximumFramesize = Long.MAX_VALUE; } Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); if (actorSystemAddress.host().isDefined()) { address = actorSystemAddress.host().get(); } else { address = ""; } if (actorSystemAddress.port().isDefined()) { port = (Integer) actorSystemAddress.port().get(); } else { port = -1; } internalScheduledExecutor = new ActorSystemScheduledExecutorAdapter(actorSystem); terminationFuture = new CompletableFuture<>(); stopped = false; }
public AkkaRpcService(final ActorSystem actorSystem, final Time timeout) { this.actorSystem = checkNotNull(actorSystem, "actor system"); this.timeout = checkNotNull(timeout, "timeout"); if (actorSystem.settings().config().hasPath(MAXIMUM_FRAME_SIZE_PATH)) { maximumFramesize = actorSystem.settings().config().getBytes(MAXIMUM_FRAME_SIZE_PATH); } else { // only local communication maximumFramesize = Long.MAX_VALUE; } Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); if (actorSystemAddress.host().isDefined()) { address = actorSystemAddress.host().get(); } else { address = ""; } if (actorSystemAddress.port().isDefined()) { port = (Integer) actorSystemAddress.port().get(); } else { port = -1; } internalScheduledExecutor = new ActorSystemScheduledExecutorAdapter(actorSystem); terminationFuture = new CompletableFuture<>(); stopped = false; }
public AkkaRpcService(final ActorSystem actorSystem, final Time timeout) { this.actorSystem = checkNotNull(actorSystem, "actor system"); this.timeout = checkNotNull(timeout, "timeout"); if (actorSystem.settings().config().hasPath(MAXIMUM_FRAME_SIZE_PATH)) { maximumFramesize = actorSystem.settings().config().getBytes(MAXIMUM_FRAME_SIZE_PATH); } else { // only local communication maximumFramesize = Long.MAX_VALUE; } Address actorSystemAddress = AkkaUtils.getAddress(actorSystem); if (actorSystemAddress.host().isDefined()) { address = actorSystemAddress.host().get(); } else { address = ""; } if (actorSystemAddress.port().isDefined()) { port = (Integer) actorSystemAddress.port().get(); } else { port = -1; } internalScheduledExecutor = new ActorSystemScheduledExecutorAdapter(actorSystem); terminationFuture = new CompletableFuture<>(); stopped = false; }