Search in sources :

Example 1 with GetInDoubtTransactionsCommand

use of org.infinispan.commands.remote.recovery.GetInDoubtTransactionsCommand in project infinispan by infinispan.

the class RecoveryManagerImpl method getAllPreparedTxFromCluster.

private Map<Address, Response> getAllPreparedTxFromCluster() {
    GetInDoubtTransactionsCommand command = commandFactory.buildGetInDoubtTransactionsCommand();
    CompletionStage<Map<Address, Response>> completionStage = rpcManager.invokeCommandOnAll(command, MapResponseCollector.ignoreLeavers(), rpcManager.getSyncRpcOptions());
    Map<Address, Response> addressResponseMap = rpcManager.blocking(completionStage);
    if (log.isTraceEnabled())
        log.tracef("getAllPreparedTxFromCluster received from cluster: %s", addressResponseMap);
    return addressResponseMap;
}
Also used : Response(org.infinispan.remoting.responses.Response) SuccessfulResponse(org.infinispan.remoting.responses.SuccessfulResponse) Address(org.infinispan.remoting.transport.Address) GetInDoubtTransactionsCommand(org.infinispan.commands.remote.recovery.GetInDoubtTransactionsCommand) HashMap(java.util.HashMap) ConcurrentMap(java.util.concurrent.ConcurrentMap) Map(java.util.Map)

Aggregations

HashMap (java.util.HashMap)1 Map (java.util.Map)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1 GetInDoubtTransactionsCommand (org.infinispan.commands.remote.recovery.GetInDoubtTransactionsCommand)1 Response (org.infinispan.remoting.responses.Response)1 SuccessfulResponse (org.infinispan.remoting.responses.SuccessfulResponse)1 Address (org.infinispan.remoting.transport.Address)1