public class Manager extends java.lang.Object implements org.osgi.framework.ServiceListener, org.osgi.framework.hooks.service.ListenerHook, org.osgi.framework.hooks.service.EventHook, org.osgi.framework.hooks.service.FindHook, PathChildrenCacheListener, Dispatched
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG |
| Constructor and Description |
|---|
Manager(org.osgi.framework.BundleContext context,
org.apache.curator.framework.CuratorFramework curator) |
Manager(org.osgi.framework.BundleContext context,
org.apache.curator.framework.CuratorFramework curator,
java.lang.String uri,
java.lang.String exportedAddress,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
added(java.util.Collection listenerInfos) |
void |
childEvent(org.apache.curator.framework.CuratorFramework curatorFramework,
PathChildrenCacheEvent event) |
void |
destroy() |
protected ExportRegistration |
doExportService(org.osgi.framework.ServiceReference reference) |
protected ImportRegistration |
doImportService(EndpointDescription endpoint,
org.osgi.framework.hooks.service.ListenerHook.ListenerInfo listener) |
void |
event(org.osgi.framework.ServiceEvent event,
java.util.Collection collection) |
protected void |
exportService(org.osgi.framework.ServiceReference reference) |
void |
find(org.osgi.framework.BundleContext context,
java.lang.String name,
java.lang.String filter,
boolean allServices,
java.util.Collection collection) |
void |
init() |
org.fusesource.hawtdispatch.DispatchQueue |
queue() |
void |
removed(java.util.Collection listenerInfos) |
void |
serviceChanged(org.osgi.framework.ServiceEvent event) |
protected void |
unExportService(org.osgi.framework.ServiceReference reference) |
protected void |
updateService(org.osgi.framework.ServiceReference reference) |
public static final java.lang.String CONFIG
public Manager(org.osgi.framework.BundleContext context,
org.apache.curator.framework.CuratorFramework curator)
throws java.lang.Exception
java.lang.Exceptionpublic Manager(org.osgi.framework.BundleContext context,
org.apache.curator.framework.CuratorFramework curator,
java.lang.String uri,
java.lang.String exportedAddress,
long timeout)
throws java.lang.Exception
java.lang.Exceptionpublic void init()
throws java.lang.Exception
java.lang.Exceptionpublic void destroy()
throws java.io.IOException
java.io.IOExceptionpublic void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerpublic void added(java.util.Collection listenerInfos)
added in interface org.osgi.framework.hooks.service.ListenerHookpublic void removed(java.util.Collection listenerInfos)
removed in interface org.osgi.framework.hooks.service.ListenerHookpublic void event(org.osgi.framework.ServiceEvent event,
java.util.Collection collection)
event in interface org.osgi.framework.hooks.service.EventHookpublic void find(org.osgi.framework.BundleContext context,
java.lang.String name,
java.lang.String filter,
boolean allServices,
java.util.Collection collection)
find in interface org.osgi.framework.hooks.service.FindHookprotected void exportService(org.osgi.framework.ServiceReference reference)
protected void updateService(org.osgi.framework.ServiceReference reference)
protected void unExportService(org.osgi.framework.ServiceReference reference)
protected ExportRegistration doExportService(org.osgi.framework.ServiceReference reference) throws java.lang.Exception
java.lang.Exceptionprotected ImportRegistration doImportService(EndpointDescription endpoint, org.osgi.framework.hooks.service.ListenerHook.ListenerInfo listener)
public org.fusesource.hawtdispatch.DispatchQueue queue()
queue in interface Dispatchedpublic void childEvent(org.apache.curator.framework.CuratorFramework curatorFramework, PathChildrenCacheEvent event) throws java.lang.Exception
childEvent in interface PathChildrenCacheListenerjava.lang.ExceptionCopyright © 2014 Red Hat. All Rights Reserved.