Package com.hazelcast.config
Class ManagementCenterConfig
java.lang.Object
com.hazelcast.config.ManagementCenterConfig
public final class ManagementCenterConfig extends Object
Contains the configuration for Hazelcast Management Center.
-
Constructor Summary
Constructors Constructor Description ManagementCenterConfig()
-
Method Summary
Modifier and Type Method Description ManagementCenterConfig
addTrustedInterface(String ip)
Adds a trusted interface.boolean
equals(Object obj)
Set<String>
getTrustedInterfaces()
Gets the trusted interfaces.int
hashCode()
boolean
isScriptingEnabled()
Returns if scripting is allowed (true
) or disallowed (false
).ManagementCenterConfig
setScriptingEnabled(boolean scriptingEnabled)
Enables/disables scripting on the member.ManagementCenterConfig
setTrustedInterfaces(Set<String> interfaces)
Sets the trusted interfaces.String
toString()
-
Constructor Details
-
ManagementCenterConfig
public ManagementCenterConfig()
-
-
Method Details
-
setScriptingEnabled
Enables/disables scripting on the member. Management center allows to send a script for execution to a member. The script can access the underlying system Hazelcast member is running on with permissions of user running the member. Disabling scripting improves the member security.Default value for this config element is
false
.- Parameters:
scriptingEnabled
-true
to allow scripting on the member,false
to disallow- Returns:
- this management center config instance
- Since:
- 3.12
-
isScriptingEnabled
public boolean isScriptingEnabled()Returns if scripting is allowed (true
) or disallowed (false
). -
getTrustedInterfaces
Gets the trusted interfaces.- Returns:
- the trusted interfaces
- See Also:
setTrustedInterfaces(java.util.Set)
-
setTrustedInterfaces
Sets the trusted interfaces.The interface is an IP address where the last octet can be a wildcard '*' or a range '10-20'.
- Parameters:
interfaces
- the new trusted interfaces- Returns:
- the updated MulticastConfig
- See Also:
if interfaces is
-
addTrustedInterface
Adds a trusted interface.- Parameters:
ip
- the IP of the trusted interface- Throws:
IllegalArgumentException
- if IP isnull
- See Also:
setTrustedInterfaces(java.util.Set)
-
toString
-
hashCode
public int hashCode() -
equals
-