Interface IStepOperation
- All Known Implementing Classes:
CopyChunksStep, CreateNewTopologyStep, DeleteChunksStep, DrainStep, InformTopologyChangeStep, KillInstancesStep, QuiesceStep, RevertPuMetaDataStep, RevertTopologyStep, SetNewTopologyStep, TriggerInstancesInitiationStep, UnquiesceOnRollbackStep, UnquiesceStep
public interface IStepOperation
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancheckIfStepIsCompleted(DefaultProcessingUnit pu, AttributeStore attributeStore, String stepName, GigaSpace gigaSpace, InternalAdminDriver driver) createInstanceIdsMap(DefaultProcessingUnit pu, int startIndex, int endIndex) default voidexecutePerInstance(DefaultProcessingUnit pu, AttributeStore attributeStore, GigaSpace gigaSpace, int partitionId) voidexecuteStepOperation(DefaultProcessingUnit pu, AttributeStore attributeStore, GigaSpace gigaSpace, InternalAdminDriver driver, long timeout) default voidexecuteTaskRequest(GigaSpace gigaSpace, AttributeStore attributeStore, SystemTask<SpaceResponseInfo> task, Step step, String puName, int partitionId) static SecurityExceptiongenerateList(int num) static voidonTaskFailure(AttributeStore attributeStore, Step step, String puName, int partitionId, Throwable e) Marks the partition of the step as failed, so the step is executed again.
-
Field Details
-
logger
static final org.slf4j.Logger logger
-
-
Method Details
-
executeStepOperation
void executeStepOperation(DefaultProcessingUnit pu, AttributeStore attributeStore, GigaSpace gigaSpace, InternalAdminDriver driver, long timeout) -
checkIfStepIsCompleted
default boolean checkIfStepIsCompleted(DefaultProcessingUnit pu, AttributeStore attributeStore, String stepName, GigaSpace gigaSpace, InternalAdminDriver driver) -
generateList
-
executePerInstance
default void executePerInstance(DefaultProcessingUnit pu, AttributeStore attributeStore, GigaSpace gigaSpace, int partitionId) throws Exception - Throws:
Exception
-
executeTaskRequest
default void executeTaskRequest(GigaSpace gigaSpace, AttributeStore attributeStore, SystemTask<SpaceResponseInfo> task, Step step, String puName, int partitionId) -
onTaskFailure
static void onTaskFailure(AttributeStore attributeStore, Step step, String puName, int partitionId, Throwable e) Marks the partition of the step as failed, so the step is executed again. A security failure is not recoverable by executing the step again, so its reason is recorded and the scale out is rolled back (seeScaleMonitorThread). -
findSecurityException
-
createInstanceIdsMap
default HashMap<Integer,String> createInstanceIdsMap(DefaultProcessingUnit pu, int startIndex, int endIndex) -
getStepType
IStepOperation.StepType getStepType()
-