Class CurrentTaskExecutionsResource
java.lang.Object
org.springframework.hateoas.RepresentationModel
org.springframework.cloud.dataflow.rest.resource.CurrentTaskExecutionsResource
public class CurrentTaskExecutionsResource
extends org.springframework.hateoas.RepresentationModel
A HATEOAS representation of a the currently running task executions and server limits.
- Author:
- David Turanski
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromTaskExecutionInformation
(PlatformTaskExecutionInformation taskExecutionInformation) Create a CurrentTaskExecutionsResourceint
getName()
int
getType()
void
setMaximumTaskExecutions
(int maximumTaskExecutions) void
void
setRunningExecutionCount
(int runningExecutionCount) void
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
-
CurrentTaskExecutionsResource
public CurrentTaskExecutionsResource()
-
-
Method Details
-
getName
-
setName
-
getType
-
setType
-
getMaximumTaskExecutions
public int getMaximumTaskExecutions() -
setMaximumTaskExecutions
public void setMaximumTaskExecutions(int maximumTaskExecutions) -
getRunningExecutionCount
public int getRunningExecutionCount() -
setRunningExecutionCount
public void setRunningExecutionCount(int runningExecutionCount) -
fromTaskExecutionInformation
public static CurrentTaskExecutionsResource fromTaskExecutionInformation(PlatformTaskExecutionInformation taskExecutionInformation) Create a CurrentTaskExecutionsResource- Parameters:
taskExecutionInformation
- domain object used to create resource- Returns:
- CurrentTaskExecutionsResource to send to the client
-