• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which java class of jforum calculate the totalOnlineUsers

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, in file forum_list.htm get the number of users online call to I18n.getMessage {$ ( "ForumListing.numberOfUsersOnline" [totalOnlineUsers, totalRegisteredOnlineUsers, totalAnonymousUsers])}. Where are these variables defined , which java classc alculates the value of these variables? Can I get the number of administrators or users of the general group?
[originally posted on jforum.net by ocb]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I have found the answer in forum, the java class is net/jforum/view/forum/ForumAction.java, but yet I dont know to get the admin user number, or the general number user, how can i get it? thanks.

Sorry for my English.
[originally posted on jforum.net by ocb]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Generating online user counts from the DB information takes a LOT of queries to determine. This slows down the page displays and scalability greatly. For this reason, these numbers are actually managed via a set of "in memory" cache Classes that are initialized on startup and updated as people come and go.

These cache objects (ForumRepository & SessionFacade) only have a limited number of stats that are tracked. The ones you mention are not available.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, thanks for answering
[originally posted on jforum.net by ocb]
 
reply
    Bookmark Topic Watch Topic
  • New Topic