Class SavepointEnvironment
java.lang.Object
org.apache.flink.state.api.runtime.SavepointEnvironment
- All Implemented Interfaces:
org.apache.flink.runtime.execution.Environment
@Internal
public class SavepointEnvironment
extends Object
implements org.apache.flink.runtime.execution.Environment
A minimally implemented
Environment that provides the functionality required to run the
state-processor-api.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeCheckpoint(long checkpointId, org.apache.flink.runtime.checkpoint.CheckpointMetrics checkpointMetrics) voidacknowledgeCheckpoint(long checkpointId, org.apache.flink.runtime.checkpoint.CheckpointMetrics checkpointMetrics, org.apache.flink.runtime.checkpoint.TaskStateSnapshot subtaskState) voiddeclineCheckpoint(long checkpointId, org.apache.flink.runtime.checkpoint.CheckpointException checkpointException) voidfailExternally(Throwable cause) org.apache.flink.runtime.accumulators.AccumulatorRegistryorg.apache.flink.runtime.io.network.partition.consumer.IndexedInputGate[]org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter[]org.apache.flink.runtime.broadcast.BroadcastVariableManagerorg.apache.flink.runtime.checkpoint.channel.ChannelStateWriteRequestExecutorFactoryorg.apache.flink.api.common.ExecutionConfigorg.apache.flink.runtime.executiongraph.ExecutionAttemptIDorg.apache.flink.runtime.externalresource.ExternalResourceInfoProviderorg.apache.flink.runtime.taskexecutor.GlobalAggregateManagerorg.apache.flink.runtime.io.network.partition.consumer.IndexedInputGategetInputGate(int index) org.apache.flink.runtime.jobgraph.tasks.InputSplitProviderorg.apache.flink.runtime.io.disk.iomanager.IOManagerorg.apache.flink.configuration.Configurationorg.apache.flink.api.common.JobIDgetJobID()org.apache.flink.api.common.JobInfoorg.apache.flink.runtime.jobgraph.JobTypeorg.apache.flink.runtime.jobgraph.JobVertexIDorg.apache.flink.runtime.memory.MemoryManagerorg.apache.flink.runtime.metrics.groups.TaskMetricGrouporg.apache.flink.runtime.jobgraph.tasks.TaskOperatorEventGatewayorg.apache.flink.runtime.memory.SharedResourcesorg.apache.flink.configuration.Configurationorg.apache.flink.runtime.io.network.TaskEventDispatcherorg.apache.flink.api.common.TaskInfoorg.apache.flink.runtime.query.TaskKvStateRegistryorg.apache.flink.runtime.taskmanager.TaskManagerActionsorg.apache.flink.runtime.taskmanager.TaskManagerRuntimeInfoorg.apache.flink.runtime.state.TaskStateManagerorg.apache.flink.util.UserCodeClassLoaderorg.apache.flink.runtime.io.network.api.writer.ResultPartitionWritergetWriter(int index) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.execution.Environment
getAsyncOperationsThreadPool, getCheckpointStorageAccess, getMainMailboxExecutor, setAsyncOperationsThreadPool, setCheckpointStorageAccess, setMainMailboxExecutor
-
Method Details
-
getExecutionConfig
public org.apache.flink.api.common.ExecutionConfig getExecutionConfig()- Specified by:
getExecutionConfigin interfaceorg.apache.flink.runtime.execution.Environment
-
getJobID
public org.apache.flink.api.common.JobID getJobID()- Specified by:
getJobIDin interfaceorg.apache.flink.runtime.execution.Environment
-
getJobType
public org.apache.flink.runtime.jobgraph.JobType getJobType()- Specified by:
getJobTypein interfaceorg.apache.flink.runtime.execution.Environment
-
getJobVertexId
public org.apache.flink.runtime.jobgraph.JobVertexID getJobVertexId()- Specified by:
getJobVertexIdin interfaceorg.apache.flink.runtime.execution.Environment
-
getExecutionId
public org.apache.flink.runtime.executiongraph.ExecutionAttemptID getExecutionId()- Specified by:
getExecutionIdin interfaceorg.apache.flink.runtime.execution.Environment
-
getTaskConfiguration
public org.apache.flink.configuration.Configuration getTaskConfiguration()- Specified by:
getTaskConfigurationin interfaceorg.apache.flink.runtime.execution.Environment
-
getTaskManagerInfo
public org.apache.flink.runtime.taskmanager.TaskManagerRuntimeInfo getTaskManagerInfo()- Specified by:
getTaskManagerInfoin interfaceorg.apache.flink.runtime.execution.Environment
-
getMetricGroup
public org.apache.flink.runtime.metrics.groups.TaskMetricGroup getMetricGroup()- Specified by:
getMetricGroupin interfaceorg.apache.flink.runtime.execution.Environment
-
getJobConfiguration
public org.apache.flink.configuration.Configuration getJobConfiguration()- Specified by:
getJobConfigurationin interfaceorg.apache.flink.runtime.execution.Environment
-
getJobInfo
public org.apache.flink.api.common.JobInfo getJobInfo()- Specified by:
getJobInfoin interfaceorg.apache.flink.runtime.execution.Environment
-
getTaskInfo
public org.apache.flink.api.common.TaskInfo getTaskInfo()- Specified by:
getTaskInfoin interfaceorg.apache.flink.runtime.execution.Environment
-
getInputSplitProvider
public org.apache.flink.runtime.jobgraph.tasks.InputSplitProvider getInputSplitProvider()- Specified by:
getInputSplitProviderin interfaceorg.apache.flink.runtime.execution.Environment
-
getIOManager
public org.apache.flink.runtime.io.disk.iomanager.IOManager getIOManager()- Specified by:
getIOManagerin interfaceorg.apache.flink.runtime.execution.Environment
-
getMemoryManager
public org.apache.flink.runtime.memory.MemoryManager getMemoryManager()- Specified by:
getMemoryManagerin interfaceorg.apache.flink.runtime.execution.Environment
-
getUserCodeClassLoader
public org.apache.flink.util.UserCodeClassLoader getUserCodeClassLoader()- Specified by:
getUserCodeClassLoaderin interfaceorg.apache.flink.runtime.execution.Environment
-
getDistributedCacheEntries
- Specified by:
getDistributedCacheEntriesin interfaceorg.apache.flink.runtime.execution.Environment
-
getBroadcastVariableManager
public org.apache.flink.runtime.broadcast.BroadcastVariableManager getBroadcastVariableManager()- Specified by:
getBroadcastVariableManagerin interfaceorg.apache.flink.runtime.execution.Environment
-
getTaskStateManager
public org.apache.flink.runtime.state.TaskStateManager getTaskStateManager()- Specified by:
getTaskStateManagerin interfaceorg.apache.flink.runtime.execution.Environment
-
getGlobalAggregateManager
public org.apache.flink.runtime.taskexecutor.GlobalAggregateManager getGlobalAggregateManager()- Specified by:
getGlobalAggregateManagerin interfaceorg.apache.flink.runtime.execution.Environment
-
getExternalResourceInfoProvider
public org.apache.flink.runtime.externalresource.ExternalResourceInfoProvider getExternalResourceInfoProvider()- Specified by:
getExternalResourceInfoProviderin interfaceorg.apache.flink.runtime.execution.Environment
-
getAccumulatorRegistry
public org.apache.flink.runtime.accumulators.AccumulatorRegistry getAccumulatorRegistry()- Specified by:
getAccumulatorRegistryin interfaceorg.apache.flink.runtime.execution.Environment
-
getTaskKvStateRegistry
public org.apache.flink.runtime.query.TaskKvStateRegistry getTaskKvStateRegistry()- Specified by:
getTaskKvStateRegistryin interfaceorg.apache.flink.runtime.execution.Environment
-
acknowledgeCheckpoint
public void acknowledgeCheckpoint(long checkpointId, org.apache.flink.runtime.checkpoint.CheckpointMetrics checkpointMetrics) - Specified by:
acknowledgeCheckpointin interfaceorg.apache.flink.runtime.execution.Environment
-
acknowledgeCheckpoint
public void acknowledgeCheckpoint(long checkpointId, org.apache.flink.runtime.checkpoint.CheckpointMetrics checkpointMetrics, org.apache.flink.runtime.checkpoint.TaskStateSnapshot subtaskState) - Specified by:
acknowledgeCheckpointin interfaceorg.apache.flink.runtime.execution.Environment
-
declineCheckpoint
public void declineCheckpoint(long checkpointId, org.apache.flink.runtime.checkpoint.CheckpointException checkpointException) - Specified by:
declineCheckpointin interfaceorg.apache.flink.runtime.execution.Environment
-
getOperatorCoordinatorEventGateway
public org.apache.flink.runtime.jobgraph.tasks.TaskOperatorEventGateway getOperatorCoordinatorEventGateway()- Specified by:
getOperatorCoordinatorEventGatewayin interfaceorg.apache.flink.runtime.execution.Environment
-
failExternally
- Specified by:
failExternallyin interfaceorg.apache.flink.runtime.execution.Environment
-
getWriter
public org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter getWriter(int index) - Specified by:
getWriterin interfaceorg.apache.flink.runtime.execution.Environment
-
getAllWriters
public org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter[] getAllWriters()- Specified by:
getAllWritersin interfaceorg.apache.flink.runtime.execution.Environment
-
getInputGate
public org.apache.flink.runtime.io.network.partition.consumer.IndexedInputGate getInputGate(int index) - Specified by:
getInputGatein interfaceorg.apache.flink.runtime.execution.Environment
-
getAllInputGates
public org.apache.flink.runtime.io.network.partition.consumer.IndexedInputGate[] getAllInputGates()- Specified by:
getAllInputGatesin interfaceorg.apache.flink.runtime.execution.Environment
-
getTaskEventDispatcher
public org.apache.flink.runtime.io.network.TaskEventDispatcher getTaskEventDispatcher()- Specified by:
getTaskEventDispatcherin interfaceorg.apache.flink.runtime.execution.Environment
-
getChannelStateExecutorFactory
public org.apache.flink.runtime.checkpoint.channel.ChannelStateWriteRequestExecutorFactory getChannelStateExecutorFactory()- Specified by:
getChannelStateExecutorFactoryin interfaceorg.apache.flink.runtime.execution.Environment
-
getTaskManagerActions
public org.apache.flink.runtime.taskmanager.TaskManagerActions getTaskManagerActions()- Specified by:
getTaskManagerActionsin interfaceorg.apache.flink.runtime.execution.Environment
-