GigaSpaces XAP 9.7.2 API

org.openspaces.grid.gsm.machines
Class RecoveringFailedGridServiceAgent

java.lang.Object
  extended by org.openspaces.grid.gsm.machines.RecoveringFailedGridServiceAgent

public class RecoveringFailedGridServiceAgent
extends Object


Constructor Summary
RecoveringFailedGridServiceAgent(String agentUid)
           
 
Method Summary
 String getAgentUid()
           
 int getRecoveryAttempts()
           
 void incrementRecoveryAttempt()
          Increments the number of recovery attempts Call before each time a machine is started as an attempt to recover from failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoveringFailedGridServiceAgent

public RecoveringFailedGridServiceAgent(String agentUid)
Parameters:
agentUid - - the agent UID
agentContext - - the agent context as provided by the machine provisioning (cloud driver). recoveryAttempts is zero.
Method Detail

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()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.