|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cid.distribution.DistributionProcess
public class DistributionProcess
This class represents a distribution process.
The DistributionProcess class contains all the entities that conform a process, including the set of nodes and components that take part in it, and also other atributes like the name, the starting node, and user defined properties.
Constructor Summary | |
---|---|
DistributionProcess()
Build a new DistributionProcess |
Method Summary | |
---|---|
void |
addComponent(DistributionComponent component)
Adds a MessageOutputChannel to this list. |
void |
addFunctionMapping(java.lang.String prefix,
java.lang.String className)
Adds a function namespace mapping to the list. |
void |
addNode(DistributionNode node)
Adds a Node to this list. |
void |
addProperties(java.lang.String propertyFile)
|
void |
addProperty(java.lang.String name,
java.lang.String value)
Adds a property to the list. |
DistributionComponent |
getComponent(java.lang.String componentId)
Returns a component. |
java.util.HashMap<java.lang.String,DistributionComponent> |
getComponents()
|
java.lang.String |
getDescription()
|
boolean |
getEnabled()
|
org.apache.commons.vfs.FileSystemManager |
getFsManager()
|
java.util.HashMap<java.lang.String,java.lang.Class> |
getFunctionMappings()
|
java.lang.String |
getName()
|
DistributionNode |
getNode(java.lang.String nodeId)
Returns a node. |
java.util.HashMap<java.lang.String,DistributionNode> |
getNodes()
|
java.util.HashMap<java.lang.String,java.lang.String> |
getProperties()
|
java.lang.String |
getStart()
|
void |
process()
Processes this list, doing the complete job of retrieving messages and processing them through the message nodes chain. |
void |
setDescription(java.lang.String description)
|
void |
setEnabled(java.lang.String enabled)
|
void |
setName(java.lang.String name)
|
void |
setStart(java.lang.String start)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistributionProcess()
Method Detail |
---|
public void process() throws DistributionException
DistributionException
public java.lang.String getDescription()
public java.lang.String getName()
public void setDescription(java.lang.String description)
description
- The description to set.public void setEnabled(java.lang.String enabled)
disabled
- The enabled to set.public boolean getEnabled()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getStart()
public void setStart(java.lang.String start)
start
- The start to set.public void addProperty(java.lang.String name, java.lang.String value)
public void addNode(DistributionNode node) throws DistributionConfigurationException
DistributionConfigurationException
public void addComponent(DistributionComponent component) throws DistributionConfigurationException
DistributionConfigurationException
public void addFunctionMapping(java.lang.String prefix, java.lang.String className) throws DistributionConfigurationException
prefix
- The prefix that will be used to access this functions.className
- The classname of the class that implements the functions.
DistributionConfigurationException
public DistributionNode getNode(java.lang.String nodeId)
public DistributionComponent getComponent(java.lang.String componentId)
public java.util.HashMap<java.lang.String,DistributionComponent> getComponents()
public java.util.HashMap<java.lang.String,DistributionNode> getNodes()
public java.util.HashMap<java.lang.String,java.lang.String> getProperties()
public java.util.HashMap<java.lang.String,java.lang.Class> getFunctionMappings()
public org.apache.commons.vfs.FileSystemManager getFsManager()
public void addProperties(java.lang.String propertyFile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |