Class RestServiceTracker
A custom ServiceTracker that registers all locally published servlets so clients can find the most appropriate
service on the network to handle new jobs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.BundleContextprotected static final StringFields inherited from class org.osgi.util.tracker.ServiceTracker
context, filter -
Constructor Summary
ConstructorsConstructorDescriptionRestServiceTracker(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry, org.osgi.framework.BundleContext bundleContext) -
Method Summary
Modifier and TypeMethodDescriptionaddingService(org.osgi.framework.ServiceReference reference) voidremovedService(org.osgi.framework.ServiceReference reference, Object service) Methods inherited from class org.osgi.util.tracker.ServiceTracker
close, getService, getService, getServiceReference, getServiceReferences, getServices, getServices, getTracked, getTrackingCount, isEmpty, modifiedService, open, open, remove, size, waitForService
-
Field Details
-
FILTER
- See Also:
-
bundleContext
protected org.osgi.framework.BundleContext bundleContext
-
-
Constructor Details
-
RestServiceTracker
public RestServiceTracker(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry, org.osgi.framework.BundleContext bundleContext) throws org.osgi.framework.InvalidSyntaxException - Throws:
org.osgi.framework.InvalidSyntaxException
-
-
Method Details
-
addingService
-
removedService
-