Examples of invokeOnTarget()


Examples of com.hazelcast.client.spi.ClientInvocationService.invokeOnTarget()

        ClientContext context = getContext();
        ClientInvocationService cis = context.getInvocationService();
        ClientTrackableJob trackableJob = trackableJobs.get(jobId);
        if (trackableJob != null) {
            Address runningMember = trackableJob.jobOwner;
            ICompletableFuture<T> future = cis.invokeOnTarget(request, runningMember);
            return future.get();
        }
        return null;
    }
View Full Code Here

Examples of com.hazelcast.client.spi.ClientInvocationService.invokeOnTarget()

        ClientContext context = getContext();
        ClientInvocationService cis = context.getInvocationService();
        ClientTrackableJob trackableJob = trackableJobs.get(jobId);
        if (trackableJob != null) {
            Address runningMember = trackableJob.jobOwner;
            ICompletableFuture<T> future = cis.invokeOnTarget(request, runningMember);
            return future.get();
        }
        return null;
    }
View Full Code Here

Examples of com.hazelcast.client.spi.ClientInvocationService.invokeOnTarget()

        final Collection<Future> futures = new ArrayList<Future>();
        for (MemberImpl member : members) {
            try {
                final CacheListenerRegistrationRequest request = new CacheListenerRegistrationRequest(nameWithPrefix,
                        cacheEntryListenerConfiguration, isRegister, member.getAddress());
                final Future future = invocationService.invokeOnTarget(request, member.getAddress());
                futures.add(future);
            } catch (Exception e) {
                ExceptionUtil.sneakyThrow(e);
            }
        }
View Full Code Here

Examples of com.hazelcast.client.spi.ClientInvocationService.invokeOnTarget()

        final Collection<Future> futures = new ArrayList<Future>();
        for (MemberImpl member : members) {
            try {
                CacheManagementConfigRequest request = new CacheManagementConfigRequest(getCacheNameWithPrefix(cacheName),
                        statOrMan, enabled, member.getAddress());
                final Future future = invocationService.invokeOnTarget(request, member.getAddress());
                futures.add(future);
            } catch (Exception e) {
                ExceptionUtil.sneakyThrow(e);
            }
        }
View Full Code Here

Examples of com.hazelcast.client.spi.ClientInvocationService.invokeOnTarget()

    }

    private PartitionsResponse getPartitionsFrom(Address address) {
        try {
            ClientInvocationService invocationService = client.getInvocationService();
            Future<PartitionsResponse> future = invocationService.invokeOnTarget(new GetPartitionsRequest(), address);
            return client.getSerializationService().toObject(future.get());
        } catch (Exception e) {
            if (client.getLifecycleService().isRunning()) {
                LOGGER.severe("Error while fetching cluster partition table!", e);
            }
View Full Code Here

Examples of com.hazelcast.client.spi.ClientInvocationService.invokeOnTarget()

        ClientContext context = getContext();
        ClientInvocationService cis = context.getInvocationService();
        ClientTrackableJob trackableJob = trackableJobs.get(jobId);
        if (trackableJob != null) {
            Address runningMember = trackableJob.jobOwner;
            ICompletableFuture<T> future = cis.invokeOnTarget(request, runningMember);
            return future.get();
        }
        return null;
    }
View Full Code Here

Examples of com.hazelcast.spi.OperationService.invokeOnTarget()

        QueryResultSet result = new QueryResultSet(nodeEngine.getSerializationService(), iterationType, dataResult);
        List<Integer> missingList = new ArrayList<Integer>();
        try {
            List<Future> flist = new ArrayList<Future>();
            for (MemberImpl member : members) {
                Future future = operationService
                        .invokeOnTarget(SERVICE_NAME, new QueryOperation(name, predicate), member.getAddress());
                flist.add(future);
            }
            for (Future future : flist) {
                QueryResult queryResult = (QueryResult) future.get();
View Full Code Here

Examples of com.hazelcast.spi.OperationService.invokeOnTarget()

        if (durability > 0 && backupAddresses != null && transactionType == TransactionType.TWO_PHASE) {
            final OperationService operationService = nodeEngine.getOperationService();
            List<Future> futures = new ArrayList<Future>(backupAddresses.length);
            for (Address backupAddress : backupAddresses) {
                if (nodeEngine.getClusterService().getMember(backupAddress) != null) {
                    final Future f = operationService.invokeOnTarget(TransactionManagerServiceImpl.SERVICE_NAME,
                            new BeginTxBackupOperation(txOwnerUuid, txnId, xid), backupAddress);
                    futures.add(f);
                }
            }
            for (Future future : futures) {
View Full Code Here

Examples of com.hazelcast.spi.OperationService.invokeOnTarget()

            // replicate tx log
            if (durability > 0) {
                final OperationService operationService = nodeEngine.getOperationService();
                for (Address backupAddress : backupAddresses) {
                    if (nodeEngine.getClusterService().getMember(backupAddress) != null) {
                        final Future f = operationService.invokeOnTarget(TransactionManagerServiceImpl.SERVICE_NAME,
                                new ReplicateTxOperation(txLogs, txOwnerUuid, txnId, timeoutMillis, startTime),
                                backupAddress);
                        futures.add(f);
                    }
                }
View Full Code Here

Examples of com.hazelcast.spi.OperationService.invokeOnTarget()

                // rollback tx backup
                if (durability > 0 && transactionType.equals(TransactionType.TWO_PHASE)) {
                    for (Address backupAddress : backupAddresses) {
                        if (nodeEngine.getClusterService().getMember(backupAddress) != null) {
                            final Future f = operationService.invokeOnTarget(TransactionManagerServiceImpl.SERVICE_NAME,
                                    new RollbackTxBackupOperation(txnId), backupAddress);
                            futures.add(f);
                        }
                    }
                    for (Future future : futures) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.