startAgent method is invoked by the VM if -Dcom.sun.management.* is set
2. startLocalManagementAgent or startRemoteManagementAgent
is invoked to start the management agent after the VM starts
via jcmd ManagementAgent.start and start_local command.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | Agent.
Agent status collector strategy class |
| private static class | Agent.
Free-text status collector strategy implementation |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static Properties | |
| private static final String | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final String | |
| private static JMXConnectorServer | |
| private static final String | |
| private static ResourceBundle | |
| private static Properties | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| private static synchronized String | |
| public static synchronized Properties | |
| public static String | |
| public static String | |
| private static void | |
| public static Properties | |
| private static Properties | |
| public static void | |
| private static void | |
| private static void | |
| public static void | startAgent()
This method is invoked by the VM to start the management agent when -Dcom.sun.management.* is set during startup. |
| private static void | |
| private static synchronized void | |
| private static synchronized void | |
| private static synchronized void | |
| public static void |
| CONFIG_FILE | back to summary |
|---|---|
| private static final String CONFIG_FILE | |
| configProps | back to summary |
|---|---|
| private static Properties configProps | |
| ENABLE_THREAD_CONTENTION_MONITORING | back to summary |
|---|---|
| private static final String ENABLE_THREAD_CONTENTION_MONITORING | |
| JDP_DEFAULT_ADDRESS | back to summary |
|---|---|
| private static final String JDP_DEFAULT_ADDRESS | |
| JDP_DEFAULT_PORT | back to summary |
|---|---|
| private static final int JDP_DEFAULT_PORT | |
| JMXREMOTE | back to summary |
|---|---|
| private static final String JMXREMOTE | |
| JMXREMOTE_PORT | back to summary |
|---|---|
| private static final String JMXREMOTE_PORT | |
| jmxServer | back to summary |
|---|---|
| private static JMXConnectorServer jmxServer | |
| LOCAL_CONNECTOR_ADDRESS_PROP | back to summary |
|---|---|
| private static final String LOCAL_CONNECTOR_ADDRESS_PROP | |
| messageRB | back to summary |
|---|---|
| private static ResourceBundle messageRB | |
| mgmtProps | back to summary |
|---|---|
| private static Properties mgmtProps | |
| RMI_PORT | back to summary |
|---|---|
| private static final String RMI_PORT | |
| Agent | back to summary |
|---|---|
| public Agent() | |
| agentmain | back to summary |
|---|---|
| public static void agentmain(String args) throws Exception | |
| error | back to summary |
|---|---|
| public static void error(String key) | |
| error | back to summary |
|---|---|
| public static void error(String key, String message) | |
| error | back to summary |
|---|---|
| public static void error(Exception e) | |
| error | back to summary |
|---|---|
| public static void error(AgentConfigurationError e) | |
| getManagementAgentStatus | back to summary |
|---|---|
| private static synchronized String getManagementAgentStatus() throws Exception | |
| getManagementProperties | back to summary |
|---|---|
| public static synchronized Properties getManagementProperties() | |
| getText | back to summary |
|---|---|
| public static String getText(String key) | |
| getText | back to summary |
|---|---|
| public static String getText(String key, String... args) | |
| initResource | back to summary |
|---|---|
| private static void initResource() | |
| loadManagementProperties | back to summary |
|---|---|
| public static Properties loadManagementProperties() | |
| parseString | back to summary |
|---|---|
| private static Properties parseString(String args) | |
| premain | back to summary |
|---|---|
| public static void premain(String args) throws Exception | |
| readConfiguration | back to summary |
|---|---|
| private static void readConfiguration(String fname, Properties p) | |
| startAgent | back to summary |
|---|---|
| private static void startAgent(Properties props) throws Exception | |
| startAgent | back to summary |
|---|---|
| public static void startAgent() throws Exception This method is invoked by the VM to start the management agent when -Dcom.sun.management.* is set during startup. | |
| startDiscoveryService | back to summary |
|---|---|
| private static void startDiscoveryService(Properties props) throws IOException, JdpException | |
| startLocalManagementAgent | back to summary |
|---|---|
| private static synchronized void startLocalManagementAgent() | |
| startRemoteManagementAgent | back to summary |
|---|---|
| private static synchronized void startRemoteManagementAgent(String args) throws Exception | |
| stopRemoteManagementAgent | back to summary |
|---|---|
| private static synchronized void stopRemoteManagementAgent() throws Exception | |
| warning | back to summary |
|---|---|
| public static void warning(String key, String message) | |
| Modifier and Type | Field and Description |
|---|---|
| protected static final Map | |
| protected final StringBuilder |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| protected abstract void | |
| private void | |
| private void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| private void | |
| protected abstract void | |
| protected abstract void | |
| public final String | |
| private static boolean | |
| private static <T, V> Predicate |
| DEFAULT_PROPS | back to summary |
|---|---|
| protected static final Map<String, String> DEFAULT_PROPS | |
| sb | back to summary |
|---|---|
| protected final StringBuilder sb | |
| StatusCollector | back to summary |
|---|---|
| private StatusCollector() | |
| addAgentStatus | back to summary |
|---|---|
| protected abstract void addAgentStatus(boolean enabled) | |
| addConfigProp | back to summary |
|---|---|
| protected abstract void addConfigProp(Map. | |
| addConfigProperties | back to summary |
|---|---|
| private void addConfigProperties() | |
| addConnection | back to summary |
|---|---|
| private void addConnection(boolean remote, JMXServiceURL u) | |
| addConnectionDetails | back to summary |
|---|---|
| protected abstract void addConnectionDetails(JMXServiceURL u) | |
| appendConfigPropsFooter | back to summary |
|---|---|
| protected abstract void appendConfigPropsFooter() | |
| appendConfigPropsHeader | back to summary |
|---|---|
| protected abstract void appendConfigPropsHeader() | |
| appendConnectionFooter | back to summary |
|---|---|
| protected abstract void appendConnectionFooter(boolean remote) | |
| appendConnectionHeader | back to summary |
|---|---|
| protected abstract void appendConnectionHeader(boolean remote) | |
| appendConnections | back to summary |
|---|---|
| private void appendConnections(String localConnAddr) | |
| appendConnectionsFooter | back to summary |
|---|---|
| protected abstract void appendConnectionsFooter() | |
| appendConnectionsHeader | back to summary |
|---|---|
| protected abstract void appendConnectionsHeader() | |
| collect | back to summary |
|---|---|
| public final String collect() | |
| isManagementProp | back to summary |
|---|---|
| private static boolean isManagementProp(Object pName) | |
| preprocess | back to summary |
|---|---|
| private static <T, V> Predicate | |
| Access | Constructor and Description |
|---|---|
| private |
| TextStatusCollector | back to summary |
|---|---|
| private TextStatusCollector() | |
| addAgentStatus | back to summary |
|---|---|
| protected void addAgentStatus(boolean enabled) Implements abstract jdk.
| |
| addConfigProp | back to summary |
|---|---|
| protected void addConfigProp(Map. Implements abstract jdk.
| |
| addConnectionDetails | back to summary |
|---|---|
| protected void addConnectionDetails(JMXServiceURL u) Implements abstract jdk.
| |
| appendConfigPropsFooter | back to summary |
|---|---|
| protected void appendConfigPropsFooter() Implements abstract jdk.
| |
| appendConfigPropsHeader | back to summary |
|---|---|
| protected void appendConfigPropsHeader() Implements abstract jdk.
| |
| appendConnectionFooter | back to summary |
|---|---|
| protected void appendConnectionFooter(boolean remote) Implements abstract jdk.
| |
| appendConnectionHeader | back to summary |
|---|---|
| protected void appendConnectionHeader(boolean remote) Implements abstract jdk.
| |
| appendConnectionsFooter | back to summary |
|---|---|
| protected void appendConnectionsFooter() Implements abstract jdk.
| |
| appendConnectionsHeader | back to summary |
|---|---|
| protected void appendConnectionsHeader() Implements abstract jdk.
| |