@PrivateApi public final class HazelcastInstanceFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Set<HazelcastInstance> |
getAllHazelcastInstances() |
static HazelcastInstance |
getHazelcastInstance(String instanceName) |
static HazelcastInstance |
getOrCreateHazelcastInstance(Config config) |
static HazelcastInstance |
newHazelcastInstance(Config config) |
static HazelcastInstance |
newHazelcastInstance(Config config,
String instanceName,
NodeContext nodeContext)
Creates a new Hazelcast 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)
public 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()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.