public class RegistryFactoryService<K,V> extends Object implements RegistryFactory<K,V>, org.jboss.msc.service.Service<RegistryFactory<K,V>>, Registry<K,V>
Registry instance per node.Registry.Listener<K,V>| Constructor and Description |
|---|
RegistryFactoryService(RegistryFactoryConfiguration<K,V> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Registry.Listener<K,V> listener)
Adds a listener to this registry.
|
void |
close()
Removes our entry from the registry.
|
Registry<K,V> |
createRegistry(RegistryEntryProvider<K,V> provider)
Creates a registry for the group associated with this factory.
|
Map<K,V> |
getEntries()
Returns all registry entries in this group.
|
Map.Entry<K,V> |
getEntry(Node node)
Returns the registry entry for the specified node.
|
Group |
getGroup()
Returns the group associated with this factory.
|
Map.Entry<K,V> |
getLocalEntry()
Refreshes and returns the local registry entry from the
RegistryEntryProvider. |
RegistryFactory<K,V> |
getValue() |
void |
modified(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent<Node,Map.Entry<K,V>> event) |
void |
removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<Node,Map.Entry<K,V>> event) |
void |
removeListener(Registry.Listener<K,V> listener)
Adds a listener from this registry.
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<org.infinispan.remoting.transport.Address,Node> event) |
public RegistryFactoryService(RegistryFactoryConfiguration<K,V> config)
public RegistryFactory<K,V> getValue()
getValue in interface org.jboss.msc.value.Value<RegistryFactory<K,V>>public void start(org.jboss.msc.service.StartContext context)
start in interface org.jboss.msc.service.Service<RegistryFactory<K,V>>public void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<RegistryFactory<K,V>>public Registry<K,V> createRegistry(RegistryEntryProvider<K,V> provider)
RegistryFactorycreateRegistry in interface RegistryFactory<K,V>provider - the provider of the local registry entrypublic void close()
Registrypublic void addListener(Registry.Listener<K,V> listener)
RegistryaddListener in interface Registry<K,V>listener - a registry listenerpublic void removeListener(Registry.Listener<K,V> listener)
RegistryremoveListener in interface Registry<K,V>listener - a registry listenerpublic Group getGroup()
Registrypublic Map<K,V> getEntries()
RegistrygetEntries in interface Registry<K,V>public Map.Entry<K,V> getEntry(Node node)
Registrypublic Map.Entry<K,V> getLocalEntry()
RegistryRegistryEntryProvider.getLocalEntry in interface Registry<K,V>public void topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<org.infinispan.remoting.transport.Address,Node> event)
public void modified(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent<Node,Map.Entry<K,V>> event)
Copyright © 2014 JBoss by Red Hat. All rights reserved.