@Override public int getPartitionCount() { return partitionService.getPartitionCount(); } }
@Override public int getPartitionCount() { return partitionService.getPartitionCount(); } }
@Override public String randomPartitionKey() { return Integer.toString(random.nextInt(partitionService.getPartitionCount())); }
@Override public Set<Partition> getPartitions() { final int partitionCount = partitionService.getPartitionCount(); Set<Partition> partitions = new LinkedHashSet<Partition>(partitionCount); for (int i = 0; i < partitionCount; i++) { final Partition partition = partitionService.getPartition(i); partitions.add(partition); } return partitions; }
@Override public int getPartitionCount() { return clientContext.getPartitionService().getPartitionCount(); }
@Override public Set<Partition> getPartitions() { final int partitionCount = partitionService.getPartitionCount(); Set<Partition> partitions = new LinkedHashSet<Partition>(partitionCount); for (int i = 0; i < partitionCount; i++) { final Partition partition = partitionService.getPartition(i); partitions.add(partition); } return partitions; }
@Override public int getPartitionCount() { return clientContext.getPartitionService().getPartitionCount(); }
private int randomPartitionId() { ClientPartitionService partitionService = getContext().getPartitionService(); return random.nextInt(partitionService.getPartitionCount()); } }
private int randomPartitionId() { ClientPartitionService partitionService = getContext().getPartitionService(); return random.nextInt(partitionService.getPartitionCount()); } }
public ClientClusterWideIterator(ICacheInternal<K, V> cacheProxy, ClientContext context, int fetchSize, boolean prefetchValues) { super(cacheProxy, context.getPartitionService().getPartitionCount(), fetchSize, prefetchValues); this.cacheProxy = cacheProxy; this.context = context; advance(); }
@Override protected void onInitialize() { ClientPartitionService partitionService = getContext().getPartitionService(); partitionCount = partitionService.getPartitionCount(); }
public ClientClusterWideIterator(ICacheInternal<K, V> cacheProxy, ClientContext context, int fetchSize, int partitionId, boolean prefetchValues) { super(cacheProxy, context.getPartitionService().getPartitionCount(), fetchSize, prefetchValues); this.cacheProxy = cacheProxy; this.context = context; this.partitionIndex = partitionId; advance(); }
public ClientClusterWideIterator(ICacheInternal<K, V> cacheProxy, ClientContext context, int fetchSize, boolean prefetchValues) { super(cacheProxy, context.getPartitionService().getPartitionCount(), fetchSize, prefetchValues); this.cacheProxy = cacheProxy; this.context = context; advance(); }
@Override protected void onInitialize() { ClientPartitionService partitionService = getContext().getPartitionService(); partitionCount = partitionService.getPartitionCount(); }
@Override protected void onInitialize() { int partitionCount = getContext().getPartitionService().getPartitionCount(); targetPartitionId = ThreadLocalRandomProvider.get().nextInt(partitionCount); initNearCache(); }
@Override protected void onInitialize() { super.onInitialize(); ClientPartitionService partitionService = getContext().getPartitionService(); partitionCount = partitionService.getPartitionCount(); }
@Override protected void onInitialize() { super.onInitialize(); ClientPartitionService partitionService = getContext().getPartitionService(); partitionCount = partitionService.getPartitionCount(); }
@Override public void init(@Nonnull Context context) { HazelcastInstance client = newHazelcastClient(asClientConfig(clientXml)); try { HazelcastClientProxy clientProxy = (HazelcastClientProxy) client; remotePartitionCount = clientProxy.client.getClientPartitionService().getPartitionCount(); } finally { client.shutdown(); } }
@Override protected void onInitialize() { int partitionCount = getContext().getPartitionService().getPartitionCount(); targetPartitionId = ThreadLocalRandomProvider.get().nextInt(partitionCount); initNearCache(); }
private void initRemote() { HazelcastInstance client = newHazelcastClient(asClientConfig(clientXml)); try { HazelcastClientProxy clientProxy = (HazelcastClientProxy) client; remotePartitionCount = clientProxy.client.getClientPartitionService().getPartitionCount(); } finally { client.shutdown(); } }