public class Diagnostics extends Object
Constructor and Description |
---|
Diagnostics(String deploymentStream,
int numOfThreads) |
Modifier and Type | Method and Description |
---|---|
void |
addDeploymentRequest(String taskIdentifier,
DeploymentMessage deploymentRequest)
Add the deployment request associated with the task.
|
void |
averageRateOfTaskArrivals() |
void |
completedTask(String taskIdentifier)
Process the completion of the task.
|
void |
createdTask(String taskIdentifier,
TaskLifecycleMetrics metrics)
Manage information about the newly created task.
|
void |
getNumberOfCompletedTasks() |
ResourceMetrics |
getResourceMetrics()
Retrieve the resource metrics
|
TaskLifecycleMetrics |
getStatusOfTask(String taskIdentifier)
Retrieve the status associated with a specific task.
|
void |
processExecutionStatusRequest(ExecutionStatus executionStatus) |
void |
processResourceDiscoveryRequest(ResourceDiscovery resourceDiscovery) |
void |
removeDeploymentRequest(String taskIdentifier)
Remove the deployment request associated with a task.
|
public static final String MODULE
public Diagnostics(String deploymentStream, int numOfThreads) throws CommunicationsException
CommunicationsException
public ResourceMetrics getResourceMetrics()
public void addDeploymentRequest(String taskIdentifier, DeploymentMessage deploymentRequest)
taskIdentifier
- The id of the taskdeploymentRequest
- The deployment request for the task in question.public void removeDeploymentRequest(String taskIdentifier)
taskIdentifier
- The id of the taskpublic void createdTask(String taskIdentifier, TaskLifecycleMetrics metrics)
taskIdentifier
- The taskIdentifier assigned to the taskmetrics
- The lifecycle metrics associated with the task in questionpublic void completedTask(String taskIdentifier)
taskIdentifier
- The identifier associated with the task.public TaskLifecycleMetrics getStatusOfTask(String taskIdentifier)
taskIdentifier
- public void averageRateOfTaskArrivals()
public void getNumberOfCompletedTasks()
public void processResourceDiscoveryRequest(ResourceDiscovery resourceDiscovery) throws SuppressedException
SuppressedException
public void processExecutionStatusRequest(ExecutionStatus executionStatus) throws SuppressedException
SuppressedException
Copyright © 2015. All rights reserved.