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 servicePublisherConfigurationAvailablewhen 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 voidactivate(org.osgi.framework.BundleContext context)voiddeactivate()voiddeleted(String pid)StringgetName()protected booleanisAvailable()voidupdated(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:
getNamein interfaceorg.osgi.service.cm.ManagedServiceFactory
-
updated
public void updated(String pid, Dictionary<String,?> properties) throws org.osgi.service.cm.ConfigurationException
- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedServiceFactory- Throws:
org.osgi.service.cm.ConfigurationException
-
deleted
public void deleted(String pid)
- Specified by:
deletedin interfaceorg.osgi.service.cm.ManagedServiceFactory
-
-