Package com.hazelcast.client.config
Class ClientUserCodeDeploymentConfig
java.lang.Object
com.hazelcast.client.config.ClientUserCodeDeploymentConfig
public class ClientUserCodeDeploymentConfig extends 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
Modifier and Type Method Description ClientUserCodeDeploymentConfig
addClass(Class clazz)
ClientUserCodeDeploymentConfig
addClass(String className)
ClientUserCodeDeploymentConfig
addJar(File jarFile)
ClientUserCodeDeploymentConfig
addJar(String jarPath)
String jarPath is searched in following order: 1.boolean
equals(Object o)
List<String>
getClassNames()
List<String>
getJarPaths()
int
hashCode()
boolean
isEnabled()
ClientUserCodeDeploymentConfig
setClassNames(List<String> classNames)
ClientUserCodeDeploymentConfig
setEnabled(boolean enabled)
ClientUserCodeDeploymentConfig
setJarPaths(List<String> jarPaths)
String jarPath is searched in following order: 1.String
toString()
-
Constructor Details
-
ClientUserCodeDeploymentConfig
public ClientUserCodeDeploymentConfig() -
ClientUserCodeDeploymentConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Returns:
- {
true
} when User Code Deployment is enabled
-
setEnabled
- Parameters:
enabled
- Enable or disable User Code Deployment. Default: {false
}- Returns:
- this for chaining
-
getClassNames
- Returns:
- list of configured class names
-
getJarPaths
- Returns:
- list of configured jar path
-
setClassNames
- Parameters:
classNames
- names of the classes that will be send to cluster- Returns:
- this for chaining
-
setJarPaths
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
- Parameters:
className
- name of the class that will be send to cluster- Returns:
- this for chaining
-
addClass
- Parameters:
clazz
- class that will be send to cluster- Returns:
- this for chaining
-
addJar
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
- Parameters:
jarFile
- path of the jar that will be send to clusters- Returns:
- this for chaining
-
equals
-
hashCode
public int hashCode() -
toString
-