public class ProgressTrackerWidget extends Object implements ProgressTracker
ProgressTracker interface.| Modifier | Constructor and Description |
|---|---|
protected |
ProgressTrackerWidget(String binding,
String jobIdentifier,
JobLifecycleObserver jobLifecycleObserver) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCompletionStatus(String taskIdentifier)
Retrieve the completion status for a specific taskIdentifier
|
String |
getDeploymentStream(String taskIdentifier)
Retrieve the deployment stream associated with a given task.
|
String |
getIdentifier()
Retrieve the Job identifier
|
int |
getNumberOfConcurrentDeployments()
Gets the number of concurrent deployments.
|
Enumeration<String> |
getTaskIdentifiers()
Gets the task identifiers associated with the concurrent deployments
|
TaskLifecycleMetrics |
getTaskLifecycleMetrics(String taskIdentifier)
Retrieve the TaskLifecycleMetrics associated with a given task.
|
protected void |
incrementNumberOfDeployments() |
boolean |
isComplete()
Check to see if the Job has completed.
|
boolean |
isSuccessful()
Check to see if the Job completed successfully.
|
String |
toString() |
protected void |
updateTaskExecutionStatus(String binding,
String taskIdentifier,
TaskLifecycleMetrics taskLifecycleMetrics,
String taskDeploymentStream)
Updates the task execution status associated with a given task.
|
protected ProgressTrackerWidget(String binding, String jobIdentifier, JobLifecycleObserver jobLifecycleObserver)
public int getCompletionStatus(String taskIdentifier)
ProgressTrackergetCompletionStatus in interface ProgressTrackerpublic String getIdentifier()
ProgressTrackergetIdentifier in interface ProgressTrackerprotected void updateTaskExecutionStatus(String binding, String taskIdentifier, TaskLifecycleMetrics taskLifecycleMetrics, String taskDeploymentStream)
binding - The binding for making changestaskIdentifier - The identifier of the task whose status is being updatedtaskLifecycleMetrics - The lifecycle metrics for the task in question.public TaskLifecycleMetrics getTaskLifecycleMetrics(String taskIdentifier)
ProgressTrackergetTaskLifecycleMetrics in interface ProgressTrackertaskIdentifier - The ID associated with a given task.public String getDeploymentStream(String taskIdentifier)
ProgressTrackergetDeploymentStream in interface ProgressTrackertaskIdentifier - The ID associated with a given task.public int getNumberOfConcurrentDeployments()
ProgressTrackergetNumberOfConcurrentDeployments in interface ProgressTrackerpublic Enumeration<String> getTaskIdentifiers()
ProgressTrackergetTaskIdentifiers in interface ProgressTrackerpublic boolean isComplete()
ProgressTrackerisComplete in interface ProgressTrackerpublic boolean isSuccessful()
ProgressTrackerisSuccessful in interface ProgressTrackerprotected void incrementNumberOfDeployments()
Copyright © 2015. All rights reserved.