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 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"
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;
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=3, locals=7, 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:
new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 1
start local 1 3: aload 0
ifnull 20
4: aload 0
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 5: iconst_0
istore 3
start local 3 6: goto 19
7: StackMap locals: java.util.Properties java.lang.String[] int
StackMap stack:
aload 2
iload 3
aaload
ldc "="
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 4
start local 4 8: aload 4
arraylength
iconst_1
if_icmplt 18
aload 4
arraylength
iconst_2
if_icmpgt 18
9: aload 4
iconst_0
aaload
astore 5
start local 5 10: aload 4
arraylength
iconst_1
if_icmpne 11
ldc ""
goto 12
StackMap locals: java.lang.String[] java.lang.String
StackMap stack:
11: aload 4
iconst_1
aaload
StackMap locals:
StackMap stack: java.lang.String
12: astore 6
start local 6 13: aload 5
ifnull 18
aload 5
invokevirtual java.lang.String.length:()I
ifle 18
14: aload 5
ldc "com.sun.management."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
15: aload 1
aload 5
aload 6
invokevirtual java.util.Properties.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
pop
16: goto 18
17: StackMap locals: java.lang.String
StackMap stack:
ldc "agent.err.invalid.option"
aload 5
invokestatic sun.management.Agent.error:(Ljava/lang/String;Ljava/lang/String;)V
end local 6 end local 5 end local 4 18: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
19: iload 3
aload 2
arraylength
if_icmplt 7
end local 3 end local 2 20: StackMap locals:
StackMap stack:
new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 2
start local 2 21: aload 1
ldc "com.sun.management.config.file"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 22: aload 3
aload 2
invokestatic sun.management.Agent.readConfiguration:(Ljava/lang/String;Ljava/util/Properties;)V
23: aload 2
aload 1
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
24: aload 2
invokestatic sun.management.Agent.startAgent:(Ljava/util/Properties;)V
25: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 args Ljava/lang/String;
3 26 1 arg_props Ljava/util/Properties;
5 20 2 options [Ljava/lang/String;
6 20 3 i I
8 18 4 option [Ljava/lang/String;
10 18 5 name Ljava/lang/String;
13 18 6 value Ljava/lang/String;
21 26 2 config_props Ljava/util/Properties;
22 26 3 fname Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
private static void startAgent(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=9, 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 28
11: StackMap locals:
StackMap stack:
aload 3
ifnull 13
12: aload 3
aload 0
invokestatic sun.management.jmxremote.ConnectorBootstrap.initialize:(Ljava/lang/String;Ljava/util/Properties;)Ljavax/management/remote/JMXConnectorServer;
pop
13: StackMap locals:
StackMap stack:
invokestatic sun.misc.VMSupport.getAgentProperties:()Ljava/util/Properties;
astore 5
start local 5 14: aload 5
ldc "com.sun.management.jmxremote.localConnectorAddress"
invokevirtual java.util.Properties.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnonnull 28
15: invokestatic sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer:()Ljavax/management/remote/JMXConnectorServer;
astore 6
start local 6 16: aload 6
invokevirtual javax.management.remote.JMXConnectorServer.getAddress:()Ljavax/management/remote/JMXServiceURL;
invokevirtual javax.management.remote.JMXServiceURL.toString:()Ljava/lang/String;
astore 7
start local 7 17: aload 5
ldc "com.sun.management.jmxremote.localConnectorAddress"
aload 7
invokevirtual java.util.Properties.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
18: aload 7
invokestatic sun.management.ConnectorAddressLink.export:(Ljava/lang/String;)V
19: goto 28
StackMap locals: java.util.Properties java.lang.String java.lang.String java.lang.String java.lang.String java.util.Properties javax.management.remote.JMXConnectorServer java.lang.String
StackMap stack: java.lang.Exception
20: astore 8
start local 8 21: ldc "agent.err.exportaddress.failed"
aload 8
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokestatic sun.management.Agent.warning:(Ljava/lang/String;Ljava/lang/String;)V
end local 8 end local 7 end local 6 end local 5 22: goto 28
StackMap locals: java.util.Properties java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: sun.management.AgentConfigurationError
23: astore 5
start local 5 24: 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 25: goto 28
26: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 27: aload 5
invokestatic sun.management.Agent.error:(Ljava/lang/Exception;)V
end local 5 28: 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 29 0 props Ljava/util/Properties;
1 29 1 snmpPort Ljava/lang/String;
2 29 2 jmxremote Ljava/lang/String;
3 29 3 jmxremotePort Ljava/lang/String;
5 29 4 enableThreadContentionMonitoring Ljava/lang/String;
14 22 5 agentProps Ljava/util/Properties;
16 22 6 cs Ljavax/management/remote/JMXConnectorServer;
17 22 7 address Ljava/lang/String;
21 22 8 x Ljava/lang/Exception;
24 25 5 e Lsun/management/AgentConfigurationError;
27 28 5 e Ljava/lang/Exception;
Exception table:
from to target type
18 19 20 Class java.lang.Exception
8 22 23 Class sun.management.AgentConfigurationError
8 22 26 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
props
public static java.util.Properties loadManagementProperties();
descriptor: ()Ljava/util/Properties;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, 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: aload 0
invokestatic java.lang.System.getProperties:()Ljava/util/Properties;
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 props Ljava/util/Properties;
2 5 1 fname Ljava/lang/String;
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 21
StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
8: astore 2
start local 2 9: new java.lang.UnsupportedOperationException
dup
ldc "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.NoSuchMethodException
astore 2
start local 2 11: new java.lang.UnsupportedOperationException
dup
ldc "com.sun.management.snmp.port"
aload 2
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 12: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 2
start local 2 13: aload 2
invokevirtual java.lang.reflect.InvocationTargetException.getCause:()Ljava/lang/Throwable;
astore 3
start local 3 14: aload 3
instanceof java.lang.RuntimeException
ifeq 16
15: aload 3
checkcast java.lang.RuntimeException
athrow
16: StackMap locals: java.lang.reflect.InvocationTargetException java.lang.Throwable
StackMap stack:
aload 3
instanceof java.lang.Error
ifeq 18
17: aload 3
checkcast java.lang.Error
athrow
18: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "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 19: StackMap locals: java.lang.String java.util.Properties
StackMap stack: java.lang.IllegalAccessException
astore 2
start local 2 20: new java.lang.UnsupportedOperationException
dup
ldc "com.sun.management.snmp.port"
aload 2
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 21: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 snmpPort Ljava/lang/String;
0 22 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/ClassNotFoundException;
11 12 2 x Ljava/lang/NoSuchMethodException;
13 19 2 x Ljava/lang/reflect/InvocationTargetException;
14 19 3 cause Ljava/lang/Throwable;
20 21 2 x Ljava/lang/IllegalAccessException;
Exception table:
from to target type
0 7 8 Class java.lang.ClassNotFoundException
0 7 10 Class java.lang.NoSuchMethodException
0 7 12 Class java.lang.reflect.InvocationTargetException
0 7 19 Class java.lang.IllegalAccessException
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"