com.neeve.aep
Enum AepScheduleEvent.HAPolicy

java.lang.Object
  extended by java.lang.Enum<AepScheduleEvent.HAPolicy>
      extended by com.neeve.aep.AepScheduleEvent.HAPolicy
All Implemented Interfaces:
Serializable, Comparable<AepScheduleEvent.HAPolicy>
Enclosing class:
AepScheduleEvent

public static enum AepScheduleEvent.HAPolicy
extends 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

Cancel

public static final AepScheduleEvent.HAPolicy Cancel
Cancel the schedule.

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


Reactivate

public static final AepScheduleEvent.HAPolicy Reactivate
Reactivate the schedule.

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.


Resume

public static final AepScheduleEvent.HAPolicy Resume
Resume the schedule.

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

values

public static AepScheduleEvent.HAPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AepScheduleEvent.HAPolicy c : AepScheduleEvent.HAPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AepScheduleEvent.HAPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.