org.mmbase.streams
Class CreateCachesFunction

java.lang.Object
  extended by org.mmbase.util.functions.AbstractFunction<R>
      extended by org.mmbase.util.functions.NodeFunction<Boolean>
          extended by org.mmbase.streams.CreateCachesFunction
All Implemented Interfaces:
Serializable, Comparable<Function<Boolean>>, Function<Boolean>

public class CreateCachesFunction
extends NodeFunction<Boolean>

Triggers (re)creation of caches (streamsourcescaches) of a source node (streamsources). The parameter 'all' determines whether to recreate all caches or just to transcode newly configured streams. The parameter 'cache' can hold the node number of a singe caches node to retranscode.

Version:
$Id: CreateCachesFunction.java 42565 2010-06-15 09:27:07Z andre $
Author:
Michiel Meeuwissen, André van Toly
See Also:
Serialized Form

Field Summary
static Parameter[] PARAMETERS
           
 
Fields inherited from class org.mmbase.util.functions.AbstractFunction
autoReturnType, name, returnType
 
Constructor Summary
CreateCachesFunction()
           
 
Method Summary
(package private)  Processor getCacheCreator(Field url)
          CommitProcessor is on url field of source node.
protected  Boolean getFunctionValue(Node node, Parameters parameters)
           
 
Methods inherited from class org.mmbase.util.functions.NodeFunction
getFunctionNameAndFillArgs, getFunctionValue, getFunctionValue, getFunctionValueForNode, getNode, getNodeParameterDef, getReturnType, newInstance, wrap
 
Methods inherited from class org.mmbase.util.functions.AbstractFunction
compareTo, createParameters, equals, getDescription, getFunctionValueWithArgs, getFunctionValueWithList, getName, getParameterDefinition, hashCode, setDescription, setParameterDefinition, setReturnType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETERS

public static final Parameter[] PARAMETERS
Constructor Detail

CreateCachesFunction

public CreateCachesFunction()
Method Detail

getCacheCreator

Processor getCacheCreator(Field url)
CommitProcessor is on url field of source node.

Parameters:
url - field url of source node
Returns:
Processor to (re)create caches nodes

getFunctionValue

protected Boolean getFunctionValue(Node node,
                                   Parameters parameters)
Specified by:
getFunctionValue in class NodeFunction<Boolean>


MMBase 2.0-SNAPSHOT - null