Package com.hazelcast.config
Class ManagementCenterConfig
java.lang.Object
com.hazelcast.config.ManagementCenterConfig
- All Implemented Interfaces:
TrustedInterfacesConfigurable<ManagementCenterConfig>
public final class ManagementCenterConfig
extends Object
implements TrustedInterfacesConfigurable<ManagementCenterConfig>
Contains the configuration for Hazelcast Management Center.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a trusted interface.boolean
Gets the trusted interfaces.int
hashCode()
boolean
Returns if executing console commands is allowed (true
) or disallowed (false
).boolean
Returns if Management Center is allowed to access contents of Hazelcast data structures (for instance map entries) (true
) or disallowed (false
).boolean
Returns if scripting is allowed (true
) or disallowed (false
).setConsoleEnabled
(boolean consoleEnabled) Enables/disables console commands execution on the member.setDataAccessEnabled
(boolean dataAccessEnabled) Enables/disables access to contents of Hazelcast data structures (for instance map entries) for Management Center.setScriptingEnabled
(boolean scriptingEnabled) Enables/disables scripting on the member.setTrustedInterfaces
(Set<String> interfaces) Sets the trusted interfaces.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
). -
setConsoleEnabled
Enables/disables console commands execution on the member. Management center allows to send a console command for execution to a member. The console command can access the underlying system Hazelcast member is running and bypasses configured client permissions. Disabling console commands execution improves the member security.Default value for this config element is
false
.- Parameters:
consoleEnabled
-true
to allow console commands on the member,false
to disallow- Returns:
- this management center config instance
- Since:
- 5.1
-
isConsoleEnabled
public boolean isConsoleEnabled()Returns if executing console commands is allowed (true
) or disallowed (false
). -
setDataAccessEnabled
Enables/disables access to contents of Hazelcast data structures (for instance map entries) for Management Center. Management Center can't access the data if at least one member has the data access disabled.Default value for this config element is
true
.- Parameters:
dataAccessEnabled
-true
to allow data access for Management Center,false
to disallow- Returns:
- this management center config instance
- Since:
- 5.1
-
isDataAccessEnabled
public boolean isDataAccessEnabled()Returns if Management Center is allowed to access contents of Hazelcast data structures (for instance map entries) (true
) or disallowed (false
). -
getTrustedInterfaces
Gets the trusted interfaces.- Specified by:
getTrustedInterfaces
in interfaceTrustedInterfacesConfigurable<ManagementCenterConfig>
- Returns:
- the trusted interfaces
- See Also:
-
setTrustedInterfaces
Sets the trusted interfaces.The interface is an IP address where the last octet can be a wildcard '*' or a range '10-20'.
- Specified by:
setTrustedInterfaces
in interfaceTrustedInterfacesConfigurable<ManagementCenterConfig>
- Parameters:
interfaces
- the new trusted interfaces- Returns:
- the updated MulticastConfig
- See Also:
-
addTrustedInterface
Adds a trusted interface.- Specified by:
addTrustedInterface
in interfaceTrustedInterfacesConfigurable<ManagementCenterConfig>
- Parameters:
ip
- the IP of the trusted interface- Returns:
- configuration object itself
- Throws:
IllegalArgumentException
- if IP isnull
- See Also:
-
toString
-
hashCode
public int hashCode() -
equals
-