public class sun.tools.jstatd.Jstatd
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jstatd.Jstatd
super_class: java.lang.Object
{
private static java.rmi.registry.Registry registry;
descriptor: Ljava/rmi/registry/Registry;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int port;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static boolean startRegistry;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_m1
putstatic sun.tools.jstatd.Jstatd.port:I
1: iconst_1
putstatic sun.tools.jstatd.Jstatd.startRegistry:Z
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/tools/jstatd/Jstatd;
private static void printUsage();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "usage: jstatd [-nr] [-p port] [-n rminame]"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: return
LocalVariableTable:
Start End Slot Name Signature
static void bind(java.lang.String, sun.tools.jstatd.RemoteHostImpl);
descriptor: (Ljava/lang/String;Lsun/tools/jstatd/RemoteHostImpl;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.rmi.Naming.rebind:(Ljava/lang/String;Ljava/rmi/Remote;)V
1: goto 18
StackMap locals:
StackMap stack: java.rmi.ConnectException
2: astore 2
start local 2 3: getstatic sun.tools.jstatd.Jstatd.startRegistry:Z
ifeq 10
getstatic sun.tools.jstatd.Jstatd.registry:Ljava/rmi/registry/Registry;
ifnonnull 10
4: getstatic sun.tools.jstatd.Jstatd.port:I
ifge 5
sipush 1099
goto 6
StackMap locals: java.rmi.ConnectException
StackMap stack:
5: getstatic sun.tools.jstatd.Jstatd.port:I
StackMap locals:
StackMap stack: int
6: istore 3
start local 3 7: iload 3
invokestatic java.rmi.registry.LocateRegistry.createRegistry:(I)Ljava/rmi/registry/Registry;
putstatic sun.tools.jstatd.Jstatd.registry:Ljava/rmi/registry/Registry;
8: aload 0
aload 1
invokestatic sun.tools.jstatd.Jstatd.bind:(Ljava/lang/String;Lsun/tools/jstatd/RemoteHostImpl;)V
end local 3 9: goto 18
10: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Could not contact registry\n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: aload 2
invokevirtual java.rmi.ConnectException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: aload 2
invokevirtual java.rmi.ConnectException.printStackTrace:()V
end local 2 14: goto 18
15: StackMap locals: java.lang.String sun.tools.jstatd.RemoteHostImpl
StackMap stack: java.rmi.RemoteException
astore 2
start local 2 16: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Could not bind "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " to RMI Registry"
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
17: aload 2
invokevirtual java.rmi.RemoteException.printStackTrace:()V
end local 2 18: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 name Ljava/lang/String;
0 19 1 remoteHost Lsun/tools/jstatd/RemoteHostImpl;
3 14 2 e Ljava/rmi/ConnectException;
7 9 3 localport I
16 18 2 e Ljava/rmi/RemoteException;
Exception table:
from to target type
0 1 2 Class java.rmi.ConnectException
0 1 15 Class java.rmi.RemoteException
Exceptions:
throws java.rmi.RemoteException, java.net.MalformedURLException, java.lang.Exception
MethodParameters:
Name Flags
name
remoteHost
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 30
3: StackMap locals: java.lang.String int
StackMap stack:
aload 0
iload 2
aaload
astore 3
start local 3 4: aload 3
ldc "-nr"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifne 7
5: iconst_0
putstatic sun.tools.jstatd.Jstatd.startRegistry:Z
6: goto 29
StackMap locals: java.lang.String
StackMap stack:
7: aload 3
ldc "-p"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
8: aload 3
ldc "-p"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifeq 11
9: aload 3
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic sun.tools.jstatd.Jstatd.port:I
10: goto 29
11: StackMap locals:
StackMap stack:
iinc 2 1
12: iload 2
aload 0
arraylength
if_icmplt 15
13: invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
14: iconst_1
invokestatic java.lang.System.exit:(I)V
15: StackMap locals:
StackMap stack:
aload 0
iload 2
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic sun.tools.jstatd.Jstatd.port:I
16: goto 29
StackMap locals:
StackMap stack:
17: aload 3
ldc "-n"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 27
18: aload 3
ldc "-n"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifeq 21
19: aload 3
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
20: goto 29
21: StackMap locals:
StackMap stack:
iinc 2 1
22: iload 2
aload 0
arraylength
if_icmplt 25
23: invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
24: iconst_1
invokestatic java.lang.System.exit:(I)V
25: StackMap locals:
StackMap stack:
aload 0
iload 2
aaload
astore 1
26: goto 29
27: StackMap locals:
StackMap stack:
invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
28: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 3 29: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
30: iload 2
aload 0
arraylength
if_icmpge 31
aload 0
iload 2
aaload
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
31: StackMap locals:
StackMap stack:
iload 2
aload 0
arraylength
if_icmpge 34
32: invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
33: iconst_1
invokestatic java.lang.System.exit:(I)V
34: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 36
35: new java.rmi.RMISecurityManager
dup
invokespecial java.rmi.RMISecurityManager.<init>:()V
invokestatic java.lang.System.setSecurityManager:(Ljava/lang/SecurityManager;)V
36: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 37: getstatic sun.tools.jstatd.Jstatd.port:I
iflt 39
38: aload 3
ldc "//:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic sun.tools.jstatd.Jstatd.port:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
39: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
ifnonnull 41
40: ldc "JStatRemoteHost"
astore 1
41: StackMap locals:
StackMap stack:
aload 3
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;
pop
42: ldc "java.rmi.server.ignoreSubClasses"
ldc "true"
invokestatic java.lang.System.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
43: new sun.tools.jstatd.RemoteHostImpl
dup
invokespecial sun.tools.jstatd.RemoteHostImpl.<init>:()V
astore 4
start local 4 44: aload 4
iconst_0
45: invokestatic java.rmi.server.UnicastRemoteObject.exportObject:(Ljava/rmi/Remote;I)Ljava/rmi/Remote;
checkcast sun.jvmstat.monitor.remote.RemoteHost
pop
46: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokestatic sun.tools.jstatd.Jstatd.bind:(Ljava/lang/String;Lsun/tools/jstatd/RemoteHostImpl;)V
end local 4 47: goto 69
StackMap locals:
StackMap stack: java.net.MalformedURLException
48: astore 4
start local 4 49: aload 1
ifnull 52
50: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Bad RMI server name: "
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
51: goto 55
52: StackMap locals: java.net.MalformedURLException
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Bad RMI URL: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " : "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
53: aload 4
invokevirtual java.net.MalformedURLException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
54: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
55: StackMap locals:
StackMap stack:
iconst_1
invokestatic java.lang.System.exit:(I)V
end local 4 56: goto 69
57: StackMap locals: java.lang.String[] java.lang.String int java.lang.StringBuilder
StackMap stack: java.rmi.ConnectException
astore 4
start local 4 58: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Could not contact RMI registry\n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
59: aload 4
invokevirtual java.rmi.ConnectException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
60: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
61: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 4 62: goto 69
63: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 64: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Could not create remote object\n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
65: aload 4
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
66: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
67: aload 4
invokevirtual java.lang.Exception.printStackTrace:()V
68: iconst_1
invokestatic java.lang.System.exit:(I)V
end local 4 69: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 70 0 args [Ljava/lang/String;
1 70 1 rminame Ljava/lang/String;
2 70 2 argc I
4 29 3 arg Ljava/lang/String;
37 70 3 name Ljava/lang/StringBuilder;
44 47 4 remoteHost Lsun/tools/jstatd/RemoteHostImpl;
49 56 4 e Ljava/net/MalformedURLException;
58 62 4 e Ljava/rmi/ConnectException;
64 69 4 e Ljava/lang/Exception;
Exception table:
from to target type
42 47 48 Class java.net.MalformedURLException
42 47 57 Class java.rmi.ConnectException
42 47 63 Class java.lang.Exception
MethodParameters:
Name Flags
args
}
SourceFile: "Jstatd.java"