import com.twitter.ostrich.stats.Stats; import com.twitter.ostrich.stats.StatsConfig; import com.twitter.ostrich.admin.AdminHttpService; public class MyApplication { public static void main(String[] args) throws Exception { StatsConfig statsConfig = new StatsConfig(); Stats.set(statsConfig); Stats.report(); try { // ... } catch (Exception e) { } adminService.start(); } }


上一篇:
下一篇:
切换中文