public class StreamScopeSetup
extends java.lang.Object
This class is not thread safe.
Modifier and Type | Method and Description |
---|---|
static void |
addStreamScopes(Topology t)
Add StreamScope instances to the topology
|
static void |
register(ServiceContainer services)
Perform the registrations needed to use the streamscope package.
|
public static void register(ServiceContainer services)
Typically called during TopologyProvider
construction.
services
- ServiceContainer to register with.public static void addStreamScopes(Topology t)
Instrument the topology by adding StreamScope peekers to the
topology's streams. At topology submission time, StreamScopes
register themselves with the topology's
StreamScopeRegistry
runtime service.
t
- the Topology. The operation is a no-op if the topology
does not have a StreamScopeRegistry service.register
,
Graph.peekAll()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641