|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AepScheduleEvent.HAPolicy>
com.neeve.aep.AepScheduleEvent.HAPolicy
public static enum AepScheduleEvent.HAPolicy
Enumerates the set of policies used to recover schedule (events).
This enumeration enumerates how an AEP engine, that activates as the cluster primary, initializes its schedules recovered from a recovery file or replicated from a prior backup engine.
Enum Constant Summary | |
---|---|
Cancel
Cancel the schedule. |
|
Reactivate
Reactivate the schedule. |
|
Resume
Resume the schedule. |
Method Summary | |
---|---|
static AepScheduleEvent.HAPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AepScheduleEvent.HAPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final AepScheduleEvent.HAPolicy Cancel
This policy causes an engine to automatically cancel schedules associated with this policy when it activates as primary.
This is the default schedule HA policy
public static final AepScheduleEvent.HAPolicy Reactivate
This policy causes an engine to automatically restart schedules
associated with this policy when it activates as primary. The
difference between this policy and Resume
is that this
policy does not take into account the last dispatched time
of the schedule when it restarts it. It always starts the schedule
as if the schedule was created afresh. For example, if a schedule
was created to fire after 30 seconds and the system is shut down
after 15 seconds and then restarted, this policy will cause the
schedules to be restarted in a manner such that the first dispatch
will occur 30 seconds after restart irrespective of when the
engine is restarted.
public static final AepScheduleEvent.HAPolicy Resume
This policy causes an engine to automatically reactivate schedules
associated with this policy when it activates as primary. The
difference between this policy and Reactivate
is that this
policy does take into account the last dispatched time of
the schedule when it restarts it. For example, if a schedule was
created to fire after 30 seconds and the system is shut down
after 15 seconds and then restarted 5 seconds later, this policy
will cause the schedule to be restarted in a manner such the first
dispatch will occur 10 seconds after restart and subsequent
dispatches will occur 30 seconds apart thereafter. On a failover
or a restart from a recovery log moves across machines, the new
primary engine cannot account for clock skew between the original
and new machine i.e. the accuracy of the first dispatch interval
is skewed by the clock skew between the machines.
This policy is currently in experimental phase being worked on in the X labs. Therefore, it is subject to change when released
Method Detail |
---|
public static AepScheduleEvent.HAPolicy[] values()
for (AepScheduleEvent.HAPolicy c : AepScheduleEvent.HAPolicy.values()) System.out.println(c);
public static AepScheduleEvent.HAPolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |