@Service(name="hazelcast-core") @RunLevel(value=10) public class HazelcastCore extends Object implements EventListener, ConfigListener, MonitoringDataSource
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 |
collect(MonitoringDataCollector collector)
Collects all the data points of this at the current moment.
|
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 |
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.
|
static void |
setThreadLocalDisabled(boolean tf) |
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 createdpublic static void setThreadLocalDisabled(boolean tf)
@PostConstruct public void postConstruct()
public void collect(MonitoringDataCollector collector)
MonitoringDataSourcecollect in interface MonitoringDataSourcecollector - the MonitoringDataCollector instance to use to collect the data points of this sourcepublic 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)
EventListenerevent in interface EventListenerpublic void setEnabled(Boolean enabled)
enabled - If true will start Hazelcast or restart if currently running;
if false will shut down Hazelcast.public int getPort()
54327public UnprocessedChangeEvents changed(PropertyChangeEvent[] pces)
ConfigListenerchanged in interface ConfigListenerpces - list of changesCopyright © 2019. All rights reserved.