@Service(name="hazelcast-core") @RunLevel(value=10) public class HazelcastCore extends Object implements EventListener, ConfigListener
EventListener.Event<T>
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER_EXECUTOR_SERVICE_NAME |
static String |
INSTANCE_ATTRIBUTE |
static String |
INSTANCE_GROUP_ATTRIBUTE |
static String |
SCHEDULED_CLUSTER_EXECUTOR_SERVICE_NAME |
Constructor and Description |
---|
HazelcastCore() |
Modifier and Type | Method and Description |
---|---|
UnprocessedChangeEvents |
changed(PropertyChangeEvent[] pces)
Notification that @Configured objects that were injected have changed
|
void |
event(EventListener.Event event)
Process a Glassfish/Payara event
|
javax.cache.spi.CachingProvider |
getCachingProvider()
Gets the JCache provider used by Hazelcast
|
static HazelcastCore |
getCore()
Returns the version of the object that has been instantiated.
|
com.hazelcast.core.HazelcastInstance |
getInstance()
Gets the actual Hazelcast instance.
|
String |
getMemberGroup()
Gets the name of the member group that this instance belongs to
|
String |
getMemberName()
Returns the Hazelcast name of the instance
|
int |
getPort()
Gets the port that Hazelcast in running on
|
String |
getUUID()
Returns the UUID of the instance.
|
boolean |
isDatagridEncryptionEnabled() |
boolean |
isEnabled() |
boolean |
isLite()
Returns true if this instance is a Hazelcast Lite instance
|
void |
postConstruct() |
void |
setEnabled(Boolean enabled)
Sets whether Hazelcast should be enabled.
|
public static final String INSTANCE_ATTRIBUTE
public static final String INSTANCE_GROUP_ATTRIBUTE
public static final String CLUSTER_EXECUTOR_SERVICE_NAME
public static final String SCHEDULED_CLUSTER_EXECUTOR_SERVICE_NAME
public static HazelcastCore getCore()
HazelcastCore
has not been created@PostConstruct public void postConstruct()
public String getMemberName()
Note this is not the same as the name of the instance config or node
Payara
by defaultpublic String getMemberGroup()
MicroShoal
by defaultpublic String getUUID()
public boolean isLite()
public com.hazelcast.core.HazelcastInstance getInstance()
public javax.cache.spi.CachingProvider getCachingProvider()
public boolean isEnabled()
public void event(EventListener.Event event)
EventListener
event
in interface EventListener
public void setEnabled(Boolean enabled)
enabled
- If true will start Hazelcast or restart if currently running;
if false will shut down Hazelcast.public int getPort()
54327
public UnprocessedChangeEvents changed(PropertyChangeEvent[] pces)
ConfigListener
changed
in interface ConfigListener
pces
- list of changespublic boolean isDatagridEncryptionEnabled()
Copyright © 2020. All rights reserved.