public class ModuleDescriptor extends java.lang.Object implements java.lang.Comparable<ModuleDescriptor>
Modifier and Type | Class and Description |
---|---|
static class |
ModuleDescriptor.Builder
Builder object for
ModuleDescriptor . |
static class |
ModuleDescriptor.Key
Key to be used in Map of ModuleDescriptors.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ModuleDescriptor o) |
ModuleDescriptor.Key |
createKey()
Create a new
ModuleDescriptor.Key for this ModuleDescriptor . |
java.util.List<ModuleDescriptor> |
getChildren()
If this is a composite module, this list contains the modules that this
module consists of; otherwise this list is empty.
|
java.lang.String |
getGroup()
Return name of deployable unit this module instance belongs to
(such as a stream or job).
|
int |
getIndex()
Return position in stream/job definition relative to the other
modules in the definition.
|
ModuleDefinition |
getModuleDefinition()
Return the
ModuleDefinition for this module. |
java.lang.String |
getModuleLabel()
Return symbolic name of a module.
|
java.lang.String |
getModuleName()
Return name of module.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Return parameters for module.
|
java.lang.String |
getSinkChannelName()
Return name of sink channel, if defined by the stream/job definition.
|
java.lang.String |
getSourceChannelName()
Return name of source channel, if defined by the stream/job definition.
|
ModuleType |
getType()
Return the module type.
|
boolean |
isComposed()
Return true if this is a composed module.
|
java.lang.String |
toString() |
public java.lang.String getModuleName()
$XD_HOME/modules/[module type]
.public java.lang.String getModuleLabel()
public java.lang.String getGroup()
public int getIndex()
public ModuleType getType()
public java.lang.String getSourceChannelName()
null
.null
if no source channel definedpublic java.lang.String getSinkChannelName()
null
.null
if no sink channel definedpublic java.util.Map<java.lang.String,java.lang.String> getParameters()
public java.util.List<ModuleDescriptor> getChildren()
public ModuleDefinition getModuleDefinition()
ModuleDefinition
for this module. ModuleDefinition
contains information required to load the module (i.e. classpath).public boolean isComposed()
children
public ModuleDescriptor.Key createKey()
ModuleDescriptor.Key
for this ModuleDescriptor
.Key
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(ModuleDescriptor o)
compareTo
in interface java.lang.Comparable<ModuleDescriptor>