Tabnine Logo
DistributedPubSubMediator$Put
Code IndexAdd Tabnine to your IDE (free)

How to use
DistributedPubSubMediator$Put
in
akka.cluster.pubsub

Best Java code snippets using akka.cluster.pubsub.DistributedPubSubMediator$Put (Showing top 10 results out of 315)

origin: eclipse/ditto

        " process events again"));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
origin: eclipse/ditto

    PoliciesPersistenceStreamingActorCreator.props(config, tagsStreamingCacheSize));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
pubSubMediator.tell(new DistributedPubSubMediator.Put(persistenceStreamingActor), getSelf());
origin: org.eclipse.ditto/ditto-services-thingsearch-updater-actors

        " process events again"));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
origin: eclipse/ditto

    ProxyActor.props(pubSubMediator, devOpsCommandsActor, conciergeForwarder));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
origin: eclipse/ditto

    ThingsPersistenceStreamingActorCreator.props(config, tagsStreamingCacheSize));
pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
pubSubMediator.tell(new DistributedPubSubMediator.Put(persistenceStreamingActor), getSelf());
origin: eclipse/ditto

private <C extends AbstractConciergeConfigReader> ConciergeRootActor(final C configReader,
    final ActorRef pubSubMediator,
    final AbstractEnforcerActorFactory<C> authorizationProxyPropsFactory,
    final ActorMaterializer materializer) {
  requireNonNull(configReader);
  requireNonNull(pubSubMediator);
  requireNonNull(authorizationProxyPropsFactory);
  requireNonNull(materializer);
  final ActorContext context = getContext();
  final ActorRef conciergeShardRegion =
      authorizationProxyPropsFactory.startEnforcerActor(context, configReader, pubSubMediator);
  retrieveStatisticsDetailsResponseSupplier = RetrieveStatisticsDetailsResponseSupplier.of(conciergeShardRegion,
      ConciergeMessagingConstants.SHARD_REGION, log);
  final ActorRef conciergeForwarder = startChildActor(context, ConciergeForwarderActor.ACTOR_NAME,
      ConciergeForwarderActor.props(pubSubMediator, conciergeShardRegion));
  pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
  pubSubMediator.tell(new DistributedPubSubMediator.Put(conciergeForwarder), getSelf());
  startClusterSingletonActor(context, BatchSupervisorActor.ACTOR_NAME,
      BatchSupervisorActor.props(pubSubMediator, conciergeForwarder));
  final ActorRef healthCheckingActor = startHealthCheckingActor(context, configReader);
  final HttpConfigReader httpConfig = configReader.http();
  bindHttpStatusRoute(healthCheckingActor, httpConfig, materializer);
}
origin: eclipse/ditto

private SearchRootActor(final ServiceConfigReader configReader, final ActorRef pubSubMediator,
    final ActorMaterializer materializer) {
  final Config rawConfig = configReader.getRawConfig();
  final CommandListener kamonCommandListener = rawConfig.getBoolean(ConfigKeys.MONITORING_COMMANDS_ENABLED) ?
      new KamonCommandListener(KAMON_METRICS_PREFIX) : null;
  final ConnectionPoolListener kamonConnectionPoolListener =
      rawConfig.getBoolean(ConfigKeys.MONITORING_CONNECTION_POOL_ENABLED) ?
          new KamonConnectionPoolListener(KAMON_METRICS_PREFIX) : null;
  final MongoClientWrapper mongoClientWrapper =
      MongoClientWrapper.newInstance(rawConfig, kamonCommandListener, kamonConnectionPoolListener);
  final StreamMetadataPersistence thingsSyncPersistence =
      MongoSearchSyncPersistence.initializedInstance(THINGS_SYNC_STATE_COLLECTION_NAME, mongoClientWrapper,
          materializer);
  final StreamMetadataPersistence policiesSyncPersistence =
      MongoSearchSyncPersistence.initializedInstance(POLICIES_SYNC_STATE_COLLECTION_NAME, mongoClientWrapper,
          materializer);
  final ActorRef searchActor = initializeSearchActor(configReader, mongoClientWrapper);
  final ActorRef healthCheckingActor =
      initializeHealthCheckActor(configReader, thingsSyncPersistence, policiesSyncPersistence);
  pubSubMediator.tell(new DistributedPubSubMediator.Put(searchActor), getSelf());
  createHealthCheckingActorHttpBinding(configReader.http(), healthCheckingActor, materializer);
  startChildActor(SearchUpdaterRootActor.ACTOR_NAME, SearchUpdaterRootActor.props(configReader, pubSubMediator,
      materializer, thingsSyncPersistence, policiesSyncPersistence));
}
origin: eclipse/ditto

  /**
   * Tell PubSubMediator about self so that other actors may send messages here from other cluster nodes.
   *
   * @param self ActorRef of this actor.
   * @param pubSubMediator Akka PubSub mediator.
   */
  private static void putSelfToPubSubMediator(final ActorRef self, final ActorRef pubSubMediator) {
    pubSubMediator.tell(new DistributedPubSubMediator.Put(self), self);
  }
}
origin: eclipse/ditto

private BlockedNamespacesUpdater(final BlockedNamespaces blockedNamespaces, final ActorRef pubSubMediator) {
  this.blockedNamespaces = blockedNamespaces;
  // register self for pub-sub on restart
  pubSubMediator.tell(new Put(getSelf()), getSelf());
  // subscribe to namespace-blocking commands
  pubSubMediator.tell(new DistributedPubSubMediator.Subscribe(BlockNamespace.TYPE, getSelf()), getSelf());
  pubSubMediator.tell(new DistributedPubSubMediator.Subscribe(UnblockNamespace.TYPE, getSelf()), getSelf());
}
origin: eclipse/ditto

@Override
public void preStart() {
  pubSubMediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
  pubSubMediator.tell(new DistributedPubSubMediator.Subscribe(BatchExecutionFinished.TYPE, ACTOR_NAME, getSelf()),
      getSelf());
}
akka.cluster.pubsubDistributedPubSubMediator$Put

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JButton (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now