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

xin.bluesky.leiothrix.server.util.LeiothrixUtils Maven / Gradle / Ivy

The newest version!
package xin.bluesky.leiothrix.server.util;

import xin.bluesky.leiothrix.common.util.StringUtils2;
import xin.bluesky.leiothrix.server.conf.ServerConfigure;

import java.io.File;

/**
 * @author 张轲
 */
public class LeiothrixUtils {

    private static final String TASK_STORE_PATH = ServerConfigure.get("task.file.store");

    public static String getMyIp() {
        String serverIp = ServerConfigure.get("server", false);

        return serverIp;
    }

    public static File getTaskDirPath(String taskId) {
        return new File(StringUtils2.append(TASK_STORE_PATH, File.separator, taskId));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy