Class PublisherConfigurationAvailable
- java.lang.Object
-
- org.apache.sling.distribution.journal.shared.PublisherConfigurationAvailable
-
- All Implemented Interfaces:
org.osgi.service.cm.ManagedServiceFactory
public class PublisherConfigurationAvailable extends Object implements org.osgi.service.cm.ManagedServiceFactory
This service checks for DistributionPublisher agent configuration availability and registers the marker servicePublisherConfigurationAvailable
when such configuration could be found. To avoid costly reactivation cycles, the marker service remains registered until this service is deactivated. This service is meant to be executed on every instance, even in a cluster.
-
-
Constructor Summary
Constructors Constructor Description PublisherConfigurationAvailable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(org.osgi.framework.BundleContext context)
void
deactivate()
void
deleted(String pid)
String
getName()
protected boolean
isAvailable()
void
updated(String pid, Dictionary<String,?> properties)
-
-
-
Method Detail
-
activate
public void activate(org.osgi.framework.BundleContext context)
-
deactivate
public void deactivate()
-
isAvailable
protected boolean isAvailable()
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.osgi.service.cm.ManagedServiceFactory
-
updated
public void updated(String pid, Dictionary<String,?> properties) throws org.osgi.service.cm.ConfigurationException
- Specified by:
updated
in interfaceorg.osgi.service.cm.ManagedServiceFactory
- Throws:
org.osgi.service.cm.ConfigurationException
-
deleted
public void deleted(String pid)
- Specified by:
deleted
in interfaceorg.osgi.service.cm.ManagedServiceFactory
-
-