package com.taobao.arthas.core.util;

import java.io.File;

import com.taobao.arthas.core.view.Ansi;

/**
 * @author ralf0131 2016-12-28 16:20.
 */
public interface Constants {

    /**
     * Spy的全类名
     */
    String SPY_CLASSNAME = "java.arthas.Spy";

    /**
     * 中断提示
     */
    String ABORT_MSG = "Press Ctrl+C to abort.";

    /**
     * 空字符串
     */
    String EMPTY_STRING = "";

    /**
     * 命令提示符
     */
    String DEFAULT_PROMPT = "$ ";

    /**
     * 带颜色命令提示符
     * raw string: "[33m$ [m"
     */
    String COLOR_PROMPT = Ansi.ansi().fg(Ansi.Color.YELLOW).a(DEFAULT_PROMPT).reset().toString();

    /**
     * 方法执行耗时
     */
    String COST_VARIABLE = "cost";

    String CMD_HISTORY_FILE = System.getProperty("user.home") + File.separator + ".arthas" + File.separator + "history";

    /**
     * 当前进程PID
     */
    String PID = ApplicationUtils.getPid();

    /**
     * 缓存目录
     */
    String CACHE_ROOT = System.getProperty("user.home") + File.separator + "logs" + File.separator + "arthas-cache";

}
