Package org.alfresco.filesys.repo.rules
Class ScenarioCreateShuffleInstance
- java.lang.Object
-
- org.alfresco.filesys.repo.rules.ScenarioCreateShuffleInstance
-
- All Implemented Interfaces:
ScenarioInstance
public class ScenarioCreateShuffleInstance extends java.lang.Object implements ScenarioInstance
This is an instance of a "classic shuffle" triggered by a create of a file matching a specified pattern.a) New file created. Typically with an obscure name. b) Existing file moved out of the way c) New file moved into place. d) Old file deleted.
If this filter is active then this is what happens. a) New file created. New file created (X). b) Existing file moved out of the way (Y to Z). Raname tracked. c) New file moved into place (X to Y). Scenario kicks in to change commands. d) Old file deleted.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.filesys.repo.rules.ScenarioInstance
ScenarioInstance.Ranking
-
-
Constructor Summary
Constructors Constructor Description ScenarioCreateShuffleInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commandevaluate(Operation operation)Evaluate the next operationScenarioInstance.RankinggetRanking()Get the RankinglonggetTimeout()booleanisComplete()Is the scenario complete?voidsetRanking(ScenarioInstance.Ranking ranking)voidsetTimeout(long timeout)java.lang.StringtoString()
-
-
-
Method Detail
-
evaluate
public Command evaluate(Operation operation)
Evaluate the next operation- Specified by:
evaluatein interfaceScenarioInstance- Parameters:
operation- Operation
-
isComplete
public boolean isComplete()
Description copied from interface:ScenarioInstanceIs the scenario complete?- Specified by:
isCompletein interfaceScenarioInstance- Returns:
- boolean
-
getRanking
public ScenarioInstance.Ranking getRanking()
Description copied from interface:ScenarioInstanceGet the Ranking- Specified by:
getRankingin interfaceScenarioInstance- Returns:
- Ranking
-
setRanking
public void setRanking(ScenarioInstance.Ranking ranking)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setTimeout
public void setTimeout(long timeout)
-
getTimeout
public long getTimeout()
-
-