protected class TaskAttemptResourceProvider.PostgresTaskAttemptFetcher extends Object implements TaskAttemptResourceProvider.TaskAttemptFetcher
Constructor and Description |
---|
PostgresTaskAttemptFetcher(ConnectionFactory connectionFactory)
Create a postgres task attempt fetcher that uses a given connection
factory.
|
Modifier and Type | Method and Description |
---|---|
protected void |
close() |
Set<Resource> |
fetchTaskAttemptDetails(Set<String> requestedIds,
String clusterName,
String workflowId,
String jobId,
String taskAttemptId)
Fetch task attempt resources
|
protected ResultSet |
getResultSet(Set<String> requestedIds,
String workflowId,
String jobId,
String taskAttemptId) |
public PostgresTaskAttemptFetcher(ConnectionFactory connectionFactory)
connectionFactory
- a connection factoryprotected ResultSet getResultSet(Set<String> requestedIds, String workflowId, String jobId, String taskAttemptId) throws SQLException
SQLException
protected void close()
public Set<Resource> fetchTaskAttemptDetails(Set<String> requestedIds, String clusterName, String workflowId, String jobId, String taskAttemptId)
TaskAttemptResourceProvider.TaskAttemptFetcher
fetchTaskAttemptDetails
in interface TaskAttemptResourceProvider.TaskAttemptFetcher
requestedIds
- fields to pull from dbclusterName
- the cluster nameworkflowId
- the workflow idjobId
- the job idtaskAttemptId
- the task attempt idCopyright © 2022 Apache Software Foundation. All rights reserved.