public class DistributedCmdMetrics extends Object
Constructor and Description |
---|
DistributedCmdMetrics() |
Modifier and Type | Method and Description |
---|---|
static void |
batchIncrementForCancelStatus(BatchedJobConfig config)
Increment for Cancel status for batch job.
|
static void |
batchIncrementForCompleteStatusWithRetry(BatchedJobConfig config,
FileSystem fileSystem,
RetryPolicy retryPolicy)
Increment for batch config for complete status.
|
static void |
batchIncrementForFailStatus(BatchedJobConfig config)
Increment for Fail status for batch job.
|
static long |
getFileSize(String filePath,
FileSystem fileSystem,
RetryPolicy retryPolicy)
get file size for a given filePath, return 0 if exceeding retries.
|
static void |
incrementForAllConfigsCancelStatus(JobConfig config)
Increment for both batch and non-batch configs for Cancel status.
|
static void |
incrementForAllConfigsCompleteStatus(JobConfig config,
FileSystem fileSystem,
RetryPolicy retryPolicy)
Increment for both batch and non-batch configs for COMPLETE status.
|
static void |
incrementForAllConfigsFailStatus(JobConfig config)
Increment for both batch and non-batch configs for Fail status.
|
static void |
incrementForCancelStatus(String jobType,
long count)
Increment cancelled job count.
|
static void |
incrementForCompleteStatusWithRetry(JobConfig config,
FileSystem fileSystem,
RetryPolicy retryPolicy)
Increment for non-batch config for complete status.
|
static void |
incrementForFailStatus(String jobType,
long count)
Increment failed job count.
|
public static void incrementForFailStatus(String jobType, long count)
jobType
- job typecount
- count to incrementpublic static void incrementForCancelStatus(String jobType, long count)
jobType
- job typecount
- count to incrementpublic static long getFileSize(String filePath, FileSystem fileSystem, RetryPolicy retryPolicy)
filePath
- file pathfileSystem
- file systemretryPolicy
- retry policypublic static void incrementForCompleteStatusWithRetry(JobConfig config, FileSystem fileSystem, RetryPolicy retryPolicy)
config
- the job configfileSystem
- filesystemretryPolicy
- the retry policy used for retry operationspublic static void batchIncrementForCompleteStatusWithRetry(BatchedJobConfig config, FileSystem fileSystem, RetryPolicy retryPolicy)
config
- the job configfileSystem
- filesystemretryPolicy
- the retry policy used for retry operationspublic static void batchIncrementForFailStatus(BatchedJobConfig config)
config
- job configpublic static void batchIncrementForCancelStatus(BatchedJobConfig config)
config
- job configpublic static void incrementForAllConfigsCompleteStatus(JobConfig config, FileSystem fileSystem, RetryPolicy retryPolicy)
config
- job configfileSystem
- filesystemretryPolicy
- the retry policy used for retry operationspublic static void incrementForAllConfigsCancelStatus(JobConfig config)
config
- job configpublic static void incrementForAllConfigsFailStatus(JobConfig config)
config
- job configCopyright © 2023. All Rights Reserved.