Class StreamDefinitionResource
java.lang.Object
org.springframework.hateoas.RepresentationModel<StreamDefinitionResource>
org.springframework.cloud.dataflow.rest.resource.StreamDefinitionResource
public class StreamDefinitionResource
extends org.springframework.hateoas.RepresentationModel<StreamDefinitionResource>
A HATEOAS representation of a
StreamDefinition
. This class also includes a
description of the stream status
.
Note: this implementation is not thread safe.
- Author:
- Patrick Peralta, Ilayaperumal Gopinathan, Gunnar Hillert
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor for serialization frameworks.StreamDefinitionResource
(String name, String dslText, String originalDslText, String description) Construct aStreamDefinitionResource
.StreamDefinitionResource
(String name, String dslText, String originalDslText, String description, String status, String statusDescription) Construct aStreamDefinitionResource
. -
Method Summary
Modifier and TypeMethodDescriptionReturn the description of the stream definition.Return the DSL definition for this stream.getName()
Return the name of this stream.Return the original DSL definition for this stream.Return the status of this stream (i.e.Get a descriptive text of the stream's deployment status.void
Set the status of this stream (i.e.void
setStatusDescription
(String statusDescription) Set the descriptive text of the stream's deployment status.Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, equals, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hashCode, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks, toString
-
Constructor Details
-
StreamDefinitionResource
protected StreamDefinitionResource()Default constructor for serialization frameworks. -
StreamDefinitionResource
public StreamDefinitionResource(String name, String dslText, String originalDslText, String description) Construct aStreamDefinitionResource
.- Parameters:
name
- stream namedslText
- stream definition DSL textoriginalDslText
- original stream definition DSL textdescription
- Description of the stream definition
-
StreamDefinitionResource
public StreamDefinitionResource(String name, String dslText, String originalDslText, String description, String status, String statusDescription) Construct aStreamDefinitionResource
.- Parameters:
name
- stream namedslText
- stream definition DSL textoriginalDslText
- original stream definition DSL textdescription
- Description of the stream definitionstatus
- the status of the streamstatusDescription
- Description of the stream status
-
-
Method Details
-
getName
Return the name of this stream.- Returns:
- stream name
-
getDslText
Return the DSL definition for this stream.- Returns:
- stream definition DSL
-
getOriginalDslText
Return the original DSL definition for this stream.- Returns:
- the original stream definition DSL
-
getDescription
Return the description of the stream definition.- Returns:
- stream definition description
-
getStatus
Return the status of this stream (i.e. deployed, undeployed, etc).- Returns:
- stream status
-
setStatus
Set the status of this stream (i.e. deployed, undeployed, etc).- Parameters:
status
- stream status
-
getStatusDescription
Get a descriptive text of the stream's deployment status. See alsoDeploymentStateResource
.- Returns:
- a descriptive text of the stream's deployment status
-
setStatusDescription
Set the descriptive text of the stream's deployment status. See alsoDeploymentStateResource
- Parameters:
statusDescription
- the stream's deployment status description
-