mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix wiki link
This commit is contained in:
@@ -23,7 +23,7 @@ public interface Constants {
|
||||
|
||||
String WIKI = "\nWIKI:\n";
|
||||
|
||||
String WIKI_HOME = " middleware-container/arthas/wikis/";
|
||||
String WIKI_HOME = " https://alibaba.github.io/arthas/";
|
||||
|
||||
String EXPRESS_EXAMPLES = "Examples:\n" +
|
||||
" params[0]\n" +
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import static com.taobao.text.ui.Element.label;
|
||||
@Name("sysprop")
|
||||
@Summary("Display, and change the system properties.")
|
||||
@Description(Constants.EXAMPLE + "sysprop\n"+ "sysprop file.encoding\n" + "sysprop production.mode true\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/sysprop")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "sysprop")
|
||||
public class SystemPropertyCommand extends AnnotatedCommand {
|
||||
|
||||
private String propertyName;
|
||||
|
||||
@@ -35,7 +35,7 @@ import static java.lang.String.format;
|
||||
@Name("options")
|
||||
@Summary("View and change various Arthas options")
|
||||
@Description(Constants.EXAMPLE + "options dump true\n"+ "options unsafe true\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/options")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "options")
|
||||
public class OptionsCommand extends AnnotatedCommand {
|
||||
private String optionName;
|
||||
private String optionValue;
|
||||
|
||||
@@ -42,7 +42,7 @@ import java.util.TreeSet;
|
||||
" classloader -c 327a647b -r META-INF/MANIFEST.MF\n" +
|
||||
" classloader -a\n" +
|
||||
" classloader -a -c 327a647b\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/classloader")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "classloader")
|
||||
public class ClassLoaderCommand extends AnnotatedCommand {
|
||||
private boolean isTree = false;
|
||||
private String hashCode;
|
||||
|
||||
@@ -40,7 +40,7 @@ import static com.taobao.text.ui.Element.label;
|
||||
" dump org.apache.commons.lang.StringUtils\n" +
|
||||
" dump org/apache/commons/lang/StringUtils\n" +
|
||||
" dump *StringUtils\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/dump")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "dump")
|
||||
public class DumpClassCommand extends AnnotatedCommand {
|
||||
private static final Logger logger = LogUtil.getArthasLogger();
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import static com.taobao.text.ui.Element.label;
|
||||
@Name("getstatic")
|
||||
@Summary("Show the static field of a class")
|
||||
@Description(Constants.EXAMPLE + " getstatic -c 39eb305e org.apache.log4j.LogManager DEFAULT_CONFIGURATION_FILE\n"
|
||||
+ Constants.WIKI + Constants.WIKI_HOME + "cmds/getstatic")
|
||||
+ Constants.WIKI + Constants.WIKI_HOME + "getstatic")
|
||||
public class GetStaticCommand extends AnnotatedCommand {
|
||||
|
||||
private static final Logger logger = LogUtil.getArthasLogger();
|
||||
|
||||
@@ -43,7 +43,7 @@ import static com.taobao.text.ui.Element.label;
|
||||
" jad -c 39eb305e org.apache.log4j.Logger\n" +
|
||||
" jad -c 39eb305e org/apache/log4j/Logger\n" +
|
||||
" jad -c 39eb305e -E org\\\\.apache\\\\.*\\\\.StringUtils\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/jad")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "jad")
|
||||
public class JadCommand extends AnnotatedCommand {
|
||||
private static final Logger logger = LogUtil.getArthasLogger();
|
||||
private static Pattern pattern = Pattern.compile("(?m)^/\\*\\s*\\*/\\s*$" + System.getProperty("line.separator"));
|
||||
|
||||
@@ -31,7 +31,7 @@ import com.taobao.middleware.cli.annotations.Summary;
|
||||
@Description(Constants.EXAMPLE +
|
||||
" redefine -p /tmp/Test.class\n" +
|
||||
" redefine -c 327a647b -p /tmp/Test.class /tmp/Test\\$Inner.class \n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/redefine")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "redefine")
|
||||
public class RedefineCommand extends AnnotatedCommand {
|
||||
|
||||
private static final int MAX_FILE_SIZE = 10 * 1024 * 1024;
|
||||
|
||||
@@ -35,7 +35,7 @@ import static com.taobao.text.ui.Element.label;
|
||||
" sc -d org.apache.commons.lang.StringUtils\n" +
|
||||
" sc -d org/apache/commons/lang/StringUtils\n" +
|
||||
" sc -d *StringUtils\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/sc")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "sc")
|
||||
public class SearchClassCommand extends AnnotatedCommand {
|
||||
private String classPattern;
|
||||
private boolean isDetail = false;
|
||||
|
||||
@@ -42,7 +42,7 @@ import static java.lang.String.format;
|
||||
" sm -d org.apache.commons.lang.StringUtils\n" +
|
||||
" sm -d org/apache/commons/lang/StringUtils\n" +
|
||||
" sm *String????s *\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/sm")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "sm")
|
||||
public class SearchMethodCommand extends AnnotatedCommand {
|
||||
|
||||
private String classPattern;
|
||||
|
||||
@@ -45,7 +45,7 @@ import java.util.TimerTask;
|
||||
" dashboard\n" +
|
||||
" dashboard -n 10\n" +
|
||||
" dashboard -i 2000\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/dashboard")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "dashboard")
|
||||
public class DashboardCommand extends AnnotatedCommand {
|
||||
|
||||
private static final Logger logger = LogUtil.getArthasLogger();
|
||||
|
||||
@@ -34,7 +34,7 @@ import static com.taobao.text.ui.Element.label;
|
||||
*/
|
||||
@Name("jvm")
|
||||
@Summary("Display the target JVM information")
|
||||
@Description(Constants.WIKI + Constants.WIKI_HOME + "cmds/jvm")
|
||||
@Description(Constants.WIKI + Constants.WIKI_HOME + "jvm")
|
||||
public class JvmCommand extends AnnotatedCommand {
|
||||
|
||||
private final RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();
|
||||
|
||||
@@ -24,7 +24,7 @@ import com.taobao.middleware.cli.annotations.Summary;
|
||||
" monitor org.apache.commons.lang.StringUtils isBlank\n" +
|
||||
" monitor org.apache.commons.lang.StringUtils isBlank -c 5\n" +
|
||||
" monitor -E org\\.apache\\.commons\\.lang\\.StringUtils isBlank\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/monitor")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "monitor")
|
||||
public class MonitorCommand extends EnhancerCommand {
|
||||
|
||||
private String classPattern;
|
||||
|
||||
@@ -27,7 +27,7 @@ import com.taobao.middleware.cli.annotations.Summary;
|
||||
" stack *StringUtils isBlank\n" +
|
||||
" stack *StringUtils isBlank params[0].length==1\n" +
|
||||
" stack *StringUtils isBlank '#cost>100'\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/stack")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "stack")
|
||||
public class StackCommand extends EnhancerCommand {
|
||||
private String classPattern;
|
||||
private String methodPattern;
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.Map;
|
||||
" thread -n 5\n" +
|
||||
" thread -b\n" +
|
||||
" thread -i 2000\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/thread")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "thread")
|
||||
public class ThreadCommand extends AnnotatedCommand {
|
||||
|
||||
private static ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
|
||||
|
||||
@@ -46,7 +46,7 @@ import static java.lang.String.format;
|
||||
" tt -i 1000 -w params[0]\n" +
|
||||
" tt -i 1000 -d\n" +
|
||||
" tt -i 1000\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/tt")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "tt")
|
||||
public class TimeTunnelCommand extends EnhancerCommand {
|
||||
// 时间隧道(时间碎片的集合)
|
||||
private static final Map<Integer, TimeFragment> timeFragmentMap = new LinkedHashMap<Integer, TimeFragment>();
|
||||
|
||||
@@ -33,7 +33,7 @@ import java.util.List;
|
||||
" trace *StringUtils isBlank\n" +
|
||||
" trace *StringUtils isBlank params[0].length==1\n" +
|
||||
" trace *StringUtils isBlank '#cost>100'\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/trace")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "trace")
|
||||
public class TraceCommand extends EnhancerCommand {
|
||||
|
||||
private String classPattern;
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.taobao.middleware.cli.annotations.Summary;
|
||||
" watch *StringUtils isBlank params[0]\n" +
|
||||
" watch *StringUtils isBlank params[0] params[0].length==1\n" +
|
||||
" watch *StringUtils isBlank '#cost>100'\n" +
|
||||
Constants.WIKI + Constants.WIKI_HOME + "cmds/watch")
|
||||
Constants.WIKI + Constants.WIKI_HOME + "watch")
|
||||
public class WatchCommand extends EnhancerCommand {
|
||||
|
||||
private String classPattern;
|
||||
|
||||
Reference in New Issue
Block a user