Class ClientUserCodeDeploymentConfig

java.lang.Object
com.hazelcast.client.config.ClientUserCodeDeploymentConfig

@Deprecated(since="5.4", forRemoval=true) public class ClientUserCodeDeploymentConfig extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.4, "User Code Deployment" is replaced by the "User Code Namespaces" feature
Configuration of User Code Deployment. When enabled client sends configured classes to cluster. This simplifies deployment as you do not have to deploy your domain classes into classpath of all cluster members.
See Also:
  • Constructor Details

    • ClientUserCodeDeploymentConfig

      public ClientUserCodeDeploymentConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ClientUserCodeDeploymentConfig

      public ClientUserCodeDeploymentConfig(ClientUserCodeDeploymentConfig userCodeDeploymentConfig)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      {true} when User Code Deployment is enabled
    • setEnabled

      public ClientUserCodeDeploymentConfig setEnabled(boolean enabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      enabled - Enable or disable User Code Deployment. Default: {false}
      Returns:
      this for chaining
    • getClassNames

      public List<String> getClassNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      list of configured class names
    • getJarPaths

      public List<String> getJarPaths()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      list of configured jar path
    • setClassNames

      public ClientUserCodeDeploymentConfig setClassNames(List<String> classNames)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      classNames - names of the classes that will be send to cluster
      Returns:
      this for chaining
    • setJarPaths

      public ClientUserCodeDeploymentConfig setJarPaths(List<String> jarPaths)
      Deprecated, for removal: This API element is subject to removal in a future version.
      String jarPath is searched in following order: 1. as absolute path, 2. as URL, 3. and in classpath.
      Parameters:
      jarPaths - add list of jarPaths that will be send to clusters
      Returns:
      this for chaining
    • addClass

      public ClientUserCodeDeploymentConfig addClass(String className)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      className - name of the class that will be send to cluster
      Returns:
      this for chaining
    • addClass

      public ClientUserCodeDeploymentConfig addClass(Class clazz)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      clazz - class that will be send to cluster
      Returns:
      this for chaining
    • addJar

      public ClientUserCodeDeploymentConfig addJar(String jarPath)
      Deprecated, for removal: This API element is subject to removal in a future version.
      String jarPath is searched in following order: 1. as absolute path, 2. as URL, 3. and in classpath.
      Parameters:
      jarPath - path of the jar that will be send to clusters
      Returns:
      this for chaining
    • addJar

      public ClientUserCodeDeploymentConfig addJar(File jarFile)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      jarFile - path of the jar that will be send to clusters
      Returns:
      this for chaining
    • equals

      public boolean equals(Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object