- java.lang.Object
-
- com.alibaba.util.QuickStart
-
public class QuickStart extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuickStart.QuickStartRole
The enumeration is the same as VM level `enum QuickStart::QuickStartRole`
-
Field Summary
Fields Modifier and Type Field Description protected static String
cachePath
protected static String
classPathInProfileStage
protected static String[]
vmOptionsInProfileStage
-
Constructor Summary
Constructors Constructor Description QuickStart()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addDumpHook(Runnable runnable)
static String
cachePath()
static String
getClassPathInProfileStage()
static String
getServerlessAdapter()
static String[]
getVmOptionsInProfileStage()
static boolean
isDumper()
static boolean
isNormal()
Detect whether this Java process is a normal one.static boolean
isReplayer()
Detect whether this Java process is a replayer.static boolean
isTracer()
Detect whether this Java process is a tracer.static boolean
isVerbose()
static void
notifyDump()
static void
setServerlessAdapter(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()
-
-