public class MonitoringUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MonitoringUtil.JobMessagesHandler
An interface that can be used for defining callbacks to receive a list
of JobMessages containing monitoring information.
|
static class |
MonitoringUtil.LoggingHandler
A handler that logs monitoring messages.
|
static class |
MonitoringUtil.TimeStampComparator
Comparator for sorting rows in increasing order based on timestamp.
|
| Constructor and Description |
|---|
MonitoringUtil(DataflowClient dataflowClient)
Construct a helper for monitoring.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getGcloudCancelCommand(DataflowPipelineOptions options,
String jobId) |
List<com.google.api.services.dataflow.model.JobMessage> |
getJobMessages(String jobId,
long startTimestampMs)
Return job messages sorted in ascending order by timestamp.
|
static String |
getJobMonitoringPageURL(String projectName,
String jobId)
Deprecated.
this method defaults the region to "us-central1". Prefer using the overload with
an explicit regionId parameter.
|
static String |
getJobMonitoringPageURL(String projectName,
String regionId,
String jobId) |
static PipelineResult.State |
toState(String stateName) |
public MonitoringUtil(DataflowClient dataflowClient)
public List<com.google.api.services.dataflow.model.JobMessage> getJobMessages(String jobId, long startTimestampMs) throws IOException
jobId - The id of the job to get the messages for.startTimestampMs - Return only those messages with a
timestamp greater than this value.IOException@Deprecated public static String getJobMonitoringPageURL(String projectName, String jobId)
public static String getJobMonitoringPageURL(String projectName, String regionId, String jobId)
public static String getGcloudCancelCommand(DataflowPipelineOptions options, String jobId)
public static PipelineResult.State toState(String stateName)
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.