@Reference(name="triggers", referenceInterface=DistributionTrigger.class, policy=DYNAMIC, cardinality=OPTIONAL_MULTIPLE, bind="bindDistributionTrigger", unbind="unbindDistributionTrigger") @Property(name="webconsole.configurationFactory.nameHint", value="Agent name: {name}") public class ForwardDistributionAgentFactory extends Object
DistributionAgent
s which references already existing OSGi services.Modifier and Type | Field and Description |
---|---|
static String |
ASYNC_DELIVERY |
static String |
DETAILS |
static String |
HTTP
timeout for HTTP requests
|
static String |
LOG_LEVEL |
static String |
NAME |
static String |
QUEUE_PROVIDER |
static String |
TITLE |
static String |
TRIGGERS_TARGET |
Constructor and Description |
---|
ForwardDistributionAgentFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext context,
Map<String,Object> config) |
protected void |
bindDistributionTrigger(DistributionTrigger distributionTrigger,
Map<String,Object> config) |
protected SimpleDistributionAgent |
createAgent(String agentName,
org.osgi.framework.BundleContext context,
Map<String,Object> config,
DefaultDistributionLog distributionLog) |
protected ForwardDistributionAgentMBean |
createMBeanAgent(DistributionAgent agent,
Map<String,Object> osgiConfiguration) |
protected void |
deactivate(org.osgi.framework.BundleContext context) |
protected void |
unbindDistributionTrigger(DistributionTrigger distributionTrigger,
Map<String,Object> config) |
@Property(label="Name", description="The name of the agent.") public static final String NAME
@Property(label="Title", description="The display friendly title of the agent.") public static final String TITLE
@Property(label="Details", description="The display friendly details of the agent.") public static final String DETAILS
@Property(options={@PropertyOption(name="debug",value="debug"),@PropertyOption(name="info",value="info"),@PropertyOption(name="warn",value="warn"),@PropertyOption(name="error",value="error")},value="info",label="Log Level",description="The log level recorded in the transient log accessible via http.") public static final String LOG_LEVEL
@Property(value="(name=)", label="Triggers", description="The target reference for DistributionTrigger used to trigger distribution, e.g. use target=(name=...) to bind to services by name.") public static final String TRIGGERS_TARGET
@Property(options={@PropertyOption(name="jobs",value="Sling Jobs"),@PropertyOption(name="simple",value="In-memory"),@PropertyOption(name="simple-checkpoint",value="In-file")},value="jobs",label="Queue provider",description="The queue provider implementation.") public static final String QUEUE_PROVIDER
@Property(boolValue=false, label="Async delivery", description="Whether or not to use a separate delivery queue to maximize transport throughput when queue has more than 100 items") public static final String ASYNC_DELIVERY
@Property(label="HTTP connection timeout", intValue=10, description="The connection timeout for HTTP requests (in seconds).") public static final String HTTP
@Activate protected void activate(org.osgi.framework.BundleContext context, Map<String,Object> config)
protected void bindDistributionTrigger(DistributionTrigger distributionTrigger, Map<String,Object> config)
protected void unbindDistributionTrigger(DistributionTrigger distributionTrigger, Map<String,Object> config)
@Deactivate protected void deactivate(org.osgi.framework.BundleContext context)
protected SimpleDistributionAgent createAgent(String agentName, org.osgi.framework.BundleContext context, Map<String,Object> config, DefaultDistributionLog distributionLog)
protected ForwardDistributionAgentMBean createMBeanAgent(DistributionAgent agent, Map<String,Object> osgiConfiguration)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.