public interface Placeable<T extends Placeable<T>> extends TopologyElement
DISTRIBUTED,
STREAMING_ANALYTICS_SERVICE
or DISTRIBUTED_TESTER context.
| Modifier and Type | Method and Description |
|---|---|
T |
addResourceTags(java.lang.String... tags)
Add required resource tags for this topology element for distributed submission.
|
T |
colocate(Placeable<?>... elements)
Colocate this element with other topology elements so that
at runtime they all execute within the same operating system process.
|
java.util.Set<java.lang.String> |
getResourceTags()
Get the set of resource tags this element requires.
|
boolean |
isPlaceable()
Can this element have placement directives applied to it.
|
com.ibm.streamsx.topology.builder.BOperatorInvocation |
operator() |
builder, graph, topologyboolean isPlaceable()
true if placement directives can be assigned, false if it can not.T colocate(Placeable<?>... elements)
elements may contain any Placeable within
the same topology, there is no requirement
that the element is connected (by a stream) directly or indirectly
to this element.elements - Elements to colocate with this container.IllegalStateExeception - Any element including this returns false for isPlaceable().T addResourceTags(java.lang.String... tags)
colocated
with will execute on a resource (host) that has all the tags returned by
getResourceTags().tags - Tags to be required at runtime.java.util.Set<java.lang.String> getResourceTags()
colocated
with other topology elements then the returned set is the union
of all resource tags added to each colocated element.com.ibm.streamsx.topology.builder.BOperatorInvocation operator()