Examples of detectTarget()


Examples of org.apache.sling.event.impl.jobs.config.TopologyCapabilities.detectTarget()

        if ( jobName != null && !this.lock(jobTopic, jobName) ) {
            logger.debug("Discarding duplicate job {}", Utility.toString(jobTopic, jobName, jobProperties));
            return null;
        } else {
            final TopologyCapabilities caps = this.configuration.getTopologyCapabilities();
            info.targetId = (caps == null ? null : caps.detectTarget(jobTopic, jobProperties, info));

            if ( logger.isDebugEnabled() ) {
                if ( info.targetId != null ) {
                    logger.debug("Persisting job {} into queue {}, target={}", new Object[] {Utility.toString(jobTopic, jobName, jobProperties), info.queueName, info.targetId});
                } else {
View Full Code Here

Examples of org.apache.sling.event.impl.jobs.config.TopologyCapabilities.detectTarget()

     */
    public void reassign() {
        final QueueInfo queueInfo = this.configuration.getQueueConfigurationManager().getQueueInfo(job.getTopic());
        // Sanity check if queue configuration has changed
        final TopologyCapabilities caps = this.configuration.getTopologyCapabilities();
        final String targetId = (caps == null ? null : caps.detectTarget(job.getTopic(), job.getProperties(), queueInfo));

        final ResourceResolver resolver = this.configuration.createResourceResolver();
        try {
            final Resource jobResource = resolver.getResource(job.getResourcePath());
            if ( jobResource != null ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.