org.openspaces.grid.gsm.machines
Class RecoveringFailedGridServiceAgent
java.lang.Object
org.openspaces.grid.gsm.machines.RecoveringFailedGridServiceAgent
public class RecoveringFailedGridServiceAgent
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecoveringFailedGridServiceAgent
public RecoveringFailedGridServiceAgent(String agentUid)
- Parameters:
agentUid
- - the agent UIDagentContext
- - the agent context as provided by the machine provisioning (cloud driver).
recoveryAttempts is zero.
getRecoveryAttempts
public int getRecoveryAttempts()
- Returns:
- 0 if this is a new machine, 1 if the first recovery attempt of a failed machine, 2 if the second recovery attempt, etc...
incrementRecoveryAttempt
public void incrementRecoveryAttempt()
- Increments the number of recovery attempts
Call before each time a machine is started as an attempt to recover from failure.
getAgentUid
public String getAgentUid()
Copyright © GigaSpaces.