public class Processor extends Object implements CommitProcessor, Externalizable
Recognizers and
Transcoders.| Modifier and Type | Field and Description |
|---|---|
(package private) String[] |
cacheManagers |
protected Map<String,JobDefinition> |
list
List with the configured
JobDefinitions. |
static String |
NAMESPACE_CREATECACHES |
static String |
NOT |
protected static Map<Integer,Job> |
runningJobs |
protected ResourceWatcher |
watcher |
static String |
XSD_CREATECACHES |
| Constructor and Description |
|---|
Processor() |
Processor(String configFile) |
| Modifier and Type | Method and Description |
|---|---|
static String |
cancelJob(Node node) |
protected Processor |
clone() |
void |
commit(Node node,
Field field)
Commits the mediastreamsources node, calls createCaches to create resulting streamscaches nodes
and start transcoding.
|
Job |
createCaches(Cloud ntCloud,
int node) |
Job |
createCaches(Cloud ntCloud,
int node,
Map<String,JobDefinition> jdlist)
Creates caches nodes when not existing (or recreate) by making a transcoding Job
|
Map<String,JobDefinition> |
getConfiguration() |
File |
getDirectory() |
static Job |
getJob(Node node) |
protected void |
initWatcher() |
static Set<Job> |
myJobs(UserContext u) |
void |
readExternal(ObjectInput in) |
protected static boolean |
removeJob(Node node) |
static Collection<Job> |
runningJobs() |
void |
setCacheManagers(String... cm)
The MMBase NodeManagers that contain 'caches', i.e.
|
void |
setConfigFile(String configFile) |
void |
setDirectory(File dir) |
void |
writeExternal(ObjectOutput stream) |
public static String NOT
public static final String XSD_CREATECACHES
public static final String NAMESPACE_CREATECACHES
protected final Map<String,JobDefinition> list
JobDefinitions.String[] cacheManagers
protected final ResourceWatcher watcher
public Processor()
Processor(String configFile)
public void setDirectory(File dir)
public File getDirectory()
public void setCacheManagers(String... cm)
protected final void initWatcher()
public final void setConfigFile(String configFile)
public static Set<Job> myJobs(UserContext u)
public static Collection<Job> runningJobs()
protected static boolean removeJob(Node node)
public Map<String,JobDefinition> getConfiguration()
public Job createCaches(Cloud ntCloud, int node, Map<String,JobDefinition> jdlist)
ntCloud - a non transactional cloudnode - node number of a source nodejdlist - job definitionspublic void commit(Node node, Field field)
commit in interface CommitProcessorprotected Processor clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput stream) throws IOException
writeExternal in interface ExternalizableIOExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}