Package com.sos.scheduler.engine.kernel.event

Examples of com.sos.scheduler.engine.kernel.event.Event


    }


    @Override public final Event enter(Time timeout) {
        //TODO Sollte nicht Methode der Oberklasse überschreiben
        Event result = super.enter(timeout);
        beginTimedOut = result == null;
        if (beginTimedOut)   result = new TimeoutEvent(timeout);
        if (result instanceof TerminatedEventterminatedEventReceived = true;
        return result;
    }
View Full Code Here


     * @return Das nicht mehr aktuelle Event, weil der Scheduler schon weiterläuft. Die Objekte am Events sind vielleicht nicht mehr gültig.
     */
    public final void expectEvent(EventExpectation expect) {
        expectEventCount++;
        EventPredicate p = expect.getPredicate();
        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() );
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
View Full Code Here

TOP

Related Classes of com.sos.scheduler.engine.kernel.event.Event

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.