Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.distexec
Interface DistributedTaskFailoverPolicy


public interface DistributedTaskFailoverPolicy

DistributedTaskFailoverPolicy allows pluggable fail over target selection for a failed remotely executed distributed task.

Since:
5.2
Author:
Vladimir Blagojevic

Method Summary
 Address failover(FailoverContext context)
          As parts of distributively executed task can fail due to the task itself throwing an exception or it can be an Infinispan system caused failure (e.g node failed or left cluster during task execution etc).
 int maxFailoverAttempts()
          Maximum number of fail over attempts permitted by this DistributedTaskFailoverPolicy
 

Method Detail

failover

Address failover(FailoverContext context)
As parts of distributively executed task can fail due to the task itself throwing an exception or it can be an Infinispan system caused failure (e.g node failed or left cluster during task execution etc).

Parameters:
failoverContext - the FailoverContext of the failed execution
Returns:
result the Address of the Infinispan node selected for fail over execution

maxFailoverAttempts

int maxFailoverAttempts()
Maximum number of fail over attempts permitted by this DistributedTaskFailoverPolicy

Returns:
max number of fail over attempts

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.