congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PrimitiveManagementService.getMembershipService
Code IndexAdd Tabnine to your IDE (free)

How to use
getMembershipService
method
in
io.atomix.primitive.PrimitiveManagementService

Best Java code snippets using io.atomix.primitive.PrimitiveManagementService.getMembershipService (Showing top 10 results out of 315)

origin: atomix/atomix

@Override
public CompletableFuture<Void> stop() {
 if (started.compareAndSet(true, false)) {
  managementService.getMembershipService().removeListener(clusterEventListener);
  return transactions.close().exceptionally(e -> null);
 }
 return CompletableFuture.completedFuture(null);
}
origin: atomix/atomix

public CoreTransactionService(PrimitiveManagementService managementService) {
 this.managementService = checkNotNull(managementService);
 this.localMemberId = managementService.getMembershipService().getLocalMember().id();
}
origin: atomix/atomix

public CrdtCounterDelegate(String name, CrdtProtocolConfig config, PrimitiveManagementService managementService) {
 this.localMemberId = managementService.getMembershipService().getLocalMember().id();
 this.clusterCommunicator = managementService.getCommunicationService();
 this.executorService = managementService.getExecutorService();
 this.subject = String.format("atomix-crdt-counter-%s", name);
 clusterCommunicator.subscribe(subject, SERIALIZER::decode, this::updateCounters, executorService);
 broadcastFuture = executorService.scheduleAtFixedRate(
   this::broadcastCounters, config.getGossipInterval().toMillis(), config.getGossipInterval().toMillis(), TimeUnit.MILLISECONDS);
}
origin: atomix/atomix

@Override
@SuppressWarnings("unchecked")
public CompletableFuture<TransactionService> start() {
 PrimitiveProtocol protocol = managementService.getPartitionService().getSystemPartitionGroup().newProtocol();
 return AtomicMapType.<TransactionId, TransactionInfo>instance()
   .newBuilder("atomix-transactions", new AtomicMapConfig(), managementService)
   .withSerializer(SERIALIZER)
   .withProtocol((ProxyProtocol) protocol)
   .withCacheEnabled()
   .buildAsync()
   .thenApply(transactions -> {
    this.transactions = transactions.async();
    managementService.getMembershipService().addListener(clusterEventListener);
    LOGGER.info("Started");
    started.set(true);
    return this;
   });
}
origin: atomix/atomix

public AntiEntropyMapDelegate(String name, Serializer entrySerializer, AntiEntropyProtocolConfig config, PrimitiveManagementService managementService) {
 this.localMemberId = managementService.getMembershipService().getLocalMember().id();
 this.mapName = name;
 this.entrySerializer = entrySerializer;
 this.membershipService = managementService.getMembershipService();
   : managementService.getMembershipService()
     .getMembers()
     .stream()
origin: io.atomix/atomix

@Override
public CompletableFuture<Void> stop() {
 if (started.compareAndSet(true, false)) {
  managementService.getMembershipService().removeListener(clusterEventListener);
  return transactions.close().exceptionally(e -> null);
 }
 return CompletableFuture.completedFuture(null);
}
origin: io.atomix/atomix

public CoreTransactionService(PrimitiveManagementService managementService) {
 this.managementService = checkNotNull(managementService);
 this.localMemberId = managementService.getMembershipService().getLocalMember().id();
}
origin: io.atomix/atomix-gossip

public CrdtCounterDelegate(String name, CrdtProtocolConfig config, PrimitiveManagementService managementService) {
 this.localMemberId = managementService.getMembershipService().getLocalMember().id();
 this.clusterCommunicator = managementService.getCommunicationService();
 this.executorService = managementService.getExecutorService();
 this.subject = String.format("atomix-crdt-counter-%s", name);
 clusterCommunicator.subscribe(subject, SERIALIZER::decode, this::updateCounters, executorService);
 broadcastFuture = executorService.scheduleAtFixedRate(
   this::broadcastCounters, config.getGossipInterval().toMillis(), config.getGossipInterval().toMillis(), TimeUnit.MILLISECONDS);
}
origin: io.atomix/atomix

@Override
@SuppressWarnings("unchecked")
public CompletableFuture<TransactionService> start() {
 PrimitiveProtocol protocol = managementService.getPartitionService().getSystemPartitionGroup().newProtocol();
 return AtomicMapType.<TransactionId, TransactionInfo>instance()
   .newBuilder("atomix-transactions", new AtomicMapConfig(), managementService)
   .withSerializer(SERIALIZER)
   .withProtocol((ProxyProtocol) protocol)
   .withCacheEnabled()
   .buildAsync()
   .thenApply(transactions -> {
    this.transactions = transactions.async();
    managementService.getMembershipService().addListener(clusterEventListener);
    LOGGER.info("Started");
    started.set(true);
    return this;
   });
}
origin: io.atomix/atomix-gossip

public AntiEntropyMapDelegate(String name, Serializer entrySerializer, AntiEntropyProtocolConfig config, PrimitiveManagementService managementService) {
 this.localMemberId = managementService.getMembershipService().getLocalMember().id();
 this.mapName = name;
 this.entrySerializer = entrySerializer;
 this.membershipService = managementService.getMembershipService();
   managementService.getMembershipService()
     .getMembers()
     .stream()
io.atomix.primitivePrimitiveManagementServicegetMembershipService

Javadoc

Returns the cluster service.

Popular methods of PrimitiveManagementService

  • getExecutorService
  • getPartitionService
  • getPrimitiveCache
  • getCommunicationService
  • getEventService
  • getPrimitiveRegistry
  • getPrimitiveTypeRegistry
  • getProtocolTypeRegistry
  • getSerializationService

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • CodeWhisperer alternatives
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