|
|
@@ -22,6 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.StopWatch;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
@@ -74,12 +75,25 @@ public class GateWayUserInfoService extends SuperService {
|
|
|
*/
|
|
|
public void initData() {
|
|
|
log.info("GateWayUserInfoService initData");
|
|
|
+ StopWatch stopWatch = new StopWatch();
|
|
|
+ stopWatch.start("initDefaultUser");
|
|
|
// 初始默认用户密码
|
|
|
initDefaultUser();
|
|
|
+ stopWatch.stop();
|
|
|
|
|
|
+ stopWatch.start("refreshAllGateWayUser");
|
|
|
jmxSyncService.refreshAllGateWayUser();
|
|
|
+ stopWatch.stop();
|
|
|
+
|
|
|
+ stopWatch.start("refreshAllGateWaySecurity");
|
|
|
jmxSyncService.refreshAllGateWaySecurity();
|
|
|
+ stopWatch.stop();
|
|
|
+
|
|
|
+ stopWatch.start("refreshAllDirectDevice");
|
|
|
jmxSyncService.refreshAllDirectDevice();
|
|
|
+ stopWatch.stop();
|
|
|
+
|
|
|
+ log.info(stopWatch.prettyPrint());
|
|
|
}
|
|
|
|
|
|
/**
|