public final class ManagementCenterConfig extends Object implements TrustedInterfacesConfigurable<ManagementCenterConfig>
Constructor and Description |
---|
ManagementCenterConfig() |
Modifier and Type | Method and Description |
---|---|
ManagementCenterConfig |
addTrustedInterface(String ip)
Adds a trusted interface.
|
boolean |
equals(Object obj) |
Set<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(Set<String> interfaces)
Sets the trusted interfaces.
|
String |
toString() |
public ManagementCenterConfig setScriptingEnabled(boolean scriptingEnabled)
Default value for this config element is false
.
scriptingEnabled
- true
to allow scripting on the member, false
to disallowpublic boolean isScriptingEnabled()
true
) or disallowed (false
).public ManagementCenterConfig setConsoleEnabled(boolean consoleEnabled)
Default value for this config element is false
.
consoleEnabled
- true
to allow console commands on the member, false
to disallowpublic boolean isConsoleEnabled()
true
) or disallowed (false
).public ManagementCenterConfig setDataAccessEnabled(boolean dataAccessEnabled)
Default value for this config element is true
.
dataAccessEnabled
- true
to allow data access for Management Center, false
to disallowpublic boolean isDataAccessEnabled()
true
) or disallowed (false
).public Set<String> getTrustedInterfaces()
getTrustedInterfaces
in interface TrustedInterfacesConfigurable<ManagementCenterConfig>
setTrustedInterfaces(java.util.Set)
public ManagementCenterConfig setTrustedInterfaces(Set<String> interfaces)
The interface is an IP address where the last octet can be a wildcard '*' or a range '10-20'.
setTrustedInterfaces
in interface TrustedInterfacesConfigurable<ManagementCenterConfig>
interfaces
- the new trusted interfacesif interfaces is {@code null}
public ManagementCenterConfig addTrustedInterface(String ip)
addTrustedInterface
in interface TrustedInterfacesConfigurable<ManagementCenterConfig>
ip
- the IP of the trusted interfaceIllegalArgumentException
- if IP is null
setTrustedInterfaces(java.util.Set)
Copyright © 2023 Hazelcast, Inc.. All rights reserved.