| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String[] | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public static void | |
| private static Map | parseOptions(String[] oldArgs, Map<String, String> longOptsMap)
This method converts jhsdb-style options (oldArgs) to old fashioned style. |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static boolean |
| NO_REMOTE | back to summary |
|---|---|
| private static final String NO_REMOTE | |
| toolMap | back to summary |
|---|---|
| private static Map<String, Consumer<String[]>> toolMap | |
| SALauncher | back to summary |
|---|---|
| public SALauncher() | |
| buildAttachArgs | back to summary |
|---|---|
| private static String[] buildAttachArgs(Map<String, String> newArgMap, boolean allowEmpty) | |
| commonHelp | back to summary |
|---|---|
| private static boolean commonHelp(String mode) | |
| commonHelp | back to summary |
|---|---|
| private static boolean commonHelp(String mode, boolean canConnectToRemote) | |
| commonHelpWithConnect | back to summary |
|---|---|
| private static boolean commonHelpWithConnect(String mode) | |
| debugdHelp | back to summary |
|---|---|
| private static boolean debugdHelp() | |
| jinfoHelp | back to summary |
|---|---|
| private static boolean jinfoHelp() | |
| jmapHelp | back to summary |
|---|---|
| private static boolean jmapHelp() | |
| jsnapHelp | back to summary |
|---|---|
| private static boolean jsnapHelp() | |
| jstackHelp | back to summary |
|---|---|
| private static boolean jstackHelp() | |
| launcherHelp | back to summary |
|---|---|
| private static boolean launcherHelp() | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| parseOptions | back to summary |
|---|---|
| private static Map This method converts jhsdb-style options (oldArgs) to old fashioned style. SALauncher delegates the work to the entry point of each tool. Thus we need to convert the arguments. For example, `jhsdb jstack --mixed` needs to be converted to `jstack -m`. longOptsMap holds the rule how this method should convert the args. The key is the name of jhsdb style, the value is the name of old fashioned style. If you want to convert mixed option in jstack, you need to set "mixed" to the key, and to set "-m" to the value in longOptsMap. If the option have the value, you need to add "=" to the key like "exe=". You also can set the options which cannot be mapped to old fashioned arguments. For example, `jhsdb jmap --binaryheap` cannot be mapped to `jmap` option directly. But you set it to longOptsMap, then you can know the user sets "binaryheap" option, and SALauncher should set "-heap:format:b" to jmap option. This method returns the map of the old fashioned key/val pairs. It can be used to build args in string array at buildAttachArgs(). | |
| runCLHSDB | back to summary |
|---|---|
| private static void runCLHSDB(String[] oldArgs) | |
| runDEBUGD | back to summary |
|---|---|
private static void runDEBUGD(String[] args)
| |
| runHSDB | back to summary |
|---|---|
| private static void runHSDB(String[] oldArgs) | |
| runJINFO | back to summary |
|---|---|
| private static void runJINFO(String[] oldArgs) | |
| runJMAP | back to summary |
|---|---|
| private static void runJMAP(String[] oldArgs) | |
| runJSNAP | back to summary |
|---|---|
| private static void runJSNAP(String[] oldArgs) | |
| runJSTACK | back to summary |
|---|---|
| private static void runJSTACK(String[] oldArgs) | |
| toolHelp | back to summary |
|---|---|
| private static boolean toolHelp(String toolName) | |