public class sun.management.Agent
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.management.Agent
super_class: java.lang.Object
{
private static java.util.Properties mgmtProps;
descriptor: Ljava/util/Properties;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.util.ResourceBundle messageRB;
descriptor: Ljava/util/ResourceBundle;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.String CONFIG_FILE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management.config.file"
private static final java.lang.String SNMP_PORT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management.snmp.port"
private static final java.lang.String JMXREMOTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management.jmxremote"
private static final java.lang.String JMXREMOTE_PORT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management.jmxremote.port"
private static final java.lang.String RMI_PORT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management.jmxremote.rmi.port"
private static final java.lang.String ENABLE_THREAD_CONTENTION_MONITORING;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management.enableThreadContentionMonitoring"
private static final java.lang.String LOCAL_CONNECTOR_ADDRESS_PROP;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management.jmxremote.localConnectorAddress"
private static final java.lang.String SNMP_ADAPTOR_BOOTSTRAP_CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "sun.management.snmp.AdaptorBootstrap"
private static final java.lang.String JDP_DEFAULT_ADDRESS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "224.0.23.178"
private static final int JDP_DEFAULT_PORT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7095
private static javax.management.remote.JMXConnectorServer jmxServer;
descriptor: Ljavax/management/remote/JMXConnectorServer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic sun.management.Agent.jmxServer:Ljavax/management/remote/JMXConnectorServer;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/management/Agent;
private static java.util.Properties parseString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Properties;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=9, args_size=1
start local 0 0: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 1
start local 1 1: aload 0
ifnull 14
2: aload 0
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 13
StackMap locals: java.lang.String java.util.Properties top int int java.lang.String[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: aload 2
ldc "="
iconst_2
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 6
start local 6 5: aload 6
iconst_0
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 7
start local 7 6: aload 6
arraylength
iconst_1
if_icmple 7
aload 6
iconst_1
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
goto 8
StackMap locals: java.lang.String java.util.Properties java.lang.String int int java.lang.String[] java.lang.String[] java.lang.String
StackMap stack:
7: ldc ""
StackMap locals:
StackMap stack: java.lang.String
8: astore 8
start local 8 9: aload 7
ldc "com.sun.management."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 11
10: ldc "agent.err.invalid.option"
aload 7
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
11: StackMap locals: java.lang.String
StackMap stack:
aload 1
aload 7
aload 8
invokevirtual java.util.Properties.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
pop
end local 8 end local 7 end local 6 end local 2 12: iinc 3 1
StackMap locals: java.lang.String java.util.Properties top int int java.lang.String[]
StackMap stack:
13: iload 3
iload 4
if_icmplt 3
14: StackMap locals: java.lang.String java.util.Properties
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 args Ljava/lang/String;
1 15 1 argProps Ljava/util/Properties;
4 12 2 option Ljava/lang/String;
5 12 6 s [Ljava/lang/String;
6 12 7 name Ljava/lang/String;
9 12 8 value Ljava/lang/String;
MethodParameters:
Name Flags
args
public static void premain(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.management.Agent.agentmain:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 args Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
public static void agentmain(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual java.lang.String.length:()I
ifne 2
1: StackMap locals:
StackMap stack:
ldc "com.sun.management.jmxremote"
astore 0
2: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.management.Agent.parseString:(Ljava/lang/String;)Ljava/util/Properties;
astore 1
start local 1 3: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 2
start local 2 4: aload 1
ldc "com.sun.management.config.file"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 5: aload 3
aload 2
invokestatic sun.management.Agent.readConfiguration:(Ljava/lang/String;Ljava/util/Properties;)V
6: aload 2
aload 1
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
7: aload 2
invokestatic sun.management.Agent.startAgent:(Ljava/util/Properties;)V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 args Ljava/lang/String;
3 9 1 arg_props Ljava/util/Properties;
4 9 2 config_props Ljava/util/Properties;
5 9 3 fname Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
private static synchronized void startLocalManagementAgent();
descriptor: ()V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=0
0: invokestatic sun.misc.VMSupport.getAgentProperties:()Ljava/util/Properties;
astore 0
start local 0 1: aload 0
ldc "com.sun.management.jmxremote.localConnectorAddress"
invokevirtual java.util.Properties.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnonnull 9
2: invokestatic sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer:()Ljavax/management/remote/JMXConnectorServer;
astore 1
start local 1 3: aload 1
invokevirtual javax.management.remote.JMXConnectorServer.getAddress:()Ljavax/management/remote/JMXServiceURL;
invokevirtual javax.management.remote.JMXServiceURL.toString:()Ljava/lang/String;
astore 2
start local 2 4: aload 0
ldc "com.sun.management.jmxremote.localConnectorAddress"
aload 2
invokevirtual java.util.Properties.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 2
invokestatic sun.management.ConnectorAddressLink.export:(Ljava/lang/String;)V
6: goto 9
StackMap locals: java.util.Properties javax.management.remote.JMXConnectorServer java.lang.String
StackMap stack: java.lang.Exception
7: astore 3
start local 3 8: ldc "agent.err.exportaddress.failed"
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokestatic sun.management.Agent.warning:(Ljava/lang/String;Ljava/lang/String;)V
end local 3 end local 2 end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 10 0 agentProps Ljava/util/Properties;
3 9 1 cs Ljavax/management/remote/JMXConnectorServer;
4 9 2 address Ljava/lang/String;
8 9 3 x Ljava/lang/Exception;
Exception table:
from to target type
5 6 7 Class java.lang.Exception
private static synchronized void startRemoteManagementAgent(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=7, locals=8, args_size=1
start local 0 0: getstatic sun.management.Agent.jmxServer:Ljavax/management/remote/JMXConnectorServer;
ifnull 2
1: new java.lang.RuntimeException
dup
ldc "agent.err.invalid.state"
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "Agent already started"
aastore
invokestatic sun.management.Agent.getText:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.management.Agent.parseString:(Ljava/lang/String;)Ljava/util/Properties;
astore 1
start local 1 3: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 2
start local 2 4: ldc "com.sun.management.config.file"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 5: aload 3
aload 2
invokestatic sun.management.Agent.readConfiguration:(Ljava/lang/String;Ljava/util/Properties;)V
6: invokestatic java.lang.System.getProperties:()Ljava/util/Properties;
astore 4
start local 4 7: aload 4
dup
astore 5
monitorenter
8: aload 2
aload 4
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
9: aload 5
monitorexit
10: goto 13
StackMap locals: java.lang.String java.util.Properties java.util.Properties java.lang.String java.util.Properties java.util.Properties
StackMap stack: java.lang.Throwable
11: aload 5
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
aload 1
ldc "com.sun.management.config.file"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 14: aload 5
ifnull 16
15: aload 5
aload 2
invokestatic sun.management.Agent.readConfiguration:(Ljava/lang/String;Ljava/util/Properties;)V
16: StackMap locals: java.lang.String
StackMap stack:
aload 2
aload 1
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
17: aload 2
ldc "com.sun.management.enableThreadContentionMonitoring"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
18: astore 6
start local 6 19: aload 6
ifnull 22
20: invokestatic java.lang.management.ManagementFactory.getThreadMXBean:()Ljava/lang/management/ThreadMXBean;
21: iconst_1
invokeinterface java.lang.management.ThreadMXBean.setThreadContentionMonitoringEnabled:(Z)V
22: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "com.sun.management.jmxremote.port"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 23: aload 7
ifnull 27
24: aload 7
aload 2
invokestatic sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer:(Ljava/lang/String;Ljava/util/Properties;)Ljavax/management/remote/JMXConnectorServer;
25: putstatic sun.management.Agent.jmxServer:Ljavax/management/remote/JMXConnectorServer;
26: aload 2
invokestatic sun.management.Agent.startDiscoveryService:(Ljava/util/Properties;)V
27: StackMap locals: java.lang.String
StackMap stack:
return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 args Ljava/lang/String;
3 28 1 argProps Ljava/util/Properties;
4 28 2 configProps Ljava/util/Properties;
5 28 3 fname Ljava/lang/String;
7 28 4 sysProps Ljava/util/Properties;
14 28 5 fnameUser Ljava/lang/String;
19 28 6 enableThreadContentionMonitoring Ljava/lang/String;
23 28 7 jmxremotePort Ljava/lang/String;
Exception table:
from to target type
8 10 11 any
11 12 11 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
private static synchronized void stopRemoteManagementAgent();
descriptor: ()V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: invokestatic sun.management.jdp.JdpController.stopDiscoveryService:()V
1: getstatic sun.management.Agent.jmxServer:Ljavax/management/remote/JMXConnectorServer;
ifnull 5
2: invokestatic sun.management.jmxremote.ConnectorBootstrap.unexportRegistry:()V
3: getstatic sun.management.Agent.jmxServer:Ljavax/management/remote/JMXConnectorServer;
invokevirtual javax.management.remote.JMXConnectorServer.stop:()V
4: aconst_null
putstatic sun.management.Agent.jmxServer:Ljavax/management/remote/JMXConnectorServer;
5: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
private static void startAgent(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
ldc "com.sun.management.snmp.port"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 0
ldc "com.sun.management.jmxremote"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 0
ldc "com.sun.management.jmxremote.port"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 3: aload 0
ldc "com.sun.management.enableThreadContentionMonitoring"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
4: astore 4
start local 4 5: aload 4
ifnull 8
6: invokestatic java.lang.management.ManagementFactory.getThreadMXBean:()Ljava/lang/management/ThreadMXBean;
7: iconst_1
invokeinterface java.lang.management.ThreadMXBean.setThreadContentionMonitoringEnabled:(Z)V
8: StackMap locals: java.util.Properties java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 1
ifnull 10
9: aload 1
aload 0
invokestatic sun.management.Agent.loadSnmpAgent:(Ljava/lang/String;Ljava/util/Properties;)V
10: StackMap locals:
StackMap stack:
aload 2
ifnonnull 11
aload 3
ifnull 22
11: StackMap locals:
StackMap stack:
aload 3
ifnull 15
12: aload 3
aload 0
invokestatic sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer:(Ljava/lang/String;Ljava/util/Properties;)Ljavax/management/remote/JMXConnectorServer;
13: putstatic sun.management.Agent.jmxServer:Ljavax/management/remote/JMXConnectorServer;
14: aload 0
invokestatic sun.management.Agent.startDiscoveryService:(Ljava/util/Properties;)V
15: StackMap locals:
StackMap stack:
invokestatic sun.management.Agent.startLocalManagementAgent:()V
16: goto 22
StackMap locals:
StackMap stack: sun.management.AgentConfigurationError
17: astore 5
start local 5 18: aload 5
invokevirtual sun.management.AgentConfigurationError.getError:()Ljava/lang/String;
aload 5
invokevirtual sun.management.AgentConfigurationError.getParams:()[Ljava/lang/String;
invokestatic sun.management.Agent.error:(Ljava/lang/String;[Ljava/lang/String;)V
end local 5 19: goto 22
20: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 21: aload 5
invokestatic sun.management.Agent.error:(Ljava/lang/Exception;)V
end local 5 22: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 props Ljava/util/Properties;
1 23 1 snmpPort Ljava/lang/String;
2 23 2 jmxremote Ljava/lang/String;
3 23 3 jmxremotePort Ljava/lang/String;
5 23 4 enableThreadContentionMonitoring Ljava/lang/String;
18 19 5 e Lsun/management/AgentConfigurationError;
21 22 5 e Ljava/lang/Exception;
Exception table:
from to target type
8 16 17 Class sun.management.AgentConfigurationError
8 16 20 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
props
private static void startDiscoveryService(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=14, args_size=1
start local 0 0: aload 0
ldc "com.sun.management.jdp.port"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 0
ldc "com.sun.management.jdp.address"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 0
ldc "com.sun.management.jmxremote.autodiscovery"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: aload 3
ifnonnull 9
5: aload 1
ifnull 6
iconst_1
goto 7
StackMap locals: java.util.Properties java.lang.String java.lang.String java.lang.String int
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 4
8: goto 13
9: StackMap locals:
StackMap stack:
aload 3
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
istore 4
10: goto 13
StackMap locals:
StackMap stack: java.lang.NumberFormatException
11: pop
12: new sun.management.AgentConfigurationError
dup
ldc "Couldn't parse autodiscovery argument"
invokespecial sun.management.AgentConfigurationError.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
iload 4
ifeq 44
14: aload 2
ifnonnull 16
15: ldc "224.0.23.178"
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
goto 17
StackMap locals:
StackMap stack:
16: aload 2
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
17: StackMap locals:
StackMap stack: java.net.InetAddress
astore 5
start local 5 18: goto 21
end local 5 StackMap locals:
StackMap stack: java.net.UnknownHostException
19: astore 6
start local 6 20: new sun.management.AgentConfigurationError
dup
ldc "Unable to broadcast to requested address"
aload 6
invokespecial sun.management.AgentConfigurationError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 start local 5 21: StackMap locals: java.net.InetAddress
StackMap stack:
sipush 7095
istore 6
start local 6 22: aload 1
ifnull 27
23: aload 1
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 6
24: goto 27
StackMap locals: java.util.Properties java.lang.String java.lang.String java.lang.String int java.net.InetAddress int
StackMap stack: java.lang.NumberFormatException
25: pop
26: new sun.management.AgentConfigurationError
dup
ldc "Couldn't parse JDP port argument"
invokespecial sun.management.AgentConfigurationError.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
aload 0
ldc "com.sun.management.jmxremote.port"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 28: aload 0
ldc "com.sun.management.jmxremote.rmi.port"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 8
start local 8 29: getstatic sun.management.Agent.jmxServer:Ljavax/management/remote/JMXConnectorServer;
invokevirtual javax.management.remote.JMXConnectorServer.getAddress:()Ljavax/management/remote/JMXServiceURL;
astore 9
start local 9 30: aload 9
invokevirtual javax.management.remote.JMXServiceURL.getHost:()Ljava/lang/String;
astore 10
start local 10 31: aload 8
ifnull 36
32: ldc "service:jmx:rmi://%s:%s/jndi/rmi://%s:%s/jmxrmi"
iconst_4
anewarray java.lang.Object
dup
iconst_0
33: aload 10
aastore
dup
iconst_1
aload 8
aastore
dup
iconst_2
aload 10
aastore
dup
iconst_3
aload 7
aastore
34: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
35: goto 38
36: StackMap locals: java.util.Properties java.lang.String java.lang.String java.lang.String int java.net.InetAddress int java.lang.String java.lang.String javax.management.remote.JMXServiceURL java.lang.String
StackMap stack:
ldc "service:jmx:rmi:///jndi/rmi://%s:%s/jmxrmi"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 10
aastore
dup
iconst_1
aload 7
aastore
37: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
38: StackMap locals:
StackMap stack: java.lang.String
astore 11
start local 11 39: ldc "com.sun.management.jdp.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 12
start local 12 40: aload 5
iload 6
aload 12
aload 11
invokestatic sun.management.jdp.JdpController.startDiscoveryService:(Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;)V
41: goto 44
42: StackMap locals: java.util.Properties java.lang.String java.lang.String java.lang.String int java.net.InetAddress int java.lang.String java.lang.String javax.management.remote.JMXServiceURL java.lang.String java.lang.String java.lang.String
StackMap stack: sun.management.jdp.JdpException
astore 13
start local 13 43: new sun.management.AgentConfigurationError
dup
ldc "Couldn't start JDP service"
aload 13
invokespecial sun.management.AgentConfigurationError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 44: StackMap locals: java.util.Properties java.lang.String java.lang.String java.lang.String int
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 props Ljava/util/Properties;
1 45 1 discoveryPort Ljava/lang/String;
2 45 2 discoveryAddress Ljava/lang/String;
3 45 3 discoveryShouldStart Ljava/lang/String;
4 45 4 shouldStart Z
18 19 5 address Ljava/net/InetAddress;
21 44 5 address Ljava/net/InetAddress;
20 21 6 e Ljava/net/UnknownHostException;
22 44 6 port I
28 44 7 jmxremotePort Ljava/lang/String;
29 44 8 rmiPort Ljava/lang/String;
30 44 9 url Ljavax/management/remote/JMXServiceURL;
31 44 10 hostname Ljava/lang/String;
39 44 11 jmxUrlStr Ljava/lang/String;
40 44 12 instanceName Ljava/lang/String;
43 44 13 e Lsun/management/jdp/JdpException;
Exception table:
from to target type
9 10 11 Class java.lang.NumberFormatException
14 18 19 Class java.net.UnknownHostException
23 24 25 Class java.lang.NumberFormatException
40 41 42 Class sun.management.jdp.JdpException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
props
public static java.util.Properties loadManagementProperties();
descriptor: ()Ljava/util/Properties;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=0
0: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 0
start local 0 1: ldc "com.sun.management.config.file"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 2: aload 1
aload 0
invokestatic sun.management.Agent.readConfiguration:(Ljava/lang/String;Ljava/util/Properties;)V
3: invokestatic java.lang.System.getProperties:()Ljava/util/Properties;
astore 2
start local 2 4: aload 2
dup
astore 3
monitorenter
5: aload 0
aload 2
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
6: aload 3
monitorexit
7: goto 10
StackMap locals: java.util.Properties java.lang.String java.util.Properties java.util.Properties
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 11 0 props Ljava/util/Properties;
2 11 1 fname Ljava/lang/String;
4 11 2 sysProps Ljava/util/Properties;
Exception table:
from to target type
5 7 8 any
8 9 8 any
public static synchronized java.util.Properties getManagementProperties();
descriptor: ()Ljava/util/Properties;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=4, args_size=0
0: getstatic sun.management.Agent.mgmtProps:Ljava/util/Properties;
ifnonnull 9
1: ldc "com.sun.management.config.file"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 2: ldc "com.sun.management.snmp.port"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 3: ldc "com.sun.management.jmxremote"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 4: ldc "com.sun.management.jmxremote.port"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 5: aload 0
ifnonnull 8
aload 1
ifnonnull 8
6: aload 2
ifnonnull 8
aload 3
ifnonnull 8
7: aconst_null
areturn
8: StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack:
invokestatic sun.management.Agent.loadManagementProperties:()Ljava/util/Properties;
putstatic sun.management.Agent.mgmtProps:Ljava/util/Properties;
end local 3 end local 2 end local 1 end local 0 9: StackMap locals:
StackMap stack:
getstatic sun.management.Agent.mgmtProps:Ljava/util/Properties;
areturn
LocalVariableTable:
Start End Slot Name Signature
2 9 0 configFile Ljava/lang/String;
3 9 1 snmpPort Ljava/lang/String;
4 9 2 jmxremote Ljava/lang/String;
5 9 3 jmxremotePort Ljava/lang/String;
private static void loadSnmpAgent(java.lang.String, java.util.Properties);
descriptor: (Ljava/lang/String;Ljava/util/Properties;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: ldc "sun.management.snmp.AdaptorBootstrap"
iconst_1
aconst_null
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
1: astore 2
start local 2 2: aload 2
ldc "initialize"
iconst_2
anewarray java.lang.Class
dup
iconst_0
3: ldc Ljava/lang/String;
aastore
dup
iconst_1
ldc Ljava/util/Properties;
aastore
4: invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
5: astore 3
start local 3 6: aload 3
aconst_null
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 1
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 end local 2 7: goto 17
StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
8: astore 2
start local 2 9: new java.lang.UnsupportedOperationException
dup
ldc "Unsupported management property: com.sun.management.snmp.port"
aload 2
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 2
start local 2 11: aload 2
invokevirtual java.lang.reflect.InvocationTargetException.getCause:()Ljava/lang/Throwable;
astore 3
start local 3 12: aload 3
instanceof java.lang.RuntimeException
ifeq 14
13: aload 3
checkcast java.lang.RuntimeException
athrow
14: StackMap locals: java.lang.reflect.InvocationTargetException java.lang.Throwable
StackMap stack:
aload 3
instanceof java.lang.Error
ifeq 16
15: aload 3
checkcast java.lang.Error
athrow
16: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "Unsupported management property: com.sun.management.snmp.port"
aload 3
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 snmpPort Ljava/lang/String;
0 18 1 props Ljava/util/Properties;
2 7 2 adaptorClass Ljava/lang/Class<*>;
6 7 3 initializeMethod Ljava/lang/reflect/Method;
9 10 2 x Ljava/lang/ReflectiveOperationException;
11 17 2 x Ljava/lang/reflect/InvocationTargetException;
12 17 3 cause Ljava/lang/Throwable;
Exception table:
from to target type
0 7 8 Class java.lang.ClassNotFoundException
0 7 8 Class java.lang.NoSuchMethodException
0 7 8 Class java.lang.IllegalAccessException
0 7 10 Class java.lang.reflect.InvocationTargetException
MethodParameters:
Name Flags
snmpPort
props
private static void readConfiguration(java.lang.String, java.util.Properties);
descriptor: (Ljava/lang/String;Ljava/util/Properties;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 9
1: ldc "java.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 4
3: new java.lang.Error
dup
ldc "Can't find java.home ??"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuffer
dup
aload 2
invokespecial java.lang.StringBuffer.<init>:(Ljava/lang/String;)V
astore 3
start local 3 5: aload 3
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
ldc "lib"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
6: aload 3
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
ldc "management"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
7: aload 3
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
ldc "management.properties"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
8: aload 3
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
astore 0
end local 3 end local 2 9: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 10: aload 2
invokevirtual java.io.File.exists:()Z
ifne 12
11: ldc "agent.err.configfile.notfound"
aload 0
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
12: StackMap locals: java.io.File
StackMap stack:
aconst_null
astore 3
start local 3 13: new java.io.FileInputStream
dup
aload 2
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 3
14: new java.io.BufferedInputStream
dup
aload 3
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
astore 4
start local 4 15: aload 1
aload 4
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
end local 4 16: goto 45
StackMap locals: java.lang.String java.util.Properties java.io.File java.io.InputStream
StackMap stack: java.io.FileNotFoundException
17: astore 4
start local 4 18: ldc "agent.err.configfile.failed"
aload 4
invokevirtual java.io.FileNotFoundException.getMessage:()Ljava/lang/String;
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
end local 4 19: aload 3
ifnull 50
20: aload 3
invokevirtual java.io.InputStream.close:()V
21: goto 50
StackMap locals:
StackMap stack: java.io.IOException
22: pop
23: ldc "agent.err.configfile.closed.failed"
aload 0
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
goto 50
24: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 25: ldc "agent.err.configfile.failed"
aload 4
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
end local 4 26: aload 3
ifnull 50
27: aload 3
invokevirtual java.io.InputStream.close:()V
28: goto 50
StackMap locals:
StackMap stack: java.io.IOException
29: pop
30: ldc "agent.err.configfile.closed.failed"
aload 0
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
goto 50
31: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
32: ldc "agent.err.configfile.access.denied"
aload 0
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
33: aload 3
ifnull 50
34: aload 3
invokevirtual java.io.InputStream.close:()V
35: goto 50
StackMap locals:
StackMap stack: java.io.IOException
36: pop
37: ldc "agent.err.configfile.closed.failed"
aload 0
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
goto 50
38: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
39: aload 3
ifnull 44
40: aload 3
invokevirtual java.io.InputStream.close:()V
41: goto 44
StackMap locals: java.lang.String java.util.Properties java.io.File java.io.InputStream top java.lang.Throwable
StackMap stack: java.io.IOException
42: pop
43: ldc "agent.err.configfile.closed.failed"
aload 0
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
44: StackMap locals:
StackMap stack:
aload 5
athrow
45: StackMap locals: java.lang.String java.util.Properties java.io.File java.io.InputStream
StackMap stack:
aload 3
ifnull 50
46: aload 3
invokevirtual java.io.InputStream.close:()V
47: goto 50
StackMap locals:
StackMap stack: java.io.IOException
48: pop
49: ldc "agent.err.configfile.closed.failed"
aload 0
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
50: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 fname Ljava/lang/String;
0 51 1 p Ljava/util/Properties;
2 9 2 home Ljava/lang/String;
5 9 3 defaultFileName Ljava/lang/StringBuffer;
10 51 2 configFile Ljava/io/File;
13 51 3 in Ljava/io/InputStream;
15 16 4 bin Ljava/io/BufferedInputStream;
18 19 4 e Ljava/io/FileNotFoundException;
25 26 4 e Ljava/io/IOException;
Exception table:
from to target type
13 16 17 Class java.io.FileNotFoundException
20 21 22 Class java.io.IOException
13 16 24 Class java.io.IOException
27 28 29 Class java.io.IOException
13 16 31 Class java.lang.SecurityException
34 35 36 Class java.io.IOException
13 19 38 any
24 26 38 any
31 33 38 any
40 41 42 Class java.io.IOException
46 47 48 Class java.io.IOException
MethodParameters:
Name Flags
fname
p
public static void startAgent();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=0
0: ldc "com.sun.management.agent.class"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: aload 0
ifnonnull 6
2: invokestatic sun.management.Agent.getManagementProperties:()Ljava/util/Properties;
astore 1
start local 1 3: aload 1
ifnull 5
4: aload 1
invokestatic sun.management.Agent.startAgent:(Ljava/util/Properties;)V
5: StackMap locals: java.lang.String java.util.Properties
StackMap stack:
return
end local 1 6: StackMap locals:
StackMap stack:
aload 0
ldc ":"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 7: aload 1
arraylength
iconst_1
if_icmplt 8
aload 1
arraylength
iconst_2
if_icmple 9
8: StackMap locals: java.lang.String[]
StackMap stack:
ldc "agent.err.invalid.agentclass"
new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
aload 1
iconst_0
aaload
astore 2
start local 2 10: aload 1
arraylength
iconst_2
if_icmpne 11
aload 1
iconst_1
aaload
goto 12
StackMap locals: java.lang.String
StackMap stack:
11: aconst_null
StackMap locals:
StackMap stack: java.lang.String
12: astore 3
start local 3 13: aload 2
ifnull 14
aload 2
invokevirtual java.lang.String.length:()I
ifne 15
14: StackMap locals: java.lang.String
StackMap stack:
ldc "agent.err.invalid.agentclass"
new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
aload 2
ifnull 36
16: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
aload 2
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 4
start local 4 17: aload 4
ldc "premain"
18: iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
19: invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 5
start local 5 20: aload 5
aconst_null
21: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
22: invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 4 23: goto 36
StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
24: pop
25: ldc "agent.err.agentclass.notfound"
new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
goto 36
26: StackMap locals:
StackMap stack: java.lang.NoSuchMethodException
pop
27: ldc "agent.err.premain.notfound"
new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
goto 36
28: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
29: ldc "agent.err.agentclass.access.denied"
invokestatic sun.management.Agent.error:(Ljava/lang/String;)V
goto 36
30: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 31: aload 4
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
ifnonnull 33
32: aload 4
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
goto 34
33: StackMap locals: java.lang.Exception
StackMap stack:
aload 4
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
34: StackMap locals:
StackMap stack: java.lang.String
astore 5
start local 5 35: ldc "agent.err.agentclass.failed"
aload 5
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
end local 5 end local 4 36: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 37 0 prop Ljava/lang/String;
3 6 1 props Ljava/util/Properties;
7 37 1 values [Ljava/lang/String;
10 37 2 cname Ljava/lang/String;
13 37 3 args Ljava/lang/String;
17 23 4 clz Ljava/lang/Class<*>;
20 23 5 premain Ljava/lang/reflect/Method;
31 36 4 ex Ljava/lang/Exception;
35 36 5 msg Ljava/lang/String;
Exception table:
from to target type
16 23 24 Class java.lang.ClassNotFoundException
16 23 26 Class java.lang.NoSuchMethodException
16 23 28 Class java.lang.SecurityException
16 23 30 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
public static void error(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic sun.management.Agent.getText:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "agent.err.error"
invokestatic sun.management.Agent.getText:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
2: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 key Ljava/lang/String;
1 3 1 keyText Ljava/lang/String;
MethodParameters:
Name Flags
key
public static void error(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
arraylength
ifne 3
1: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.management.Agent.error:(Ljava/lang/String;)V
2: goto 10
3: StackMap locals:
StackMap stack:
new java.lang.StringBuffer
dup
aload 1
iconst_0
aaload
invokespecial java.lang.StringBuffer.<init>:(Ljava/lang/String;)V
astore 2
start local 2 4: iconst_1
istore 3
start local 3 5: goto 8
6: StackMap locals: java.lang.StringBuffer int
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
iload 3
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 1
arraylength
if_icmplt 6
end local 3 9: aload 0
aload 2
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 key Ljava/lang/String;
0 11 1 params [Ljava/lang/String;
4 10 2 message Ljava/lang/StringBuffer;
5 9 3 i I
MethodParameters:
Name Flags
key
params
public static void error(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.management.Agent.getText:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "agent.err.error"
invokestatic sun.management.Agent.getText:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
2: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc ": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: new java.lang.RuntimeException
dup
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 key Ljava/lang/String;
0 4 1 message Ljava/lang/String;
1 4 2 keyText Ljava/lang/String;
MethodParameters:
Name Flags
key
message
public static void error(java.lang.Exception);
descriptor: (Ljava/lang/Exception;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Exception.printStackTrace:()V
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "agent.err.exception"
invokestatic sun.management.Agent.getText:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: new java.lang.RuntimeException
dup
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 e Ljava/lang/Exception;
MethodParameters:
Name Flags
e
public static void warning(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "agent.err.warning"
invokestatic sun.management.Agent.getText:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokestatic sun.management.Agent.getText:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc ": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 key Ljava/lang/String;
0 3 1 message Ljava/lang/String;
MethodParameters:
Name Flags
key
message
private static void initResource();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc "sun.management.resources.agent"
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
1: putstatic sun.management.Agent.messageRB:Ljava/util/ResourceBundle;
2: goto 5
StackMap locals:
StackMap stack: java.util.MissingResourceException
3: pop
4: new java.lang.Error
dup
ldc "Fatal: Resource for management agent is missing"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
0 2 3 Class java.util.MissingResourceException
public static java.lang.String getText(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic sun.management.Agent.messageRB:Ljava/util/ResourceBundle;
ifnonnull 2
1: invokestatic sun.management.Agent.initResource:()V
2: StackMap locals:
StackMap stack:
getstatic sun.management.Agent.messageRB:Ljava/util/ResourceBundle;
aload 0
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
3: areturn
4: StackMap locals:
StackMap stack: java.util.MissingResourceException
pop
5: new java.lang.StringBuilder
dup
ldc "Missing management agent resource bundle: key = \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 key Ljava/lang/String;
Exception table:
from to target type
2 3 4 Class java.util.MissingResourceException
MethodParameters:
Name Flags
key
public static java.lang.String getText(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic sun.management.Agent.messageRB:Ljava/util/ResourceBundle;
ifnonnull 2
1: invokestatic sun.management.Agent.initResource:()V
2: StackMap locals:
StackMap stack:
getstatic sun.management.Agent.messageRB:Ljava/util/ResourceBundle;
aload 0
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
ifnonnull 7
4: new java.lang.StringBuilder
dup
ldc "missing resource key: key = \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc "arguments = \"{0}\", \"{1}\", \"{2}\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
7: StackMap locals: java.lang.String
StackMap stack:
aload 2
aload 1
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 key Ljava/lang/String;
0 8 1 args [Ljava/lang/String;
3 8 2 format Ljava/lang/String;
MethodParameters:
Name Flags
key
args
}
SourceFile: "Agent.java"