public class com.sun.jmx.snmp.tasks.ThreadService implements com.sun.jmx.snmp.tasks.TaskServer
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.sun.jmx.snmp.tasks.ThreadService
  super_class: java.lang.Object
{
  private java.util.ArrayList<java.lang.Runnable> jobList;
    descriptor: Ljava/util/ArrayList;
    flags: (0x0002) ACC_PRIVATE
    Signature: Ljava/util/ArrayList<Ljava/lang/Runnable;>;

  private com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread[] threadList;
    descriptor: [Lcom/sun/jmx/snmp/tasks/ThreadService$ExecutorThread;
    flags: (0x0002) ACC_PRIVATE

  private int minThreads;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int currThreds;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int idle;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private boolean terminated;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private int priority;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private java.lang.ThreadGroup threadGroup;
    descriptor: Ljava/lang/ThreadGroup;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.ClassLoader cloader;
    descriptor: Ljava/lang/ClassLoader;
    flags: (0x0002) ACC_PRIVATE

  private static long counter;
    descriptor: J
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  private int addedJobs;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int doneJobs;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 242
            lconst_0
            putstatic com.sun.jmx.snmp.tasks.ThreadService.counter:J
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // com.sun.jmx.snmp.tasks.ThreadService this
        start local 1 // int threadNumber
         0: .line 40
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 230
            aload 0 /* this */
            new java.util.ArrayList
            dup
            iconst_0
            invokespecial java.util.ArrayList.<init>:(I)V
            putfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
         2: .line 233
            aload 0 /* this */
            iconst_1
            putfield com.sun.jmx.snmp.tasks.ThreadService.minThreads:I
         3: .line 234
            aload 0 /* this */
            iconst_0
            putfield com.sun.jmx.snmp.tasks.ThreadService.currThreds:I
         4: .line 235
            aload 0 /* this */
            iconst_0
            putfield com.sun.jmx.snmp.tasks.ThreadService.idle:I
         5: .line 237
            aload 0 /* this */
            iconst_0
            putfield com.sun.jmx.snmp.tasks.ThreadService.terminated:Z
         6: .line 239
            aload 0 /* this */
            new java.lang.ThreadGroup
            dup
            ldc "ThreadService"
            invokespecial java.lang.ThreadGroup.<init>:(Ljava/lang/String;)V
            putfield com.sun.jmx.snmp.tasks.ThreadService.threadGroup:Ljava/lang/ThreadGroup;
         7: .line 244
            aload 0 /* this */
            iconst_1
            putfield com.sun.jmx.snmp.tasks.ThreadService.addedJobs:I
         8: .line 245
            aload 0 /* this */
            iconst_1
            putfield com.sun.jmx.snmp.tasks.ThreadService.doneJobs:I
         9: .line 41
            iload 1 /* threadNumber */
            ifgt 11
        10: .line 42
            new java.lang.IllegalArgumentException
            dup
            ldc "The thread number should bigger than zero."
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 45
      StackMap locals: com.sun.jmx.snmp.tasks.ThreadService int
      StackMap stack:
            aload 0 /* this */
            iload 1 /* threadNumber */
            putfield com.sun.jmx.snmp.tasks.ThreadService.minThreads:I
        12: .line 46
            aload 0 /* this */
            iload 1 /* threadNumber */
            anewarray com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread
            putfield com.sun.jmx.snmp.tasks.ThreadService.threadList:[Lcom/sun/jmx/snmp/tasks/ThreadService$ExecutorThread;
        13: .line 48
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.getPriority:()I
            putfield com.sun.jmx.snmp.tasks.ThreadService.priority:I
        14: .line 49
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
            putfield com.sun.jmx.snmp.tasks.ThreadService.cloader:Ljava/lang/ClassLoader;
        15: .line 51
            return
        end local 1 // int threadNumber
        end local 0 // com.sun.jmx.snmp.tasks.ThreadService this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   16     0          this  Lcom/sun/jmx/snmp/tasks/ThreadService;
            0   16     1  threadNumber  I
    MethodParameters:
              Name  Flags
      threadNumber  

  public void submitTask(com.sun.jmx.snmp.tasks.Task);
    descriptor: (Lcom/sun/jmx/snmp/tasks/Task;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.sun.jmx.snmp.tasks.ThreadService this
        start local 1 // com.sun.jmx.snmp.tasks.Task task
         0: .line 67
            aload 0 /* this */
            aload 1 /* task */
            invokevirtual com.sun.jmx.snmp.tasks.ThreadService.submitTask:(Ljava/lang/Runnable;)V
         1: .line 68
            return
        end local 1 // com.sun.jmx.snmp.tasks.Task task
        end local 0 // com.sun.jmx.snmp.tasks.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/jmx/snmp/tasks/ThreadService;
            0    2     1  task  Lcom/sun/jmx/snmp/tasks/Task;
    Exceptions:
      throws java.lang.IllegalArgumentException
    MethodParameters:
      Name  Flags
      task  

  public void submitTask(java.lang.Runnable);
    descriptor: (Ljava/lang/Runnable;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.sun.jmx.snmp.tasks.ThreadService this
        start local 1 // java.lang.Runnable task
         0: .line 78
            aload 0 /* this */
            invokevirtual com.sun.jmx.snmp.tasks.ThreadService.stateCheck:()V
         1: .line 80
            aload 1 /* task */
            ifnonnull 3
         2: .line 81
            new java.lang.IllegalArgumentException
            dup
            ldc "No task specified."
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 84
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            dup
            astore 2
            monitorenter
         4: .line 85
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            invokevirtual java.util.ArrayList.size:()I
            aload 1 /* task */
            invokevirtual java.util.ArrayList.add:(ILjava/lang/Object;)V
         5: .line 87
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            invokevirtual java.lang.Object.notify:()V
         6: .line 84
            aload 2
            monitorexit
         7: goto 10
      StackMap locals: com.sun.jmx.snmp.tasks.ThreadService java.lang.Runnable java.util.ArrayList
      StackMap stack: java.lang.Throwable
         8: aload 2
            monitorexit
         9: athrow
        10: .line 90
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.sun.jmx.snmp.tasks.ThreadService.createThread:()V
        11: .line 91
            return
        end local 1 // java.lang.Runnable task
        end local 0 // com.sun.jmx.snmp.tasks.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   12     0  this  Lcom/sun/jmx/snmp/tasks/ThreadService;
            0   12     1  task  Ljava/lang/Runnable;
      Exception table:
        from    to  target  type
           4     7       8  any
           8     9       8  any
    Exceptions:
      throws java.lang.IllegalArgumentException
    MethodParameters:
      Name  Flags
      task  

  public java.lang.Runnable removeTask(java.lang.Runnable);
    descriptor: (Ljava/lang/Runnable;)Ljava/lang/Runnable;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=5, args_size=2
        start local 0 // com.sun.jmx.snmp.tasks.ThreadService this
        start local 1 // java.lang.Runnable task
         0: .line 94
            aload 0 /* this */
            invokevirtual com.sun.jmx.snmp.tasks.ThreadService.stateCheck:()V
         1: .line 96
            aconst_null
            astore 2 /* removed */
        start local 2 // java.lang.Runnable removed
         2: .line 97
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            dup
            astore 3
            monitorenter
         3: .line 98
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            aload 1 /* task */
            invokevirtual java.util.ArrayList.indexOf:(Ljava/lang/Object;)I
            istore 4 /* lg */
        start local 4 // int lg
         4: .line 99
            iload 4 /* lg */
            iflt 6
         5: .line 100
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            iload 4 /* lg */
            invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
            checkcast java.lang.Runnable
            astore 2 /* removed */
        end local 4 // int lg
         6: .line 97
      StackMap locals: java.lang.Runnable java.util.ArrayList
      StackMap stack:
            aload 3
            monitorexit
         7: goto 10
      StackMap locals:
      StackMap stack: java.lang.Throwable
         8: aload 3
            monitorexit
         9: athrow
        10: .line 103
      StackMap locals:
      StackMap stack:
            aload 2 /* removed */
            ifnull 12
            aload 2 /* removed */
            instanceof com.sun.jmx.snmp.tasks.Task
            ifeq 12
        11: .line 104
            aload 2 /* removed */
            checkcast com.sun.jmx.snmp.tasks.Task
            invokeinterface com.sun.jmx.snmp.tasks.Task.cancel:()V
        12: .line 105
      StackMap locals:
      StackMap stack:
            aload 2 /* removed */
            areturn
        end local 2 // java.lang.Runnable removed
        end local 1 // java.lang.Runnable task
        end local 0 // com.sun.jmx.snmp.tasks.ThreadService this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   13     0     this  Lcom/sun/jmx/snmp/tasks/ThreadService;
            0   13     1     task  Ljava/lang/Runnable;
            2   13     2  removed  Ljava/lang/Runnable;
            4    6     4       lg  I
      Exception table:
        from    to  target  type
           3     7       8  any
           8     9       8  any
    MethodParameters:
      Name  Flags
      task  

  public void removeAll();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=5, args_size=1
        start local 0 // com.sun.jmx.snmp.tasks.ThreadService this
         0: .line 109
            aload 0 /* this */
            invokevirtual com.sun.jmx.snmp.tasks.ThreadService.stateCheck:()V
         1: .line 112
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            dup
            astore 2
            monitorenter
         2: .line 113
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            invokevirtual java.util.ArrayList.toArray:()[Ljava/lang/Object;
            astore 1 /* jobs */
        start local 1 // java.lang.Object[] jobs
         3: .line 114
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            invokevirtual java.util.ArrayList.clear:()V
         4: .line 112
            aload 2
            monitorexit
         5: goto 8
        end local 1 // java.lang.Object[] jobs
      StackMap locals: com.sun.jmx.snmp.tasks.ThreadService top java.util.ArrayList
      StackMap stack: java.lang.Throwable
         6: aload 2
            monitorexit
         7: athrow
        start local 1 // java.lang.Object[] jobs
         8: .line 116
      StackMap locals: com.sun.jmx.snmp.tasks.ThreadService java.lang.Object[]
      StackMap stack:
            aload 1 /* jobs */
            arraylength
            istore 2 /* len */
        start local 2 // int len
         9: .line 117
            iconst_0
            istore 3 /* i */
        start local 3 // int i
        10: goto 14
        11: .line 118
      StackMap locals: int int
      StackMap stack:
            aload 1 /* jobs */
            iload 3 /* i */
            aaload
            astore 4 /* o */
        start local 4 // java.lang.Object o
        12: .line 119
            aload 4 /* o */
            ifnull 13
            aload 4 /* o */
            instanceof com.sun.jmx.snmp.tasks.Task
            ifeq 13
            aload 4 /* o */
            checkcast com.sun.jmx.snmp.tasks.Task
            invokeinterface com.sun.jmx.snmp.tasks.Task.cancel:()V
        end local 4 // java.lang.Object o
        13: .line 117
      StackMap locals:
      StackMap stack:
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
        14: iload 3 /* i */
            iload 2 /* len */
            if_icmplt 11
        end local 3 // int i
        15: .line 121
            return
        end local 2 // int len
        end local 1 // java.lang.Object[] jobs
        end local 0 // com.sun.jmx.snmp.tasks.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   16     0  this  Lcom/sun/jmx/snmp/tasks/ThreadService;
            3    6     1  jobs  [Ljava/lang/Object;
            8   16     1  jobs  [Ljava/lang/Object;
            9   16     2   len  I
           10   15     3     i  I
           12   13     4     o  Ljava/lang/Object;
      Exception table:
        from    to  target  type
           2     5       6  any
           6     7       6  any

  public void terminate();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // com.sun.jmx.snmp.tasks.ThreadService this
         0: .line 126
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.terminated:Z
            ifeq 2
         1: .line 127
            return
         2: .line 130
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield com.sun.jmx.snmp.tasks.ThreadService.terminated:Z
         3: .line 132
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            dup
            astore 1
            monitorenter
         4: .line 133
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            invokevirtual java.lang.Object.notifyAll:()V
         5: .line 132
            aload 1
            monitorexit
         6: goto 9
      StackMap locals: com.sun.jmx.snmp.tasks.ThreadService java.util.ArrayList
      StackMap stack: java.lang.Throwable
         7: aload 1
            monitorexit
         8: athrow
         9: .line 136
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.sun.jmx.snmp.tasks.ThreadService.removeAll:()V
        10: .line 138
            iconst_0
            istore 1 /* i */
        start local 1 // int i
        11: goto 16
        12: .line 140
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.threadList:[Lcom/sun/jmx/snmp/tasks/ThreadService$ExecutorThread;
            iload 1 /* i */
            aaload
            invokevirtual com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread.interrupt:()V
        13: .line 141
            goto 15
      StackMap locals:
      StackMap stack: java.lang.Exception
        14: pop
        15: .line 138
      StackMap locals:
      StackMap stack:
            iinc 1 /* i */ 1
      StackMap locals:
      StackMap stack:
        16: iload 1 /* i */
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.currThreds:I
            if_icmplt 12
        end local 1 // int i
        17: .line 146
            aload 0 /* this */
            aconst_null
            putfield com.sun.jmx.snmp.tasks.ThreadService.threadList:[Lcom/sun/jmx/snmp/tasks/ThreadService$ExecutorThread;
        18: .line 147
            return
        end local 0 // com.sun.jmx.snmp.tasks.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   19     0  this  Lcom/sun/jmx/snmp/tasks/ThreadService;
           11   17     1     i  I
      Exception table:
        from    to  target  type
           4     6       7  any
           7     8       7  any
          12    13      14  Class java.lang.Exception

  private void stateCheck();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.jmx.snmp.tasks.ThreadService this
         0: .line 210
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.terminated:Z
            ifeq 2
         1: .line 211
            new java.lang.IllegalStateException
            dup
            ldc "The thread service has been terminated."
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 213
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.sun.jmx.snmp.tasks.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/sun/jmx/snmp/tasks/ThreadService;
    Exceptions:
      throws java.lang.IllegalStateException

  private void createThread();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=3, args_size=1
        start local 0 // com.sun.jmx.snmp.tasks.ThreadService this
         0: .line 216
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.idle:I
            iconst_1
            if_icmpge 10
         1: .line 217
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.threadList:[Lcom/sun/jmx/snmp/tasks/ThreadService$ExecutorThread;
            dup
            astore 1
            monitorenter
         2: .line 218
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.jobList:Ljava/util/ArrayList;
            invokevirtual java.util.ArrayList.size:()I
            ifle 6
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.currThreds:I
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.minThreads:I
            if_icmpge 6
         3: .line 219
            new com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread
            dup
            aload 0 /* this */
            invokespecial com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread.<init>:(Lcom/sun/jmx/snmp/tasks/ThreadService;)V
            astore 2 /* et */
        start local 2 // com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread et
         4: .line 220
            aload 2 /* et */
            invokevirtual com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread.start:()V
         5: .line 221
            aload 0 /* this */
            getfield com.sun.jmx.snmp.tasks.ThreadService.threadList:[Lcom/sun/jmx/snmp/tasks/ThreadService$ExecutorThread;
            aload 0 /* this */
            dup
            getfield com.sun.jmx.snmp.tasks.ThreadService.currThreds:I
            dup_x1
            iconst_1
            iadd
            putfield com.sun.jmx.snmp.tasks.ThreadService.currThreds:I
            aload 2 /* et */
            aastore
        end local 2 // com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread et
         6: .line 217
      StackMap locals: com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread[]
      StackMap stack:
            aload 1
            monitorexit
         7: goto 10
      StackMap locals:
      StackMap stack: java.lang.Throwable
         8: aload 1
            monitorexit
         9: athrow
        10: .line 225
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.sun.jmx.snmp.tasks.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   11     0  this  Lcom/sun/jmx/snmp/tasks/ThreadService;
            4    6     2    et  Lcom/sun/jmx/snmp/tasks/ThreadService$ExecutorThread;
      Exception table:
        from    to  target  type
           2     7       8  any
           8     9       8  any
}
SourceFile: "ThreadService.java"
NestMembers:
  com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread
InnerClasses:
  private ExecutorThread = com.sun.jmx.snmp.tasks.ThreadService$ExecutorThread of com.sun.jmx.snmp.tasks.ThreadService