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()
StreamOperationslist in interface StreamOperationspublic StreamDefinitionResource createStream(String name, String definition, boolean deploy)
StreamOperationscreateStream in interface StreamOperationspublic void deploy(String name, Map<String,String> properties)
StreamOperationsdeploy in interface StreamOperationspublic void undeploy(String name)
StreamOperationsundeploy in interface StreamOperationspublic void undeployAll()
StreamOperationsundeployAll in interface StreamOperationspublic void destroy(String name)
StreamOperationsdestroy in interface StreamOperationspublic void destroyAll()
StreamOperationsdestroyAll in interface StreamOperationsCopyright © 2016 Pivotal Software, Inc.. All rights reserved.