Uploading Custom Classes
To store and query custom objects, those objects' classes must be on the classpath of your cluster members. In Hazelcast Cloud, you can upload custom classes by dragging and dropping files in the UI.
You may need to upload custom Java classes in the following situations:
You have objects that run on the cluster via clients such as
Callableand entry processors.
You have new or amended user domain objects
You have your own
You need a cluster that has at least two members (nodes).
|Custom classes are uploaded onto clusters by using rolling restart, which relies on shutting down each member one at a time. As a result, your cluster may lose all its data if it consists of a single member.|
Your files must be in either
jar format and the maximum file size is 500 MB.
Uploaded classes are restricted by a limited set of JSP permissions. If you need your uploaded code to be granted any additional permissions, create a support ticket for it.
To upload custom classes onto a team’s cluster, you must have either an admin or developer role. See Managing Teams and Users.
To upload JAR files with custom classes, click Upload Custom Classes.
Once you click on it, the following dialog appears where you can drag your file to or select it using the
Once the upload is successfully finished and the progress indicator disappeared, the custom classes are deployed and ready to use:
To remove custom classes from the cluster, click Upload Custom Classes, find your class in the list and click on the delete icon next to it.