@@ -0,0 +1,1268 @@
+package com.ctrip.xpipe.redis.console.health;%0A%0Aimport com.ctrip.xpipe.redis.console.resources.MetaCache;%0Aimport com.ctrip.xpipe.redis.console.spring.ConsoleContextConfig;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport javax.annotation.PostConstruct;%0Aimport javax.annotation.Resource;%0Aimport java.util.concurrent.ScheduledExecutorService;%0Aimport java.util.concurrent.TimeUnit;%0A%0A/**%0A * @author chen.zhu%0A * %3Cp%3E%0A * Nov 20, 2017%0A */%0A@Component%0Apublic class MetaCacheHealthChecker %7B%0A%0A    private Logger logger = LoggerFactory.getLogger(getClass());%0A%0A    @Autowired%0A    MetaCache metaCache;%0A%0A    @Resource(name= ConsoleContextConfig.SCHEDULED_EXECUTOR)%0A    ScheduledExecutorService scheduled;%0A%0A    @PostConstruct%0A    public void postConstruct() %7B%0A        scheduled.scheduleAtFixedRate(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                try %7B%0A                    logger.info(%22%5BpostConstruct%5D %5Cn %7B%7D%22, metaCache.getXpipeMeta().toString());%0A                %7D catch (Exception e) %7B%0A                    logger.error(%22%5BpostConstruct%5D%22, e);%0A                %7D%0A            %7D%0A        %7D, 2, 1, TimeUnit.SECONDS);%0A    %7D%0A%7D%0A

add metacha health checker