Class TaskManagerConfiguration

    • Constructor Detail

      • TaskManagerConfiguration

        public TaskManagerConfiguration​(int numberSlots,
                                        ResourceProfile defaultSlotResourceProfile,
                                        ResourceProfile totalResourceProfile,
                                        String[] tmpDirectories,
                                        org.apache.flink.api.common.time.Time rpcTimeout,
                                        org.apache.flink.api.common.time.Time slotTimeout,
                                        @Nullable
                                        java.time.Duration maxRegistrationDuration,
                                        org.apache.flink.configuration.Configuration configuration,
                                        boolean exitJvmOnOutOfMemory,
                                        @Nullable
                                        String taskManagerLogPath,
                                        @Nullable
                                        String taskManagerStdoutPath,
                                        @Nullable
                                        String taskManagerLogDir,
                                        String taskManagerExternalAddress,
                                        File tmpWorkingDirectory,
                                        RetryingRegistrationConfiguration retryingRegistrationConfiguration)
    • Method Detail

      • getNumberSlots

        public int getNumberSlots()
      • getDefaultSlotResourceProfile

        public ResourceProfile getDefaultSlotResourceProfile()
      • getTotalResourceProfile

        public ResourceProfile getTotalResourceProfile()
      • getRpcTimeout

        public org.apache.flink.api.common.time.Time getRpcTimeout()
      • getSlotTimeout

        public org.apache.flink.api.common.time.Time getSlotTimeout()
      • getMaxRegistrationDuration

        @Nullable
        public java.time.Duration getMaxRegistrationDuration()
      • getConfiguration

        public org.apache.flink.configuration.Configuration getConfiguration()
        Description copied from interface: TaskManagerRuntimeInfo
        Gets the configuration that the TaskManager was started with.
        Specified by:
        getConfiguration in interface TaskManagerRuntimeInfo
        Returns:
        The configuration that the TaskManager was started with.
      • shouldExitJvmOnOutOfMemoryError

        public boolean shouldExitJvmOnOutOfMemoryError()
        Description copied from interface: TaskManagerRuntimeInfo
        Checks whether the TaskManager should exit the JVM when the task thread throws an OutOfMemoryError.
        Specified by:
        shouldExitJvmOnOutOfMemoryError in interface TaskManagerRuntimeInfo
        Returns:
        True to terminate the JVM on an OutOfMemoryError, false otherwise.
      • getTaskManagerStdoutPath

        @Nullable
        public String getTaskManagerStdoutPath()