Search in sources :

Example 1 with OperationFactoryWrapper

use of com.hazelcast.client.impl.operations.OperationFactoryWrapper in project hazelcast by hazelcast.

the class AbstractMultiPartitionMessageTask method call.

@Override
protected Object call() throws Exception {
    ClientEndpoint endpoint = getEndpoint();
    OperationFactory operationFactory = new OperationFactoryWrapper(createOperationFactory(), endpoint.getUuid());
    final InternalOperationService operationService = nodeEngine.getOperationService();
    Map<Integer, Object> map = operationService.invokeOnPartitions(getServiceName(), operationFactory, getPartitions());
    return reduce(map);
}
Also used : OperationFactoryWrapper(com.hazelcast.client.impl.operations.OperationFactoryWrapper) InternalOperationService(com.hazelcast.spi.impl.operationservice.InternalOperationService) ClientEndpoint(com.hazelcast.client.ClientEndpoint) OperationFactory(com.hazelcast.spi.OperationFactory)

Example 2 with OperationFactoryWrapper

use of com.hazelcast.client.impl.operations.OperationFactoryWrapper in project hazelcast by hazelcast.

the class AbstractAllPartitionsMessageTask method processMessage.

@Override
protected void processMessage() throws Exception {
    ClientEndpoint endpoint = getEndpoint();
    OperationFactory operationFactory = new OperationFactoryWrapper(createOperationFactory(), endpoint.getUuid());
    final InternalOperationService operationService = nodeEngine.getOperationService();
    Map<Integer, Object> map = operationService.invokeOnAllPartitions(getServiceName(), operationFactory);
    sendResponse(reduce(map));
}
Also used : OperationFactoryWrapper(com.hazelcast.client.impl.operations.OperationFactoryWrapper) InternalOperationService(com.hazelcast.spi.impl.operationservice.InternalOperationService) ClientEndpoint(com.hazelcast.client.ClientEndpoint) OperationFactory(com.hazelcast.spi.OperationFactory)

Aggregations

ClientEndpoint (com.hazelcast.client.ClientEndpoint)2 OperationFactoryWrapper (com.hazelcast.client.impl.operations.OperationFactoryWrapper)2 OperationFactory (com.hazelcast.spi.OperationFactory)2 InternalOperationService (com.hazelcast.spi.impl.operationservice.InternalOperationService)2