@PrivateApi public final class HazelcastInstanceFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HazelcastInstanceFactory.InstanceFuture<T> |
Modifier and Type | Method and Description |
---|---|
static String |
createInstanceName(Config config) |
static Set<HazelcastInstance> |
getAllHazelcastInstances() |
static HazelcastInstance |
getHazelcastInstance(String instanceName) |
static String |
getInstanceName(String instanceName,
Config config)
Return real name for the hazelcast instance's instance
|
static HazelcastInstance |
getOrCreateHazelcastInstance(Config config) |
static HazelcastInstance |
newHazelcastInstance(Config config)
Creates a new Hazelcast instance.
|
static HazelcastInstance |
newHazelcastInstance(Config config,
String instanceName,
NodeContext nodeContext)
Creates a new Hazelcast instance.
|
static void |
remove(HazelcastInstanceImpl instance) |
static void |
shutdownAll() |
static void |
terminateAll() |
public static Set<HazelcastInstance> getAllHazelcastInstances()
public static HazelcastInstance getHazelcastInstance(String instanceName)
public static HazelcastInstance getOrCreateHazelcastInstance(Config config)
public static HazelcastInstance newHazelcastInstance(Config config)
config
- the configuration to use; if null
, the set of defaults
as specified in the XSD for the configuration XML will be used.HazelcastInstance
public static String getInstanceName(String instanceName, Config config)
instanceName
- - template of the nameconfig
- - configpublic static HazelcastInstance newHazelcastInstance(Config config, String instanceName, NodeContext nodeContext)
config
- the configuration to use; if null
, the set of defaults
as specified in the XSD for the configuration XML will be used.instanceName
- the name of the HazelcastInstance
nodeContext
- the NodeContext
to useHazelcastInstance
public static void shutdownAll()
public static void terminateAll()
public static void remove(HazelcastInstanceImpl instance)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.