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 Details

    • ManagementCenterConfig

      public ManagementCenterConfig()
  • Method Details

    • 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 Set<String> getTrustedInterfaces()
      Gets the trusted interfaces.
      Specified by:
      getTrustedInterfaces in interface TrustedInterfacesConfigurable<ManagementCenterConfig>
      Returns:
      the trusted interfaces
      See Also:
    • setTrustedInterfaces

      public ManagementCenterConfig setTrustedInterfaces(Set<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 interface TrustedInterfacesConfigurable<ManagementCenterConfig>
      Parameters:
      interfaces - the new trusted interfaces
      Returns:
      the updated MulticastConfig
      See Also:
    • addTrustedInterface

      public ManagementCenterConfig addTrustedInterface(String ip)
      Adds a trusted interface.
      Specified by:
      addTrustedInterface in interface TrustedInterfacesConfigurable<ManagementCenterConfig>
      Parameters:
      ip - the IP of the trusted interface
      Returns:
      configuration object itself
      Throws:
      IllegalArgumentException - if IP is null
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object