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

  private static sun.jvmstat.monitor.remote.RemoteHost remoteHost;
    descriptor: Lsun/jvmstat/monitor/remote/RemoteHost;
    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
         2: .line 48
            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 51
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "usage: jstatd [-nr] [-p port] [-r rmiport] [-n rminame]\n       jstatd -?|-h|--help"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         1: .line 53
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

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