All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.edas.pandora.PandoraUtils Maven / Gradle / Ivy

There is a newer version: 1.8.3
Show newest version
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
        }
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy