Package com.sos.scheduler.engine.kernel

Examples of com.sos.scheduler.engine.kernel.SchedulerException


    }


    private void tryAddPlugIn(Element e) {
        String className = e.getAttribute("java_class");
        if (className.isEmpty())  throw new SchedulerException("Missing attribute java_class in <plugin>");
        Element contentElement = elementXPathOrNull(e, "plugin.config");
        tryAddPlugIn(className, contentElement);
    }
View Full Code Here



    final CommandPluginAdapter commandPluginByClassName(String className) {
        PluginAdapter a = pluginByClassName(className);
        if (!(a instanceof CommandPluginAdapter))
            throw new SchedulerException("Plugin is not a " + CommandPlugin.class.getSimpleName());
        return (CommandPluginAdapter)a;
    }
View Full Code Here


    private PluginAdapter pluginByClassName(String className) {
        PluginAdapter result = plugIns.get(className);
        if (result == null)
            throw new SchedulerException("Unknown plugin '" + className + "'");
        return result;
    }
View Full Code Here

        super(p);
    }


    public final void assertIsAbsolute() {
        if (!isAbsolute())  throw new SchedulerException("Absolute path expected: " + this);
    }
View Full Code Here

    }


    public final void assertIsEmptyOrAbsolute() {
        boolean ok = isEmpty() || isAbsolute();
        if (!okthrow new SchedulerException("Absolute path expected: " + this);
    }
View Full Code Here

    public static boolean booleanXmlAttribute(Element xmlElement, String attributeName, boolean defaultValue) {
        String value = xmlElement.getAttribute(attributeName);
        Boolean result = booleanOrNullOf(value, defaultValue);
        if (result == null)
            throw new SchedulerException("Ungültiger Boolescher Wert in <" + xmlElement.getNodeName() + " " + attributeName + "=" + xmlQuoted(value) + ">");
        return result;
    }
View Full Code Here

        if (value.isEmpty())  return defaultValue;

        try {
            return Integer.parseInt( value );
        } catch (NumberFormatException x) {
            throw new SchedulerException("Ungültiger numerischer Wert in <" + xmlElement.getNodeName() + " " + attributeName + "=" + xmlQuoted(value) + ">", x);
        }
    }
View Full Code Here

                rendezvous.call(e);     // Immer durchlassen, ohne eventPredicates zu fragen.
                join();
                throwableMailbox.throwUncheckedIfSet();
            }
        }
        catch (InterruptedException x) { throw new SchedulerException(x); }
    }
View Full Code Here

        Event e = enterEventHandling(expect.getTimeout());
        try {
            if (!p.apply(e)) throw UnexpectedEventException.of(e, p, expectEventCount);
            if (e instanceof ExceptionEvent) {
                ExceptionEvent xe = (ExceptionEvent)e;
                throw new SchedulerException("Error while polling event: " + xe.getException(), xe.getException() );
            }

            //logger.info("Expected event: " + e);
        }
        finally {
View Full Code Here


    public final void waitForTerminatedEvent(Time timeout) throws InterruptedException {
        while(!rendezvous.terminatedEventReceived()) {
            Event e = enterEventHandling(timeout);
            if (e == nullthrow new SchedulerException(terminatedEventName + " expected instead of timeout after " + timeout);
           
            try {
//                if (e instanceof SchedulerCloseEvent)  logger.info(e + " ignored");
//                else
                if (!rendezvous.terminatedEventReceived()) {
                    SchedulerException x = new SchedulerException(terminatedEventName + " expected instead of " + e);
                    throwableMailbox.setIfFirst(x);
                }
            }
            finally {
                leaveEventHandling();
View Full Code Here

TOP

Related Classes of com.sos.scheduler.engine.kernel.SchedulerException

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.