com.edas.pandora.PandoraUtils Maven / Gradle / Ivy
package com.edas.pandora;
import com.taobao.hsf.standalone.HSFMiniContainer;
/**
* Created by ifree613 on 2017/7/25.
*/
public class PandoraUtils {
public static void loadPandoraByLightApi(){
try {
//若启动了 Pandora Boot 则不启动 light api 来加载数据
String standalonePandora = System.getProperty("standalone.pandora","true");
if(!Boolean.valueOf(standalonePandora)){
return;
}
//开始加载 light api
String pandoraPath = System.getProperty("pandora.location");
if(pandoraPath!=null&&!"".equals(pandoraPath.trim())){
HSFMiniContainer.start(pandoraPath);
}
} catch (Exception e) {
//quietly
}
}
}