public class StreamTemplate extends java.lang.Object implements StreamOperations
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEPLOYMENTS_URI |
protected java.util.Map<java.lang.String,java.net.URI> |
resources
Holds discovered URLs of the API.
|
protected org.springframework.web.client.RestTemplate |
restTemplate
A template used for http interaction.
|
| Modifier and Type | Method and Description |
|---|---|
StreamDefinitionResource |
createStream(java.lang.String name,
java.lang.String defintion,
boolean deploy)
Create a new Stream, optionally deploying it.
|
void |
deploy(java.lang.String name)
Deploy an already created resource.
|
void |
deployAll()
Deploy all the resources known to the system.
|
void |
destroy(java.lang.String name)
Destroy an existing resource.
|
void |
destroyAll()
Undeploy all the resources known to the system.
|
StreamDefinitionResource.Page |
list()
List streams known to the system.
|
void |
undeploy(java.lang.String name)
Undeploy a deployed resource, retaining its definition.
|
void |
undeployAll()
Undeploy all the resources known to the system.
|
protected static final java.lang.String DEPLOYMENTS_URI
protected org.springframework.web.client.RestTemplate restTemplate
protected java.util.Map<java.lang.String,java.net.URI> resources
public StreamDefinitionResource createStream(java.lang.String name, java.lang.String defintion, boolean deploy)
StreamOperationscreateStream in interface StreamOperationspublic void destroy(java.lang.String name)
ResourceOperationsdestroy in interface ResourceOperationspublic void deploy(java.lang.String name)
ResourceOperationsdeploy in interface ResourceOperationspublic void undeploy(java.lang.String name)
ResourceOperationsundeploy in interface ResourceOperationspublic StreamDefinitionResource.Page list()
StreamOperationslist in interface StreamOperationspublic void undeployAll()
ResourceOperationsundeployAll in interface ResourceOperationspublic void deployAll()
ResourceOperationsdeployAll in interface ResourceOperationspublic void destroyAll()
ResourceOperationsdestroyAll in interface ResourceOperations