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)
ProgressTracker
getCompletionStatus
in interface ProgressTracker
public String getIdentifier()
ProgressTracker
getIdentifier
in interface ProgressTracker
protected 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)
ProgressTracker
getTaskLifecycleMetrics
in interface ProgressTracker
taskIdentifier
- The ID associated with a given task.public String getDeploymentStream(String taskIdentifier)
ProgressTracker
getDeploymentStream
in interface ProgressTracker
taskIdentifier
- The ID associated with a given task.public int getNumberOfConcurrentDeployments()
ProgressTracker
getNumberOfConcurrentDeployments
in interface ProgressTracker
public Enumeration<String> getTaskIdentifiers()
ProgressTracker
getTaskIdentifiers
in interface ProgressTracker
public boolean isComplete()
ProgressTracker
isComplete
in interface ProgressTracker
public boolean isSuccessful()
ProgressTracker
isSuccessful
in interface ProgressTracker
protected void incrementNumberOfDeployments()
Copyright © 2015. All rights reserved.