Package org.alfresco.filesys.repo.rules
Class ScenarioOpenFile
- java.lang.Object
-
- org.alfresco.filesys.repo.rules.ScenarioOpenFile
-
- All Implemented Interfaces:
Scenario
public class ScenarioOpenFile extends java.lang.Object implements Scenario
The Open File Scenario is a sequence of multiple openFile operations Only on the last close does the repo get closed. Open Files in the middle share the same file handle. For example: 1) open(readOnly) 2) open(readWrite) 3) open(readOnly) - does nothing. 4) close - does nothing 5) close - does nothing 6) close - updates the repo
-
-
Constructor Summary
Constructors Constructor Description ScenarioOpenFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScenarioInstancecreateInstance(EvaluatorContext ctx, Operation operation)Create a new ScenarioInstancejava.lang.StringgetPattern()ScenarioInstance.RankinggetRanking()longgetTimeout()voidsetPattern(java.lang.String pattern)voidsetRanking(ScenarioInstance.Ranking ranking)voidsetTimeout(long timeout)
-
-
-
Method Detail
-
createInstance
public ScenarioInstance createInstance(EvaluatorContext ctx, Operation operation)
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
public void setPattern(java.lang.String pattern)
-
getPattern
public java.lang.String getPattern()
-
setRanking
public void setRanking(ScenarioInstance.Ranking ranking)
-
getRanking
public ScenarioInstance.Ranking getRanking()
-
-