org.springframework.cloud.dataflow.core

## Class TaskPlatform

- java.lang.Object
- - org.springframework.cloud.dataflow.core.TaskPlatform

-     public class TaskPlatform
      extends Object

  For a given platform, Cloud Foundry, Kubernetes, etc, associate a list of Task Launchers.
  Author:
    Donovan Muller, David Turanski

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TaskPlatform(String name, List<Launcher> launchers)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<Launcher>` | `getLaunchers()`
    `String` | `getName()`
    `boolean` | `isPrimary()` If true, identifies which Platform the Data Flow Server is running on.
    `void` | `setLaunchers(List<Launcher> launchers)`
    `void` | `setName(String name)`
    `void` | `setPrimary(boolean primary)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TaskPlatform

          public TaskPlatform(String name,
                              List<Launcher> launchers)

  - ### Method Detail

    - #### getName

          public String getName()

    - #### setName

          public void setName(String name)

    - #### getLaunchers

          public List<Launcher> getLaunchers()

    - #### setLaunchers

          public void setLaunchers(List<Launcher> launchers)

    - #### isPrimary

          public boolean isPrimary()

      If true, identifies which Platform the Data Flow Server is running on. This information is used to select the TaskPlatform used by Scheduler. @see SchedulerConfiguration.
      Returns:
        true if the TaskPlatform is the same as where the Data Flow Server is running.

    - #### setPrimary

          public void setPrimary(boolean primary)

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.