Class InitParametersBuilder

java.lang.Object
org.apache.ignite.InitParametersBuilder

public class InitParametersBuilder extends Object
Builder of InitParameters.
  • Constructor Details

    • InitParametersBuilder

      public InitParametersBuilder()
  • Method Details

    • metaStorageNodeNames

      public InitParametersBuilder metaStorageNodeNames(String... metaStorageNodeNames)
      Sets names of nodes that will host the Meta Storage.
      Parameters:
      metaStorageNodeNames - Names of nodes that will host the Meta Storage.
      Returns:
      this for chaining.
    • metaStorageNodeNames

      public InitParametersBuilder metaStorageNodeNames(Collection<String> metaStorageNodeNames)
      Sets names of nodes that will host the Meta Storage.
      Parameters:
      metaStorageNodeNames - Names of nodes that will host the Meta Storage.
      Returns:
      this for chaining.
    • metaStorageNodes

      public InitParametersBuilder metaStorageNodes(IgniteServer... metaStorageNodes)
      Sets nodes that will host the Meta Storage.
      Parameters:
      metaStorageNodes - Nodes that will host the Meta Storage.
      Returns:
      this for chaining.
    • metaStorageNodes

      public InitParametersBuilder metaStorageNodes(Collection<IgniteServer> metaStorageNodes)
      Sets nodes that will host the Meta Storage.
      Parameters:
      metaStorageNodes - Nodes that will host the Meta Storage.
      Returns:
      this for chaining.
    • cmgNodeNames

      public InitParametersBuilder cmgNodeNames(String... cmgNodeNames)
      Sets names of nodes that will host the CMG. If not set, metaStorageNodeNames will be used.
      Parameters:
      cmgNodeNames - Names of nodes that will host the CMG.
      Returns:
      this for chaining.
    • cmgNodeNames

      public InitParametersBuilder cmgNodeNames(Collection<String> cmgNodeNames)
      Sets names of nodes that will host the CMG. If not set, metaStorageNodeNames will be used.
      Parameters:
      cmgNodeNames - Names of nodes that will host the CMG.
      Returns:
      this for chaining.
    • cmgNodes

      public InitParametersBuilder cmgNodes(IgniteServer... cmgNodes)
      Sets nodes that will host the CMG. If not set, metaStorageNodes(org.apache.ignite.IgniteServer...) will be used.
      Parameters:
      cmgNodes - Nodes that will host the CMG.
      Returns:
      this for chaining.
    • cmgNodes

      public InitParametersBuilder cmgNodes(Collection<IgniteServer> cmgNodes)
      Sets nodes that will host the CMG. If not set, metaStorageNodes(org.apache.ignite.IgniteServer...) will be used.
      Parameters:
      cmgNodes - Nodes that will host the CMG.
      Returns:
      this for chaining.
    • clusterName

      public InitParametersBuilder clusterName(String clusterName)
      Sets Human-readable name of the cluster.
      Parameters:
      clusterName - Human-readable name of the cluster.
      Returns:
      this for chaining.
    • clusterConfiguration

      public InitParametersBuilder clusterConfiguration(@Nullable String clusterConfiguration)
      Sets cluster configuration, that will be applied after initialization.
      Parameters:
      clusterConfiguration - Cluster configuration.
      Returns:
      this for chaining.
    • license

      public InitParametersBuilder license(String license)
    • build

      public InitParameters build()