Package com.codeforces.graygoose.misc

Examples of com.codeforces.graygoose.misc.TimeInterval


    @Override
    public void action() {
        boolean withAlertsOnlyValue = getWithAlertsOnlyValue();
        RuleCheckEvent.Status statusValue = getStatusValue(withAlertsOnlyValue);
        TimeInterval currentTimeIntervalValue = getCurrentTimeIntervalValue();
        int limitValue = getLimitValue();
        Long siteIdValue = getSiteIdValue();

        long intervalEnd = System.currentTimeMillis();
        long intervalBegin = intervalEnd - currentTimeIntervalValue.getValueMillis();

        List<RuleCheckEvent> eventsForPeriod =
                getEventsForPeriod(siteIdValue, statusValue, intervalEnd, intervalBegin);

        List<EventDto> events = new ArrayList<>(limitValue);
View Full Code Here


        return $("Dashboard");
    }

    @Override
    public void action() {
        TimeInterval currentTimeInterval;

        try {
            currentTimeInterval = TimeInterval.valueOf(timeInterval);
        } catch (RuntimeException e) {
            currentTimeInterval = TimeInterval.getDefaultValue();
View Full Code Here

TOP

Related Classes of com.codeforces.graygoose.misc.TimeInterval

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.