public class Stream extends Object implements AutoCloseable
Stream stream = Stream.builder(dataflowOperations).definition("time | log").create().deploy();
A fluent style that separates source, processor and sink parts can also be used via
Stream stream = Stream.builder(dataflowOperations).source("time").sink("log").create().deploy();
| Modifier and Type | Class and Description |
|---|---|
static class |
Stream.ProcessorBuilder |
static class |
Stream.SinkBuilder |
static class |
Stream.SourceBuilder |
static class |
Stream.StreamDefinitionBuilder |
static class |
Stream.StreamDescriptionBuilder |
static class |
Stream.StreamNameBuilder |
| Modifier and Type | Method and Description |
|---|---|
static StreamBuilder |
builder(DataFlowOperations client)
Fluent API method to create a
StreamBuilder. |
void |
close() |
void |
destroy()
Destroy the stream from the server.
|
String |
getDescription() |
String |
getName() |
String |
getStatus() |
Map<Integer,String> |
history() |
String |
manifest(int streamVersion)
Get manifest for the given stream deployed via Skipper.
|
void |
rollback(int streamVersion)
Rollback the stream to the previous or a specific release version.
|
Map<StreamApplication,Map<String,String>> |
runtimeApps() |
void |
scaleApplicationInstances(StreamApplication application,
int count,
Map<String,String> properties)
Scale up or down the number of application instances.
|
void |
undeploy()
Undeploy the current
Stream. |
void |
update(Map<String,String> propertiesToUse)
Unforced Stream Update with properties map
|
void |
update(String properties)
Unforced Stream Update with properties string definition
|
public String getName()
public String getDescription()
public static StreamBuilder builder(DataFlowOperations client)
StreamBuilder.client - DataFlowOperations client instancepublic void update(String properties)
properties - application properties to update.public void scaleApplicationInstances(StreamApplication application, int count, Map<String,String> properties)
application - App in the stream to scale.count - Number of instance to scale to.properties - optional scale properties.public void update(Map<String,String> propertiesToUse)
propertiesToUse - application properties to update.public void rollback(int streamVersion)
streamVersion - the version to rollback to. If the version is 0, then rollback to the previous release.
The version can not be less than zero.public void undeploy()
Stream. This method invokes the remote serverpublic void destroy()
public String manifest(int streamVersion)
streamVersion - the version of the releasepublic String getStatus()
public Map<StreamApplication,Map<String,String>> runtimeApps()
public void close()
close in interface AutoCloseableCopyright © 2020 Pivotal Software, Inc.. All rights reserved.