Package org.jwatch.listener.notification

Examples of org.jwatch.listener.notification.JobEvent


            {
                totalCount = events.size() > EventService.getMaxShowEventListSize() ? EventService.getMaxShowEventListSize() : events.size();

                for (int i = 0; i < events.size(); i++)
                {
                    JobEvent jEvent = (JobEvent) events.get(i);
                    JSONObject object = JSONObject.fromObject(jEvent);
                    object.put("fireTime", Tools.toStringFromDate(jEvent.getFireTime(), null));
                    object.put("nextFireTime", Tools.toStringFromDate(jEvent.getNextFireTime(), null));
                    object.put("previousFireTime", Tools.toStringFromDate(jEvent.getPreviousFireTime(), null));
                    object.put("scheduledFireTime", Tools.toStringFromDate(jEvent.getScheduledFireTime(), null));
                    jsonArray.add(object);
                    if (i == EventService.getMaxShowEventListSize() - 1)
                    {
                        break;
                    }
View Full Code Here

TOP

Related Classes of org.jwatch.listener.notification.JobEvent

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.