public interface HazelcastOSGiService
| Modifier and Type | Field and Description |
|---|---|
static String |
HAZELCAST_OSGI_GROUPING_DISABLED
System property for disabling the behaviour that gives different group name
to each Hazelcast bundle.
|
static String |
HAZELCAST_OSGI_REGISTER_DISABLED
System property for disabling the behaviour that registers created Hazelcast instances as OSGI service.
|
static String |
HAZELCAST_OSGI_START
System property for starting a default Hazelcast instance per Hazelcast OSGI bundle.
|
| Modifier and Type | Method and Description |
|---|---|
Set<HazelcastOSGiInstance> |
getAllHazelcastInstances()
Gets all active/running
HazelcastOSGiInstances on the owner bundle. |
HazelcastOSGiInstance |
getDefaultHazelcastInstance()
Gets the default
HazelcastOSGiInstance. |
HazelcastOSGiInstance |
getHazelcastInstanceByName(String instanceName)
Gets an existing
HazelcastOSGiInstance with its instanceName. |
String |
getId()
Gets the id of service.
|
org.osgi.framework.Bundle |
getOwnerBundle()
Gets the owner
Bundle of this instance. |
HazelcastOSGiInstance |
newHazelcastInstance()
Creates a new
HazelcastOSGiInstance
on the owner bundle with default configuration. |
HazelcastOSGiInstance |
newHazelcastInstance(Config config)
Creates a new
HazelcastOSGiInstance
on the owner bundle with specified configuration. |
void |
shutdownAll()
Shuts down all running
HazelcastOSGiInstances on the owner bundle. |
void |
shutdownHazelcastInstance(HazelcastOSGiInstance instance)
Shuts down the given
HazelcastOSGiInstance on the owner bundle. |
static final String HAZELCAST_OSGI_START
static final String HAZELCAST_OSGI_REGISTER_DISABLED
static final String HAZELCAST_OSGI_GROUPING_DISABLED
String getId()
org.osgi.framework.Bundle getOwnerBundle()
Bundle of this instance.Bundle of this instanceHazelcastOSGiInstance getDefaultHazelcastInstance()
HazelcastOSGiInstance.HazelcastOSGiInstanceHazelcastOSGiInstance newHazelcastInstance(Config config)
HazelcastOSGiInstance
on the owner bundle with specified configuration.config - Configuration for the new HazelcastOSGiInstance (member)HazelcastOSGiInstanceHazelcastOSGiInstance newHazelcastInstance()
HazelcastOSGiInstance
on the owner bundle with default configuration.HazelcastOSGiInstanceHazelcastOSGiInstance getHazelcastInstanceByName(String instanceName)
HazelcastOSGiInstance with its instanceName.instanceName - Name of the HazelcastOSGiInstance (member)HazelcastOSGiInstanceSet<HazelcastOSGiInstance> getAllHazelcastInstances()
HazelcastOSGiInstances on the owner bundle.HazelcastOSGiInstances on the owner bundlevoid shutdownHazelcastInstance(HazelcastOSGiInstance instance)
HazelcastOSGiInstance on the owner bundle.instance - the HazelcastOSGiInstance to shutdownvoid shutdownAll()
HazelcastOSGiInstances on the owner bundle.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.