org.fusesource.fabric.dosgi.impl
Class Manager
java.lang.Object
org.fusesource.fabric.dosgi.impl.Manager
- All Implemented Interfaces:
- java.util.EventListener, Dispatched, org.linkedin.zookeeper.tracker.NodeEventsListener<java.lang.String>, org.osgi.framework.hooks.service.EventHook, org.osgi.framework.hooks.service.FindHook, org.osgi.framework.hooks.service.ListenerHook, org.osgi.framework.ServiceListener
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, org.linkedin.zookeeper.tracker.NodeEventsListener<java.lang.String>, Dispatched
| Nested classes/interfaces inherited from interface org.osgi.framework.hooks.service.ListenerHook |
org.osgi.framework.hooks.service.ListenerHook.ListenerInfo |
|
Field Summary |
static java.lang.String |
CONFIG
|
|
Constructor Summary |
Manager(org.osgi.framework.BundleContext context,
IZKClient zooKeeper)
|
Manager(org.osgi.framework.BundleContext context,
IZKClient zooKeeper,
java.lang.String uri,
java.lang.String exportedAddress,
long timeout)
|
|
Method Summary |
void |
added(java.util.Collection listenerInfos)
|
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()
|
void |
onEvents(java.util.Collection<org.linkedin.zookeeper.tracker.NodeEvent<java.lang.String>> nodeEvents)
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG
public static final java.lang.String CONFIG
- See Also:
- Constant Field Values
Manager
public Manager(org.osgi.framework.BundleContext context,
IZKClient zooKeeper)
throws java.lang.Exception
- Throws:
java.lang.Exception
Manager
public Manager(org.osgi.framework.BundleContext context,
IZKClient zooKeeper,
java.lang.String uri,
java.lang.String exportedAddress,
long timeout)
throws java.lang.Exception
- Throws:
java.lang.Exception
init
public void init()
throws java.lang.Exception
- Throws:
java.lang.Exception
destroy
public void destroy()
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event)
- Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener
added
public void added(java.util.Collection listenerInfos)
- Specified by:
added in interface org.osgi.framework.hooks.service.ListenerHook
removed
public void removed(java.util.Collection listenerInfos)
- Specified by:
removed in interface org.osgi.framework.hooks.service.ListenerHook
event
public void event(org.osgi.framework.ServiceEvent event,
java.util.Collection collection)
- Specified by:
event in interface org.osgi.framework.hooks.service.EventHook
find
public void find(org.osgi.framework.BundleContext context,
java.lang.String name,
java.lang.String filter,
boolean allServices,
java.util.Collection collection)
- Specified by:
find in interface org.osgi.framework.hooks.service.FindHook
onEvents
public void onEvents(java.util.Collection<org.linkedin.zookeeper.tracker.NodeEvent<java.lang.String>> nodeEvents)
- Specified by:
onEvents in interface org.linkedin.zookeeper.tracker.NodeEventsListener<java.lang.String>
exportService
protected void exportService(org.osgi.framework.ServiceReference reference)
updateService
protected void updateService(org.osgi.framework.ServiceReference reference)
unExportService
protected void unExportService(org.osgi.framework.ServiceReference reference)
doExportService
protected ExportRegistration doExportService(org.osgi.framework.ServiceReference reference)
throws java.lang.Exception
- Throws:
java.lang.Exception
doImportService
protected ImportRegistration doImportService(EndpointDescription endpoint,
org.osgi.framework.hooks.service.ListenerHook.ListenerInfo listener)
queue
public org.fusesource.hawtdispatch.DispatchQueue queue()
- Specified by:
queue in interface Dispatched
Copyright © 2013 Red Hat. All Rights Reserved.