Class ClientUserCodeDeploymentConfig


  • public class ClientUserCodeDeploymentConfig
    extends java.lang.Object
    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.
    • Constructor Detail

      • ClientUserCodeDeploymentConfig

        public ClientUserCodeDeploymentConfig()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Returns:
        {true} when User Code Deployment is enabled
      • setEnabled

        public ClientUserCodeDeploymentConfig setEnabled​(boolean enabled)
        Parameters:
        enabled - Enable or disable User Code Deployment. Default: {false}
        Returns:
        this for chaining
      • getClassNames

        public java.util.List<java.lang.String> getClassNames()
        Returns:
        list of configured class names
      • getJarPaths

        public java.util.List<java.lang.String> getJarPaths()
        Returns:
        list of configured jar path
      • setClassNames

        public ClientUserCodeDeploymentConfig setClassNames​(java.util.List<java.lang.String> classNames)
        Parameters:
        classNames - names of the classes that will be send to cluster
        Returns:
        this for chaining
      • setJarPaths

        public ClientUserCodeDeploymentConfig setJarPaths​(java.util.List<java.lang.String> jarPaths)
        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​(java.lang.String className)
        Parameters:
        className - name of the class that will be send to cluster
        Returns:
        this for chaining
      • addClass

        public ClientUserCodeDeploymentConfig addClass​(java.lang.Class clazz)
        Parameters:
        clazz - class that will be send to cluster
        Returns:
        this for chaining
      • addJar

        public ClientUserCodeDeploymentConfig addJar​(java.lang.String jarPath)
        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​(java.io.File jarFile)
        Parameters:
        jarFile - path of the jar that will be send to clusters
        Returns:
        this for chaining
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object