how to access statistic data programmatically

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

how to access statistic data programmatically

Postby grhwood » 01 Jan 2014, 23:14

Hi,

Is it possible to access admin tool statistic data (ccu, network ...) programmatically. I plan to have multiple servers deployment so I will roll my out statistic module to report to a central place.

Thanks,
Last edited by grhwood on 02 Jan 2014, 10:45, edited 1 time in total.
User avatar
Lapo
Site Admin
Posts: 21723
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: how to access statistic data programmatically

Postby Lapo » 02 Jan 2014, 09:05

This is not documented, but you can do as follows:

Code: Select all

SFSStatsManager statsManager = SmartFoxServer.getInstance().getStatsManager().

Then just use the auto-complete feature in your IDE to access the data you need. It should be self explanatory.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Aldenea, DerikFent, JerodSa, Kevengar and 27 guests