public class StreamTemplate extends Object implements StreamOperations
StreamOperations
.Modifier and Type | Field and Description |
---|---|
static String |
DEFINITIONS_REL |
Modifier and Type | Method and Description |
---|---|
StreamDefinitionResource |
createStream(String name,
String definition,
boolean deploy)
Create a new stream, optionally deploying it.
|
void |
deploy(String name,
Map<String,String> properties)
Deploy an already created stream.
|
void |
destroy(String name)
Destroy an existing stream.
|
void |
destroyAll()
Destroy all streams known to the system.
|
StreamDefinitionResource.Page |
list()
List streams known to the system.
|
void |
undeploy(String name)
Undeploy a deployed stream, retaining its definition.
|
void |
undeployAll()
Undeploy all currently deployed streams.
|
public static final String DEFINITIONS_REL
public StreamDefinitionResource.Page list()
StreamOperations
list
in interface StreamOperations
public StreamDefinitionResource createStream(String name, String definition, boolean deploy)
StreamOperations
createStream
in interface StreamOperations
public void deploy(String name, Map<String,String> properties)
StreamOperations
deploy
in interface StreamOperations
public void undeploy(String name)
StreamOperations
undeploy
in interface StreamOperations
public void undeployAll()
StreamOperations
undeployAll
in interface StreamOperations
public void destroy(String name)
StreamOperations
destroy
in interface StreamOperations
public void destroyAll()
StreamOperations
destroyAll
in interface StreamOperations
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.