public class StreamTemplate extends java.lang.Object implements StreamOperations
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> |
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 |
---|---|
void |
cleanBusResources(java.lang.String name)
Remove any bus resources that cannot be automatically removed during undeploy.
|
StreamDefinitionResource |
createStream(java.lang.String name,
java.lang.String definition,
boolean deploy)
Create a new Stream, optionally deploying it.
|
void |
deploy(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties)
Deploy an already created resource.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cleanBusResources, deploy, destroy, destroyAll, undeploy, undeployAll
protected org.springframework.web.client.RestTemplate restTemplate
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> resources
public StreamDefinitionResource createStream(java.lang.String name, java.lang.String definition, boolean deploy)
StreamOperations
createStream
in interface StreamOperations
public StreamDefinitionResource.Page list()
StreamOperations
list
in interface StreamOperations
public void destroy(java.lang.String name)
ResourceOperations
destroy
in interface ResourceOperations
public void deploy(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties)
ResourceOperations
deploy
in interface ResourceOperations
public void undeploy(java.lang.String name)
ResourceOperations
undeploy
in interface ResourceOperations
public void undeployAll()
ResourceOperations
undeployAll
in interface ResourceOperations
public void destroyAll()
ResourceOperations
destroyAll
in interface ResourceOperations
public void cleanBusResources(java.lang.String name)
ResourceOperations
cleanBusResources
in interface ResourceOperations