Package org.alfresco.filesys.repo.rules
Class ScenarioRenameShuffle
java.lang.Object
org.alfresco.filesys.repo.rules.ScenarioRenameShuffle
- All Implemented Interfaces:
Scenario
The "Vi" rename shuffle is a sequence where a file is moved out of the way
and then a new copy of the file put into place.
a) Rename File to File~
b) Create File
c) Delete File~
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(EvaluatorContext ctx, Operation operation) Create a new ScenarioInstancelongvoidsetPattern(String pattern) voidsetRanking(ScenarioInstance.Ranking ranking) voidsetTimeout(long timeout)
-
Constructor Details
-
ScenarioRenameShuffle
public ScenarioRenameShuffle()
-
-
Method Details
-
createInstance
Description copied from interface:ScenarioCreate a new ScenarioInstanceIf the scenario is interested in the specified operation then return a new scenario instance.
- Specified by:
createInstancein interfaceScenario- Parameters:
ctx- EvaluatorContext.operation- the operation to be performed- Returns:
- the scenario instance or null if a new instance is not required.
-
setTimeout
public void setTimeout(long timeout) -
getTimeout
public long getTimeout() -
setPattern
-
getPattern
-
setRanking
-
getRanking
-