Package com.hazelcast.config
Class ManagementCenterConfig
- java.lang.Object
-
- com.hazelcast.config.ManagementCenterConfig
-
- All Implemented Interfaces:
TrustedInterfacesConfigurable<ManagementCenterConfig>
public final class ManagementCenterConfig extends java.lang.Object implements TrustedInterfacesConfigurable<ManagementCenterConfig>
Contains the configuration for Hazelcast Management Center.
-
-
Constructor Summary
Constructors Constructor Description ManagementCenterConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagementCenterConfig
addTrustedInterface(java.lang.String ip)
Adds a trusted interface.boolean
equals(java.lang.Object obj)
java.util.Set<java.lang.String>
getTrustedInterfaces()
Gets the trusted interfaces.int
hashCode()
boolean
isConsoleEnabled()
Returns if executing console commands is allowed (true
) or disallowed (false
).boolean
isDataAccessEnabled()
Returns if Management Center is allowed to access contents of Hazelcast data structures (for instance map entries) (true
) or disallowed (false
).boolean
isScriptingEnabled()
Returns if scripting is allowed (true
) or disallowed (false
).ManagementCenterConfig
setConsoleEnabled(boolean consoleEnabled)
Enables/disables console commands execution on the member.ManagementCenterConfig
setDataAccessEnabled(boolean dataAccessEnabled)
Enables/disables access to contents of Hazelcast data structures (for instance map entries) for Management Center.ManagementCenterConfig
setScriptingEnabled(boolean scriptingEnabled)
Enables/disables scripting on the member.ManagementCenterConfig
setTrustedInterfaces(java.util.Set<java.lang.String> interfaces)
Sets the trusted interfaces.java.lang.String
toString()
-
-
-
Method Detail
-
setScriptingEnabled
public ManagementCenterConfig setScriptingEnabled(boolean scriptingEnabled)
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
public ManagementCenterConfig setConsoleEnabled(boolean consoleEnabled)
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
public ManagementCenterConfig setDataAccessEnabled(boolean dataAccessEnabled)
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
public java.util.Set<java.lang.String> getTrustedInterfaces()
Gets the trusted interfaces.- Specified by:
getTrustedInterfaces
in interfaceTrustedInterfacesConfigurable<ManagementCenterConfig>
- Returns:
- the trusted interfaces
- See Also:
setTrustedInterfaces(java.util.Set)
-
setTrustedInterfaces
public ManagementCenterConfig setTrustedInterfaces(java.util.Set<java.lang.String> interfaces)
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:
if interfaces is
-
addTrustedInterface
public ManagementCenterConfig addTrustedInterface(java.lang.String ip)
Adds a trusted interface.- Specified by:
addTrustedInterface
in interfaceTrustedInterfacesConfigurable<ManagementCenterConfig>
- Parameters:
ip
- the IP of the trusted interface- Returns:
- configuration object itself
- Throws:
java.lang.IllegalArgumentException
- if IP isnull
- See Also:
setTrustedInterfaces(java.util.Set)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-