- java.lang.Object
-
- com.alibaba.util.QuickStart
-
public class QuickStart extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuickStart.QuickStartRoleThe enumeration is the same as VM level `enum QuickStart::QuickStartRole`
-
Field Summary
Fields Modifier and Type Field Description protected static StringcachePathprotected static StringclassPathInProfileStageprotected static String[]vmOptionsInProfileStage
-
Constructor Summary
Constructors Constructor Description QuickStart()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddDumpHook(Runnable runnable)static StringcachePath()static StringgetClassPathInProfileStage()static StringgetServerlessAdapter()static String[]getVmOptionsInProfileStage()static booleanisDumper()static booleanisNormal()Detect whether this Java process is a normal one.static booleanisReplayer()Detect whether this Java process is a replayer.static booleanisTracer()Detect whether this Java process is a tracer.static booleanisVerbose()static voidnotifyDump()static voidsetServerlessAdapter(String serverlessAdapter)
-
-
-
Method Detail
-
setServerlessAdapter
public static void setServerlessAdapter(String serverlessAdapter)
-
getServerlessAdapter
public static String getServerlessAdapter()
-
isVerbose
public static boolean isVerbose()
-
isNormal
public static boolean isNormal()
Detect whether this Java process is a normal one. Has the same semantics as VM level `!QuickStart::is_enabled()`- Returns:
- true if this Java process is a normal process.
-
isTracer
public static boolean isTracer()
Detect whether this Java process is a tracer. Has the same semantics as VM level `QuickStart::is_tracer()`- Returns:
- true if this Java process is a tracer.
-
isReplayer
public static boolean isReplayer()
Detect whether this Java process is a replayer. Has the same semantics as VM level `QuickStart::is_replayer()`- Returns:
- true if this Java process is replayer.
-
isDumper
public static boolean isDumper()
-
cachePath
public static String cachePath()
-
getVmOptionsInProfileStage
public static String[] getVmOptionsInProfileStage()
-
getClassPathInProfileStage
public static String getClassPathInProfileStage()
-
addDumpHook
public static void addDumpHook(Runnable runnable)
-
notifyDump
public static void notifyDump()
-
-