All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.exist.xquery.modules.scheduler.SchedulerModule Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
/*
 *  eXist Scheduler Module Extension
 *  Copyright (C) 2006-09 Adam Retter 
 *  www.adamretter.co.uk
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program; if not, write to the Free Software Foundation
 *  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 *  $Id$
 */
package org.exist.xquery.modules.scheduler;

import java.util.List;
import java.util.Map;
import org.exist.xquery.AbstractInternalModule;
import org.exist.xquery.FunctionDef;


/**
 * eXist Scheduler Module Extension.
 *
 * An extension module for the eXist Native XML Database that allows Jobs to be Scheduled with eXist's Scheduler
 *
 * @author Adam Retter
 * @author Loren Cahlander
 * @author Andrzej Taramina
 * @author   ljo
 * @version  1.3
 * @see      org.exist.xquery.AbstractInternalModule#AbstractInternalModule(org.exist.xquery.FunctionDef[], java.util.Map) 
 * @serial   2010-03-10
 */
public class SchedulerModule extends AbstractInternalModule
{
    public final static String         NAMESPACE_URI       = "http://exist-db.org/xquery/scheduler";

    public final static String         PREFIX              = "scheduler";
    public final static String         INCLUSION_DATE      = "2006-11-16, 2009-02-06, 2010-03-10";
    public final static String         RELEASED_IN_VERSION = "eXist-1.2 (job-name argument-version in trunk)";

    private final static FunctionDef[] functions           = {
        new FunctionDef( ScheduleFunctions.signatures[0], ScheduleFunctions.class ),
        new FunctionDef( ScheduleFunctions.signatures[1], ScheduleFunctions.class ),
        new FunctionDef( ScheduleFunctions.signatures[2], ScheduleFunctions.class ),
        new FunctionDef( ScheduleFunctions.signatures[3], ScheduleFunctions.class ),
        new FunctionDef( ScheduleFunctions.signatures[4], ScheduleFunctions.class ),
        new FunctionDef( ScheduleFunctions.signatures[5], ScheduleFunctions.class ),
        new FunctionDef( ScheduleFunctions.signatures[6], ScheduleFunctions.class ),
        new FunctionDef( ScheduleFunctions.signatures[7], ScheduleFunctions.class ),
        new FunctionDef( GetScheduledJobs.signature, GetScheduledJobs.class ),
        new FunctionDef( DeleteScheduledJob.signature, DeleteScheduledJob.class ),
        new FunctionDef( PauseScheduledJob.signature, PauseScheduledJob.class ),
        new FunctionDef( ResumeScheduledJob.signature, ResumeScheduledJob.class )
    };

    public SchedulerModule(Map> parameters)
    {
        super( functions, parameters );
    }

    public String getNamespaceURI()
    {
        return( NAMESPACE_URI );
    }


    public String getDefaultPrefix()
    {
        return( PREFIX );
    }


    public String getDescription()
    {
        return( "A module for scheduling jobs using the Quartz Scheduler" );
    }


    public String getReleaseVersion()
    {
        return( RELEASED_IN_VERSION );
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy