@PrivateApi public final class HazelcastInstanceFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Set<HazelcastInstance> |
getAllHazelcastInstances() |
static HazelcastInstance |
getHazelcastInstance(String instanceName) |
static Map<MemberImpl,HazelcastInstanceImpl> |
getInstanceImplMap() |
static Set<HazelcastInstanceImpl> |
getInstanceImpls(Collection<Member> members) |
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 Set<HazelcastInstanceImpl> getInstanceImpls(Collection<Member> members)
public static void shutdownAll()
public static void terminateAll()
public static Map<MemberImpl,HazelcastInstanceImpl> getInstanceImplMap()
public static void remove(HazelcastInstanceImpl instance)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.