public class Stream extends java.lang.Object implements DeploymentUnit
Modifier and Type | Class and Description |
---|---|
static class |
Stream.Builder
Builder object for
Stream that supports fluent style configuration. |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<ModuleDescriptor> |
getDeploymentOrderIterator()
Return an iterator that indicates the order of module deployments for this
stream.
|
java.util.Map<java.lang.String,java.lang.String> |
getDeploymentProperties()
Return the deployment properties for this stream.
|
ModuleDescriptor |
getModuleDescriptor(java.lang.String moduleLabel)
Return the module descriptor for the provided label and type.
|
java.util.List<ModuleDescriptor> |
getModuleDescriptors()
Return the ordered list of modules for this stream as a
List . |
java.util.Deque<ModuleDescriptor> |
getModuleDescriptorsAsDeque()
Return the ordered list of modules for this stream.
|
java.lang.String |
getName()
Return the name of this stream.
|
java.lang.String |
toString() |
public java.lang.String getName()
getName
in interface DeploymentUnit
public java.util.Deque<ModuleDescriptor> getModuleDescriptorsAsDeque()
public java.util.List<ModuleDescriptor> getModuleDescriptors()
List
.
This allows for retrieval of modules in the stream by index.
Modules are maintained in stream flow order (source is first, sink is last).getModuleDescriptors
in interface DeploymentUnit
public java.util.Iterator<ModuleDescriptor> getDeploymentOrderIterator()
public java.util.Map<java.lang.String,java.lang.String> getDeploymentProperties()
getDeploymentProperties
in interface DeploymentUnit
public java.lang.String toString()
toString
in class java.lang.Object
public ModuleDescriptor getModuleDescriptor(java.lang.String moduleLabel) throws java.lang.IllegalStateException
moduleLabel
- module labeljava.lang.IllegalStateException
- if the requested module label and type
are not part of this stream