Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jbossmx.cluster.watchdog.mbean.watchdog
Interface CorrectiveAction  view CorrectiveAction download CorrectiveAction.java

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
BaseCorrectiveAction

public interface CorrectiveAction
extends java.lang.Cloneable

Interface for corrective actions to take on MBeans


Method Summary
 boolean apply()
          Apply this CorrectiveAction.
 boolean canApply()
          Returns whether this CorrectiveAction can be applied.
 CorrectiveActionContext getCorrectiveActionContext()
          Returns the CorrectiveActionContext of this CorrectiveAction
 int getNumberOfTimesToApply()
          Get the total number of times this CorrectiveAction can be applied.
 boolean isOverridenBy(CorrectiveAction correctiveAction)
          Determine if correctiveAction overides this one.
 boolean isOverridenBy(java.util.Set correctiveActions)
          Determine if any of the CorrectiveActions in correctiveActions overides this one.
 CorrectiveAction setCorrectiveActionContext(CorrectiveActionContext correctiveActionContext)
          Sets the CorrectiveActionContext of this CorrectiveAction
 CorrectiveAction setNumberOfTimesToApply(int numberOfTimesToApply)
          Sets the number of times this CorrectiveAction can be applied
 

Method Detail

canApply

public boolean canApply()
Returns whether this CorrectiveAction can be applied.


apply

public boolean apply()
              throws java.lang.Exception
Apply this CorrectiveAction.


isOverridenBy

public boolean isOverridenBy(CorrectiveAction correctiveAction)
Determine if correctiveAction overides this one.


isOverridenBy

public boolean isOverridenBy(java.util.Set correctiveActions)
Determine if any of the CorrectiveActions in correctiveActions overides this one.


setCorrectiveActionContext

public CorrectiveAction setCorrectiveActionContext(CorrectiveActionContext correctiveActionContext)
Sets the CorrectiveActionContext of this CorrectiveAction


getCorrectiveActionContext

public CorrectiveActionContext getCorrectiveActionContext()
Returns the CorrectiveActionContext of this CorrectiveAction


setNumberOfTimesToApply

public CorrectiveAction setNumberOfTimesToApply(int numberOfTimesToApply)
Sets the number of times this CorrectiveAction can be applied


getNumberOfTimesToApply

public int getNumberOfTimesToApply()
Get the total number of times this CorrectiveAction can be applied.