org.alfresco.filesys.repo.rules
Class ScenarioCreateShuffleInstance

java.lang.Object
  extended by 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
ScenarioCreateShuffleInstance()
           
 
Method Summary
 Command evaluate(Operation operation)
          Evaluate the next operation
 ScenarioInstance.Ranking getRanking()
          Get the Ranking
 long getTimeout()
           
 boolean isComplete()
          Is the scenario complete?
 void setRanking(ScenarioInstance.Ranking ranking)
           
 void setTimeout(long timeout)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScenarioCreateShuffleInstance

public ScenarioCreateShuffleInstance()
Method Detail

evaluate

public Command evaluate(Operation operation)
Evaluate the next operation

Specified by:
evaluate in interface ScenarioInstance
Parameters:
operation -

isComplete

public boolean isComplete()
Description copied from interface: ScenarioInstance
Is the scenario complete?

Specified by:
isComplete in interface ScenarioInstance
Returns:

getRanking

public ScenarioInstance.Ranking getRanking()
Description copied from interface: ScenarioInstance
Get the Ranking

Specified by:
getRanking in interface ScenarioInstance
Returns:

setRanking

public void setRanking(ScenarioInstance.Ranking ranking)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setTimeout

public void setTimeout(long timeout)

getTimeout

public long getTimeout()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.