Package org.infinispan.partionhandling.impl

Examples of org.infinispan.partionhandling.impl.AvailabilityMode


   public Map<String, CacheStatusResponse> handleStatusRequest(int viewId) {
      Map<String, CacheStatusResponse> response = new HashMap<String, CacheStatusResponse>();
      for (Map.Entry<String, LocalCacheStatus> e : runningCaches.entrySet()) {
         String cacheName = e.getKey();
         LocalCacheStatus cacheStatus = runningCaches.get(cacheName);
         AvailabilityMode availabilityMode = cacheStatus.getPartitionHandlingManager() != null ?
               cacheStatus.getPartitionHandlingManager().getAvailabilityMode() : null;
         response.put(e.getKey(), new CacheStatusResponse(cacheStatus.getJoinInfo(),
               cacheStatus.getCurrentTopology(), cacheStatus.getStableTopology(),
               availabilityMode));
      }
View Full Code Here


      @Override
      public CacheStatusResponse readObject(ObjectInput unmarshaller) throws IOException, ClassNotFoundException {
         CacheJoinInfo cacheJoinInfo = (CacheJoinInfo) unmarshaller.readObject();
         CacheTopology cacheTopology = (CacheTopology) unmarshaller.readObject();
         CacheTopology stableTopology = (CacheTopology) unmarshaller.readObject();
         AvailabilityMode availabilityMode = (AvailabilityMode) unmarshaller.readObject();
         return new CacheStatusResponse(cacheJoinInfo, cacheTopology, stableTopology, availabilityMode);
      }
View Full Code Here

   public Map<String, CacheStatusResponse> handleStatusRequest(int viewId) {
      Map<String, CacheStatusResponse> response = new HashMap<String, CacheStatusResponse>();
      for (Map.Entry<String, LocalCacheStatus> e : runningCaches.entrySet()) {
         String cacheName = e.getKey();
         LocalCacheStatus cacheStatus = runningCaches.get(cacheName);
         AvailabilityMode availabilityMode = cacheStatus.getPartitionHandlingManager() != null ?
               cacheStatus.getPartitionHandlingManager().getAvailabilityMode() : null;
         response.put(e.getKey(), new CacheStatusResponse(cacheStatus.getJoinInfo(),
               cacheStatus.getCurrentTopology(), cacheStatus.getStableTopology(),
               availabilityMode));
      }
View Full Code Here

TOP

Related Classes of org.infinispan.partionhandling.impl.AvailabilityMode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.