Class ManagementCenterConfig

java.lang.Object
com.hazelcast.config.ManagementCenterConfig

public final class ManagementCenterConfig
extends Object
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).
    • getTrustedInterfaces

      public Set<String> getTrustedInterfaces()
      Gets the trusted interfaces.
      Returns:
      the trusted interfaces
      See Also:
      setTrustedInterfaces(java.util.Set)
    • 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'.

      Parameters:
      interfaces - the new trusted interfaces
      Returns:
      the updated MulticastConfig
      See Also:
      if interfaces is
    • addTrustedInterface

      public ManagementCenterConfig addTrustedInterface​(String ip)
      Adds a trusted interface.
      Parameters:
      ip - the IP of the trusted interface
      Throws:
      IllegalArgumentException - if IP is null
      See Also:
      setTrustedInterfaces(java.util.Set)
    • 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