Package org.apache.cocoon.components.cron

Examples of org.apache.cocoon.components.cron.ConfigurableCronJob


                        String cacheRole)
    throws SourceException {
        TargetConfiguration conf = new TargetConfiguration(cacheKey, uri, expires, cacheRole);

        // call the target the first time
        ConfigurableCronJob t = null;
        final String name = cacheKey.getKey();
        try {
            t = (ConfigurableCronJob)this.manager.lookup(this.schedulerTarget);
            t.setup(conf.parameters, conf.map);
            t.execute(name);
        } catch (ServiceException se) {
            throw new SourceException("Unable to lookup target " + this.schedulerTarget, se);
        } finally {
            this.manager.release(t);
        }
View Full Code Here


                        String cacheRole)
    throws SourceException {
        TargetConfiguration conf = new TargetConfiguration(cacheKey, uri, expires, cacheRole);

        // call the target the first time
        ConfigurableCronJob t = null;
        final String name = cacheKey.getKey();
        try {
            t = (ConfigurableCronJob)this.manager.lookup(this.schedulerTarget);
            t.setup(conf.parameters, conf.map);
            t.execute(name);
        } catch (ComponentException ce) {
            throw new SourceException("Unable to lookup target " + this.schedulerTarget, ce);
        } finally {
            this.manager.release((Component)t);
        }
View Full Code Here

                        String cacheRole)
    throws SourceException {
        TargetConfiguration conf = new TargetConfiguration(cacheKey, uri, expires, cacheRole);

        // call the target the first time
        ConfigurableCronJob t = null;
        final String name = cacheKey.getKey();
        try {
            t = (ConfigurableCronJob)this.manager.lookup(this.schedulerTarget);
            t.setup(conf.parameters, conf.map);
            t.execute(name);
        } catch (ComponentException ce) {
            throw new SourceException("Unable to lookup target " + this.schedulerTarget, ce);
        } finally {
            this.manager.release((Component)t);
        }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.cron.ConfigurableCronJob

Copyright © 2018 www.massapicom. 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.