Class DefaultRuntimeContext
- java.lang.Object
-
- org.apache.flink.datastream.impl.context.DefaultRuntimeContext
-
- All Implemented Interfaces:
RuntimeContext
public class DefaultRuntimeContext extends Object implements RuntimeContext
The default implementation ofRuntimeContext
.
-
-
Constructor Summary
Constructors Constructor Description DefaultRuntimeContext(String jobName, JobType jobType, int parallelism, int maxParallelism, String taskName, MetricGroup metricGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobInfo
getJobInfo()
Get theJobInfo
of this process function.MetricGroup
getMetricGroup()
Get the metric group of this process function.TaskInfo
getTaskInfo()
Get theTaskInfo
of this process function.
-
-
-
Constructor Detail
-
DefaultRuntimeContext
public DefaultRuntimeContext(String jobName, JobType jobType, int parallelism, int maxParallelism, String taskName, MetricGroup metricGroup)
-
-
Method Detail
-
getJobInfo
public JobInfo getJobInfo()
Description copied from interface:RuntimeContext
Get theJobInfo
of this process function.- Specified by:
getJobInfo
in interfaceRuntimeContext
-
getTaskInfo
public TaskInfo getTaskInfo()
Description copied from interface:RuntimeContext
Get theTaskInfo
of this process function.- Specified by:
getTaskInfo
in interfaceRuntimeContext
-
getMetricGroup
public MetricGroup getMetricGroup()
Description copied from interface:RuntimeContext
Get the metric group of this process function.- Specified by:
getMetricGroup
in interfaceRuntimeContext
-
-