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

How to use
getMembers
method
in
org.infinispan.distribution.LocalizedCacheTopology

Best Java code snippets using org.infinispan.distribution.LocalizedCacheTopology.getMembers (Showing top 6 results out of 315)

origin: org.infinispan/infinispan-hibernate-cache-commons

protected List<Address> getMembers() {
  return distributionManager.getCacheTopology().getMembers();
}
origin: org.infinispan/infinispan-core

public void assertConsistentHashMembers(List<org.infinispan.remoting.transport.Address> expectedMembers) {
  for (Cache c : cachesInThisPartition()) {
   assertEquals(new HashSet<>(c.getAdvancedCache().getDistributionManager().getCacheTopology().getMembers()), new HashSet<>(expectedMembers));
  }
}
origin: org.infinispan/infinispan-core

  private int topologySize(Cache cache) {
   return cache.getAdvancedCache().getDistributionManager().getCacheTopology().getMembers().size();
  }
}
origin: org.infinispan/infinispan-hibernate-cache-commons

protected Object endInvalidationAndInvokeNextInterceptor(TxInvocationContext<?> ctx, VisitableCommand command) throws Throwable {
  try {
    if (ctx.isOriginLocal()) {
      // We cannot use directly ctx.getAffectedKeys() and that includes keys from local-only operations.
      // During evictAll inside transaction this would cause unnecessary invalidate command
      if (!ctx.getModifications().isEmpty()) {
        Object[] keys = ctx.getModifications().stream()
          .flatMap(mod -> mod.getAffectedKeys().stream()).distinct().toArray();
        if (log.isTraceEnabled()) {
          log.tracef( "Sending end invalidation for keys %s asynchronously, modifications are %s",
            Arrays.toString(keys), ctx.getCacheTransaction().getModifications());
        }
        GlobalTransaction globalTransaction = ctx.getGlobalTransaction();
        EndInvalidationCommand commitCommand = cacheCommandInitializer.buildEndInvalidationCommand(
            cacheName, keys, globalTransaction);
        List<Address> members = distributionManager.getCacheTopology().getMembers();
        rpcManager.invokeRemotely(members, commitCommand, asyncUnordered);
        // If the transaction is not successful, *RegionAccessStrategy would not be called, therefore
        // we have to end invalidation from here manually (in successful case as well)
        for (Object key : keys) {
          putFromLoadValidator.endInvalidatingKey(globalTransaction, key);
        }
      }
    }
  }
  finally {
    return invokeNext(ctx, command);
  }
}
origin: org.infinispan/infinispan-core

} else {
  LocalizedCacheTopology cacheTopology = advancedCache(0).getDistributionManager().getCacheTopology();
  List<Address> members = new ArrayList<>(cacheTopology.getMembers());
  List<Address> owners = cacheTopology.getDistribution(key).readOwners();
  members.removeAll(owners);
  nonOwner = cacheTopology.getMembers().indexOf(members.get(0));
  c = cache(nonOwner);
origin: org.infinispan/infinispan-core

log.debugf("Blocked state response from %s, killing %s", firstResponseSender.get(), manager(nodeToKill));
cache(nodeToKill).stop();
eventuallyEquals(3, () -> dm0.getCacheTopology().getMembers().size());
org.infinispan.distributionLocalizedCacheTopologygetMembers

Popular methods of LocalizedCacheTopology

  • getDistribution
  • getSegment
  • getTopologyId
  • <init>
  • getActualMembers
  • getCurrentCH
  • getPhase
  • isReadOwner
  • isWriteOwner
  • getLocalAddress
  • getMembersPersistentUUIDs
  • getPendingCH
  • getMembersPersistentUUIDs,
  • getPendingCH,
  • getReadConsistentHash,
  • getRebalanceId,
  • getUnionCH,
  • getWriteConsistentHash,
  • getWriteOwners

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top plugins for Android Studio
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