Package com.hazelcast.client.config
Class ClientUserCodeDeploymentConfig
- java.lang.Object
-
- com.hazelcast.client.config.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 Summary
Constructors Constructor Description ClientUserCodeDeploymentConfig()
ClientUserCodeDeploymentConfig(ClientUserCodeDeploymentConfig userCodeDeploymentConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientUserCodeDeploymentConfig
addClass(java.lang.Class clazz)
ClientUserCodeDeploymentConfig
addClass(java.lang.String className)
ClientUserCodeDeploymentConfig
addJar(java.io.File jarFile)
ClientUserCodeDeploymentConfig
addJar(java.lang.String jarPath)
String jarPath is searched in following order: 1.boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getClassNames()
java.util.List<java.lang.String>
getJarPaths()
int
hashCode()
boolean
isEnabled()
ClientUserCodeDeploymentConfig
setClassNames(java.util.List<java.lang.String> classNames)
ClientUserCodeDeploymentConfig
setEnabled(boolean enabled)
ClientUserCodeDeploymentConfig
setJarPaths(java.util.List<java.lang.String> jarPaths)
String jarPath is searched in following order: 1.java.lang.String
toString()
-
-
-
Constructor Detail
-
ClientUserCodeDeploymentConfig
public ClientUserCodeDeploymentConfig()
-
ClientUserCodeDeploymentConfig
public ClientUserCodeDeploymentConfig(ClientUserCodeDeploymentConfig userCodeDeploymentConfig)
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-