Examples of StatCount


Examples of org.apache.roller.weblogger.pojos.StatCount

            Object[] row = (Object[])it.next();
            long hits = ((Number)row[0]).longValue();
            String websiteId = (String)row[1];
            String websiteName = (String)row[2];
            String websiteHandle = (String)row[3];
            results.add(new StatCount(
                websiteId,
                websiteHandle,
                websiteName,
                "statCount.weblogDayHits",
                hits));             
View Full Code Here

Examples of org.apache.roller.weblogger.pojos.StatCount

        List list = mgr.getMostCommentedWeblogs(null, null, 0, -1)
       
        assertNotNull(list);
        assertEquals(2, list.size());
       
        StatCount s1 = (StatCount)list.get(0);
        assertEquals(website1.getId(), s1.getSubjectId());
        assertEquals(3L, s1.getCount());  
        assertEquals(website1.getHandle(), s1.getSubjectNameShort());
        assertEquals(website1.getHandle(), s1.getWeblogHandle());
       
        StatCount s2 = (StatCount)list.get(1);
        assertEquals(website2.getId(), s2.getSubjectId());
        assertEquals(1L, s2.getCount());  
    }
View Full Code Here

Examples of org.apache.roller.weblogger.pojos.StatCount

        List list = mgr.getMostCommentedWeblogEntries(null, null, null, 0, -1);
       
        assertNotNull(list);
        assertEquals(3, list.size());
       
        StatCount s1 = (StatCount)list.get(0);
        assertEquals(2L, s1.getCount());
        assertEquals(entry11.getAnchor(), s1.getSubjectNameShort());
        assertEquals(entry11.getWebsite().getHandle(), s1.getWeblogHandle());
              
        StatCount s2 = (StatCount)list.get(1);
        assertEquals(1L, s2.getCount());  
    }
View Full Code Here

Examples of org.apache.roller.weblogger.pojos.StatCount

            List hotBlogs = mgr.getHotWeblogs(sinceDays, 0, length);
           
            Iterator hitCounts = hotBlogs.iterator();
            while (hitCounts.hasNext()) {
                WeblogHitCount hitCount = (WeblogHitCount) hitCounts.next();
                StatCount statCount = new StatCount(
                    hitCount.getWeblog().getId(),
                    hitCount.getWeblog().getHandle(),
                    hitCount.getWeblog().getName(),
                    "statCount.weblogDayHits",
                    hitCount.getDailyHits());
                statCount.setWeblogHandle(hitCount.getWeblog().getHandle());
                results.add(statCount);             
            }
           
        } catch (Exception e) {
            log.error("ERROR: fetching hot weblog list", e);
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.