Merge branch 'master' of github.com:alibaba/arthas

pull/917/head
hengyunabc 5 years ago
commit ea3e25d790

@ -9,49 +9,52 @@ import static com.taobao.arthas.core.util.LogUtil.LOGS_DIR;
/**
* @author ralf0131 2016-12-28 16:20.
*/
public interface Constants {
public class Constants {
private Constants() {
}
/**
* Spy
*/
String SPY_CLASSNAME = "java.arthas.Spy";
public static final String SPY_CLASSNAME = "java.arthas.Spy";
/**
*
*/
String Q_OR_CTRL_C_ABORT_MSG = "Press Q or Ctrl+C to abort.";
public static final String Q_OR_CTRL_C_ABORT_MSG = "Press Q or Ctrl+C to abort.";
/**
*
*/
String EMPTY_STRING = "";
public static final String EMPTY_STRING = "";
/**
*
*/
String DEFAULT_PROMPT = "$ ";
public static final String DEFAULT_PROMPT = "$ ";
/**
*
* raw string: "[33m$ "
*/
String COLOR_PROMPT = Ansi.ansi().fg(Ansi.Color.YELLOW).a(DEFAULT_PROMPT).reset().toString();
public static final String COLOR_PROMPT = Ansi.ansi().fg(Ansi.Color.YELLOW).a(DEFAULT_PROMPT).reset().toString();
/**
*
*/
String COST_VARIABLE = "cost";
public static final String COST_VARIABLE = "cost";
String CMD_HISTORY_FILE = System.getProperty("user.home") + File.separator + ".arthas" + File.separator + "history";
public static final String CMD_HISTORY_FILE = System.getProperty("user.home") + File.separator + ".arthas" + File.separator + "history";
/**
* PID
*/
String PID = ApplicationUtils.getPid();
public static final String PID = ApplicationUtils.getPid();
/**
*
*/
String CACHE_ROOT = LOGS_DIR + File.separator + "arthas-cache";
public static final String CACHE_ROOT = LOGS_DIR + File.separator + "arthas-cache";
}

Loading…
Cancel
Save