public class ResourceEventDistributionTrigger extends Object implements DistributionTrigger
DistributionTrigger for triggering a specific handler (e.g. agent) upon
node / properties being changed under a certain path| Constructor and Description |
|---|
ResourceEventDistributionTrigger(String path,
org.osgi.framework.BundleContext bundleContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
void |
register(DistributionRequestHandler requestHandler)
register a request handler to be triggered and returns a corresponding registration id
|
void |
unregister(DistributionRequestHandler requestHandler)
unregister the given handler, if existing
|
public ResourceEventDistributionTrigger(String path, org.osgi.framework.BundleContext bundleContext)
public void enable()
public void disable()
public void register(@Nonnull DistributionRequestHandler requestHandler) throws DistributionException
DistributionTriggerregister in interface DistributionTriggerrequestHandler - handlerDistributionException - if registration failspublic void unregister(@Nonnull DistributionRequestHandler requestHandler) throws DistributionException
DistributionTriggerunregister in interface DistributionTriggerrequestHandler - handler to unregisterDistributionException - if any error happenCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.