Examples of scheduledExecutionTime()


Examples of org.itsnat.core.event.ItsNatTimerHandle.scheduledExecutionTime()

                if ((new Date().getTime() - firstTime) > 10000) // to avoid never ending ticks
                {
                    handle.cancel();
                    log("Scheduled task canceled, id: " + handle.hashCode());
                }
                else log("Tick, id: " + handle.hashCode() + " next execution: " + new Date(handle.scheduledExecutionTime()));
            }
        };
        ItsNatTimerHandle handle = timer.schedule(null,listener,1000,2000);

        log("Scheduled task started, id: " + handle.hashCode() + " first time: " + new Date(handle.getFirstTime()) + " period: " + handle.getPeriod());
View Full Code Here

Examples of org.itsnat.core.event.ItsNatTimerHandle.scheduledExecutionTime()

                if ((new Date().getTime() - firstTime) > 10000) // to avoid never ending ticks
                {
                    handle.cancel();
                    System.out.println("Timer canceled");
                }
                else System.out.println("Tick, next execution: " + new Date(handle.scheduledExecutionTime()));
            }
        };

        ItsNatTimer timer = clientDoc.createItsNatTimer();
        ItsNatTimerHandle handle = timer.schedule(null,listener,1000,2000);
View Full Code Here

Examples of org.rioproject.monitor.service.tasks.RedeploymentTask.scheduledExecutionTime()

                sElem==null? "Unmanaged ServiceElement" :"Unmanaged ServiceElement [" + sElem.getName() + "]";
            throw new OperationalStringException(message);
        }

        if (scheduledTask != null) {
            long exec = (scheduledTask.scheduledExecutionTime() - System.currentTimeMillis()) / 1000;
            if (exec > 0) {
                String item = (sElem == null ? "ServiceBeanInstance" : "ServiceElement");
                throw new OperationalStringException(item+" already scheduled for redeployment in "+exec+" seconds");
            }
        }
View Full Code Here

Examples of org.rioproject.monitor.service.tasks.RedeploymentTask.scheduledExecutionTime()

                                           final boolean clean,
                                           final boolean sticky,
                                           final ServiceProvisionListener listener) throws OperationalStringException {
        RedeploymentTask scheduledTask = getScheduledRedeploymentTask(sElem, instance);
        if (scheduledTask != null) {
            long exec = (scheduledTask.scheduledExecutionTime() - System.currentTimeMillis()) / 1000;
            throw new OperationalStringException("Already " +
                                                 "scheduled " +
                                                 "for redeployment " +
                                                 "in " +
                                                 exec + " seconds");
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.