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: .line 46
            iconst_m1
            putstatic sun.tools.jstatd.Jstatd.port:I
         1: .line 47
            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 // sun.tools.jstatd.Jstatd this
         0: .line 43
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.tools.jstatd.Jstatd this
      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: .line 50
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "usage: jstatd [-nr] [-p port] [-n rminame]\n       jstatd -?|-h|--help"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         1: .line 52
            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=2, locals=4, args_size=2
        start local 0 // java.lang.String name
        start local 1 // sun.tools.jstatd.RemoteHostImpl remoteHost
         0: .line 58
            aload 0 /* name */
            aload 1 /* remoteHost */
            invokestatic java.rmi.Naming.rebind:(Ljava/lang/String;Ljava/rmi/Remote;)V
         1: .line 59
            goto 11
      StackMap locals:
      StackMap stack: java.rmi.ConnectException
         2: astore 2 /* e */
        start local 2 // java.rmi.ConnectException e
         3: .line 64
            getstatic sun.tools.jstatd.Jstatd.startRegistry:Z
            ifeq 10
            getstatic sun.tools.jstatd.Jstatd.registry:Ljava/rmi/registry/Registry;
            ifnonnull 10
         4: .line 65
            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 /* localport */
        start local 3 // int localport
         7: .line 66
            iload 3 /* localport */
            invokestatic java.rmi.registry.LocateRegistry.createRegistry:(I)Ljava/rmi/registry/Registry;
            putstatic sun.tools.jstatd.Jstatd.registry:Ljava/rmi/registry/Registry;
         8: .line 67
            aload 0 /* name */
            aload 1 /* remoteHost */
            invokestatic sun.tools.jstatd.Jstatd.bind:(Ljava/lang/String;Lsun/tools/jstatd/RemoteHostImpl;)V
        end local 3 // int localport
         9: .line 68
            goto 11
        10: .line 69
      StackMap locals:
      StackMap stack:
            aload 2 /* e */
            athrow
        end local 2 // java.rmi.ConnectException e
        11: .line 72
      StackMap locals:
      StackMap stack:
            return
        end local 1 // sun.tools.jstatd.RemoteHostImpl remoteHost
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   12     0        name  Ljava/lang/String;
            0   12     1  remoteHost  Lsun/tools/jstatd/RemoteHostImpl;
            3   11     2           e  Ljava/rmi/ConnectException;
            7    9     3   localport  I
      Exception table:
        from    to  target  type
           0     1       2  Class java.rmi.ConnectException
    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 // java.lang.String[] args
         0: .line 76
            aconst_null
            astore 1 /* rminame */
        start local 1 // java.lang.String rminame
         1: .line 77
            iconst_0
            istore 2 /* argc */
        start local 2 // int argc
         2: .line 79
            goto 36
         3: .line 80
      StackMap locals: java.lang.String int
      StackMap stack:
            aload 0 /* args */
            iload 2 /* argc */
            aaload
            astore 3 /* arg */
        start local 3 // java.lang.String arg
         4: .line 82
            aload 3 /* arg */
            ldc "-?"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifeq 7
         5: .line 83
            aload 3 /* arg */
            ldc "-h"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifeq 7
         6: .line 84
            aload 3 /* arg */
            ldc "--help"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifne 10
         7: .line 85
      StackMap locals: java.lang.String
      StackMap stack:
            invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
         8: .line 86
            iconst_0
            invokestatic java.lang.System.exit:(I)V
         9: .line 87
            goto 35
      StackMap locals:
      StackMap stack:
        10: aload 3 /* arg */
            ldc "-nr"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifne 13
        11: .line 88
            iconst_0
            putstatic sun.tools.jstatd.Jstatd.startRegistry:Z
        12: .line 89
            goto 35
      StackMap locals:
      StackMap stack:
        13: aload 3 /* arg */
            ldc "-p"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 23
        14: .line 90
            aload 3 /* arg */
            ldc "-p"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifeq 17
        15: .line 91
            aload 3 /* arg */
            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
        16: .line 92
            goto 35
        17: .line 93
      StackMap locals:
      StackMap stack:
            iinc 2 /* argc */ 1
        18: .line 94
            iload 2 /* argc */
            aload 0 /* args */
            arraylength
            if_icmplt 21
        19: .line 95
            invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
        20: .line 96
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        21: .line 98
      StackMap locals:
      StackMap stack:
            aload 0 /* args */
            iload 2 /* argc */
            aaload
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            putstatic sun.tools.jstatd.Jstatd.port:I
        22: .line 100
            goto 35
      StackMap locals:
      StackMap stack:
        23: aload 3 /* arg */
            ldc "-n"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 33
        24: .line 101
            aload 3 /* arg */
            ldc "-n"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifeq 27
        25: .line 102
            aload 3 /* arg */
            iconst_2
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 1 /* rminame */
        26: .line 103
            goto 35
        27: .line 104
      StackMap locals:
      StackMap stack:
            iinc 2 /* argc */ 1
        28: .line 105
            iload 2 /* argc */
            aload 0 /* args */
            arraylength
            if_icmplt 31
        29: .line 106
            invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
        30: .line 107
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        31: .line 109
      StackMap locals:
      StackMap stack:
            aload 0 /* args */
            iload 2 /* argc */
            aaload
            astore 1 /* rminame */
        32: .line 111
            goto 35
        33: .line 112
      StackMap locals:
      StackMap stack:
            invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
        34: .line 113
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        end local 3 // java.lang.String arg
        35: .line 79
      StackMap locals:
      StackMap stack:
            iinc 2 /* argc */ 1
      StackMap locals:
      StackMap stack:
        36: iload 2 /* argc */
            aload 0 /* args */
            arraylength
            if_icmpge 37
            aload 0 /* args */
            iload 2 /* argc */
            aaload
            ldc "-"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 3
        37: .line 117
      StackMap locals:
      StackMap stack:
            iload 2 /* argc */
            aload 0 /* args */
            arraylength
            if_icmpge 40
        38: .line 118
            invokestatic sun.tools.jstatd.Jstatd.printUsage:()V
        39: .line 119
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        40: .line 122
      StackMap locals:
      StackMap stack:
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            ifnonnull 42
        41: .line 123
            new java.rmi.RMISecurityManager
            dup
            invokespecial java.rmi.RMISecurityManager.<init>:()V
            invokestatic java.lang.System.setSecurityManager:(Ljava/lang/SecurityManager;)V
        42: .line 126
      StackMap locals:
      StackMap stack:
            new java.lang.StringBuilder
            dup
            invokespecial java.lang.StringBuilder.<init>:()V
            astore 3 /* name */
        start local 3 // java.lang.StringBuilder name
        43: .line 128
            getstatic sun.tools.jstatd.Jstatd.port:I
            iflt 45
        44: .line 129
            aload 3 /* name */
            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
        45: .line 132
      StackMap locals: java.lang.StringBuilder
      StackMap stack:
            aload 1 /* rminame */
            ifnonnull 47
        46: .line 133
            ldc "JStatRemoteHost"
            astore 1 /* rminame */
        47: .line 136
      StackMap locals:
      StackMap stack:
            aload 3 /* name */
            ldc "/"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 1 /* rminame */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            pop
        48: .line 140
            ldc "java.rmi.server.ignoreSubClasses"
            ldc "true"
            invokestatic java.lang.System.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            pop
        49: .line 141
            new sun.tools.jstatd.RemoteHostImpl
            dup
            invokespecial sun.tools.jstatd.RemoteHostImpl.<init>:()V
            astore 4 /* remoteHost */
        start local 4 // sun.tools.jstatd.RemoteHostImpl remoteHost
        50: .line 143
            aload 4 /* remoteHost */
            iconst_0
        51: .line 142
            invokestatic java.rmi.server.UnicastRemoteObject.exportObject:(Ljava/rmi/Remote;I)Ljava/rmi/Remote;
            checkcast sun.jvmstat.monitor.remote.RemoteHost
            pop
        52: .line 144
            aload 3 /* name */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 4 /* remoteHost */
            invokestatic sun.tools.jstatd.Jstatd.bind:(Ljava/lang/String;Lsun/tools/jstatd/RemoteHostImpl;)V
        53: .line 145
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "jstatd started (bound to "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 3 /* name */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            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;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        54: .line 146
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            invokevirtual java.io.PrintStream.flush:()V
        end local 4 // sun.tools.jstatd.RemoteHostImpl remoteHost
        55: .line 147
            goto 78
      StackMap locals:
      StackMap stack: java.net.MalformedURLException
        56: astore 4 /* e */
        start local 4 // java.net.MalformedURLException e
        57: .line 148
            aload 1 /* rminame */
            ifnull 60
        58: .line 149
            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 /* rminame */
            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
        59: .line 150
            goto 61
        60: .line 151
      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 /* name */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        61: .line 153
      StackMap locals:
      StackMap stack:
            aload 4 /* e */
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            invokevirtual java.net.MalformedURLException.printStackTrace:(Ljava/io/PrintStream;)V
        62: .line 154
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        end local 4 // java.net.MalformedURLException e
        63: goto 78
        64: .line 155
      StackMap locals: java.lang.String[] java.lang.String int java.lang.StringBuilder
      StackMap stack: java.rmi.ConnectException
            astore 4 /* e */
        start local 4 // java.rmi.ConnectException e
        65: .line 157
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Could not contact RMI registry"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        66: .line 158
            aload 4 /* e */
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            invokevirtual java.rmi.ConnectException.printStackTrace:(Ljava/io/PrintStream;)V
        67: .line 159
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        end local 4 // java.rmi.ConnectException e
        68: goto 78
        69: .line 160
      StackMap locals:
      StackMap stack: java.rmi.RemoteException
            astore 4 /* e */
        start local 4 // java.rmi.RemoteException e
        70: .line 161
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "Could not bind "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 3 /* name */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)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
        71: .line 162
            aload 4 /* e */
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            invokevirtual java.rmi.RemoteException.printStackTrace:(Ljava/io/PrintStream;)V
        72: .line 163
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        end local 4 // java.rmi.RemoteException e
        73: goto 78
        74: .line 164
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 4 /* e */
        start local 4 // java.lang.Exception e
        75: .line 165
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Could not create remote object"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        76: .line 166
            aload 4 /* e */
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintStream;)V
        77: .line 167
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        end local 4 // java.lang.Exception e
        78: .line 169
      StackMap locals:
      StackMap stack:
            return
        end local 3 // java.lang.StringBuilder name
        end local 2 // int argc
        end local 1 // java.lang.String rminame
        end local 0 // java.lang.String[] args
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   79     0        args  [Ljava/lang/String;
            1   79     1     rminame  Ljava/lang/String;
            2   79     2        argc  I
            4   35     3         arg  Ljava/lang/String;
           43   79     3        name  Ljava/lang/StringBuilder;
           50   55     4  remoteHost  Lsun/tools/jstatd/RemoteHostImpl;
           57   63     4           e  Ljava/net/MalformedURLException;
           65   68     4           e  Ljava/rmi/ConnectException;
           70   73     4           e  Ljava/rmi/RemoteException;
           75   78     4           e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
          48    55      56  Class java.net.MalformedURLException
          48    55      64  Class java.rmi.ConnectException
          48    55      69  Class java.rmi.RemoteException
          48    55      74  Class java.lang.Exception
    MethodParameters:
      Name  Flags
      args  
}
SourceFile: "Jstatd.java"