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