GigaSpaces XAP 10.0.1 API

org.openspaces.grid.gsm.machines.exceptions
Class FailedToStopMachineException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openspaces.grid.gsm.sla.exceptions.SlaEnforcementInProgressException
              extended by org.openspaces.grid.gsm.machines.exceptions.MachinesSlaEnforcementInProgressException
                  extended by org.openspaces.grid.gsm.machines.exceptions.FailedToStopMachineException
All Implemented Interfaces:
Serializable, SlaEnforcementFailure, SlaEnforcementLoggerBehavior

public class FailedToStopMachineException
extends MachinesSlaEnforcementInProgressException
implements SlaEnforcementFailure, SlaEnforcementLoggerBehavior

Author:
elip
See Also:
Serialized Form

Constructor Summary
FailedToStopMachineException(ProcessingUnit pu, GridServiceAgent agent, Exception exception)
           
 
Method Summary
 boolean equals(Object obj)
          Must implement the equals method since it is used to filter failure events
 int hashCode()
           
 boolean isAlwaysLogDuplicateException()
           
 boolean isAlwaysLogStackTrace()
           
 org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitFailureEvent toEvent()
           
 
Methods inherited from class org.openspaces.grid.gsm.sla.exceptions.SlaEnforcementInProgressException
fillInStackTrace, getProcessingUnitName
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openspaces.grid.gsm.sla.exceptions.SlaEnforcementFailure
getProcessingUnitName
 

Constructor Detail

FailedToStopMachineException

public FailedToStopMachineException(ProcessingUnit pu,
                                    GridServiceAgent agent,
                                    Exception exception)
Parameters:
pu -
Method Detail

toEvent

public org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitFailureEvent toEvent()
Specified by:
toEvent in interface SlaEnforcementFailure

hashCode

public int hashCode()
Overrides:
hashCode in class SlaEnforcementInProgressException

equals

public boolean equals(Object obj)
Description copied from interface: SlaEnforcementFailure
Must implement the equals method since it is used to filter failure events

Specified by:
equals in interface SlaEnforcementFailure
Overrides:
equals in class SlaEnforcementInProgressException

isAlwaysLogStackTrace

public boolean isAlwaysLogStackTrace()
Specified by:
isAlwaysLogStackTrace in interface SlaEnforcementLoggerBehavior
Returns:
true - if exception stack trace should always be logged, regardless of the logging level false - exception stack trace is logged depending on logging level

isAlwaysLogDuplicateException

public boolean isAlwaysLogDuplicateException()
Specified by:
isAlwaysLogDuplicateException in interface SlaEnforcementLoggerBehavior
Returns:
true - if exception should be logged, even if the last exception logged equals this exception false - exception is logged only if not equals last logged exception

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.