public class TaskStatus extends Object
AppDeploymentRequest and
runtime properties by a TaskLauncher.
Consumers of the SPI obtain task status via
TaskLauncher.status(java.lang.String),
whereas SPI implementations create instances of this class via
TaskStatus(String, LaunchState, Map)
| Constructor and Description |
|---|
TaskStatus(String id,
LaunchState state,
Map<String,String> attributes)
Construct a new
TaskStatus. |
| Modifier and Type | Method and Description |
|---|---|
LaunchState |
getState()
Return the state for the the task.
|
String |
getTaskLaunchId()
Return the task launch id for the task.
|
String |
toString()
Return a string representation of this status.
|
public TaskStatus(String id, LaunchState state, Map<String,String> attributes)
TaskStatus.id - the id of the task launch this status is forstate - the LaunchState of the taskattributes - map of attributes for the taskpublic String getTaskLaunchId()
public LaunchState getState()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.