@Override public void onPartitionStateChange() { node.clientEngine.getPartitionListenerService().onPartitionStateChange(); }
@Override public void onPartitionStateChange() { node.clientEngine.getPartitionListenerService().onPartitionStateChange(); }
@Override protected Object call() { InternalPartitionService internalPartitionService = getService(InternalPartitionService.SERVICE_NAME); internalPartitionService.firstArrangement(); final ClientPartitionListenerService service = clientEngine.getPartitionListenerService(); service.registerPartitionListener(endpoint, clientMessage.getCorrelationId()); endpoint.addDestroyAction(UuidUtil.newUnsecureUUID().toString(), new Callable<Boolean>() { @Override public Boolean call() throws Exception { service.deregisterPartitionListener(endpoint); return Boolean.TRUE; } }); return true; }
@Override protected Object call() { InternalPartitionService internalPartitionService = getService(InternalPartitionService.SERVICE_NAME); internalPartitionService.firstArrangement(); final ClientPartitionListenerService service = clientEngine.getPartitionListenerService(); service.registerPartitionListener(endpoint, clientMessage.getCorrelationId()); endpoint.addDestroyAction(UuidUtil.newUnsecureUUID().toString(), new Callable<Boolean>() { @Override public Boolean call() throws Exception { service.deregisterPartitionListener(endpoint); return Boolean.TRUE; } }); return true; }
protected Object call() { InternalPartitionService service = getService(InternalPartitionService.SERVICE_NAME); service.firstArrangement(); PartitionTableView partitionTableView = service.createPartitionTableView(); int partitionStateVersion = partitionTableView.getVersion(); Collection<Map.Entry<Address, List<Integer>>> partitions = clientEngine.getPartitionListenerService().getPartitions(partitionTableView); return ClientGetPartitionsCodec.encodeResponse(partitions, partitionStateVersion); }
protected Object call() { InternalPartitionService service = getService(InternalPartitionService.SERVICE_NAME); service.firstArrangement(); PartitionTableView partitionTableView = service.createPartitionTableView(); int partitionStateVersion = partitionTableView.getVersion(); Collection<Map.Entry<Address, List<Integer>>> partitions = clientEngine.getPartitionListenerService().getPartitions(partitionTableView); return ClientGetPartitionsCodec.encodeResponse(partitions, partitionStateVersion); }