Class HazelcastCore

    • Constructor Detail

      • HazelcastCore

        public HazelcastCore()
    • Method Detail

      • getCore

        public static HazelcastCore getCore()
        Returns the version of the object that has been instantiated.
        Returns:
        null if an instance of HazelcastCore has not been created
      • postConstruct

        @PostConstruct
        public void postConstruct()
      • getMemberName

        public String getMemberName()
        Returns the Hazelcast name of the instance

        Note this is not the same as the name of the instance config or node

        Returns:
        Payara by default
        Since:
        4.1.1.171
      • getMemberGroup

        public String getMemberGroup()
        Gets the name of the member group that this instance belongs to
        Returns:
        MicroShoal by default
        Since:
        4.1.1.171
      • getUUID

        public UUID getUUID()
        Returns the UUID of the instance. If Hazelcast is not enabled then a new random one will be returned.
        Returns:
        a 128-bit immutable universally unique identifier
        Since:
        4.1.1.171
      • isLite

        public boolean isLite()
        Returns true if this instance is a Hazelcast Lite instance
        Returns:
        Since:
        4.1.1.171
      • getInstance

        public com.hazelcast.core.HazelcastInstance getInstance()
        Gets the actual Hazelcast instance. Hazelcast will be booted by this method if it hasn't already started.
        Returns:
      • getCachingProvider

        public javax.cache.spi.CachingProvider getCachingProvider()
        Gets the JCache provider used by Hazelcast
        Returns:
        See Also:
        HazelcastCachingProvider
      • isEnabled

        public boolean isEnabled()
        Returns:
        Whether Hazelcast is currently enabled
      • setEnabled

        public void setEnabled​(Boolean enabled)
        Sets whether Hazelcast should be enabled.
        Parameters:
        enabled - If true will start Hazelcast or restart if currently running; if false will shut down Hazelcast.
      • setAttribute

        public void setAttribute​(UUID memberUUID,
                                 String key,
                                 String value)
      • getPort

        public int getPort()
        Gets the port that Hazelcast in running on
        Returns:
        The default is {@link 54327}
      • changed

        public UnprocessedChangeEvents changed​(PropertyChangeEvent[] pces)
        Description copied from interface: ConfigListener
        Notification that @Configured objects that were injected have changed
        Specified by:
        changed in interface ConfigListener
        Parameters:
        pces - list of changes
        Returns:
        the list of unprocessed events (requiring a restart) or null if all reconfiguration was processed successfully
      • isDatagridEncryptionEnabled

        public boolean isDatagridEncryptionEnabled()