public abstract class org.glassfish.grizzly.nio.NIOTransport extends org.glassfish.grizzly.AbstractTransport implements org.glassfish.grizzly.SocketBinder, org.glassfish.grizzly.SocketConnectorHandler, org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorsEnabledTransport, org.glassfish.grizzly.asyncqueue.AsyncQueueEnabledTransport
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.glassfish.grizzly.nio.NIOTransport
super_class: org.glassfish.grizzly.AbstractTransport
{
public static final int DEFAULT_SERVER_SOCKET_SO_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final boolean DEFAULT_REUSE_ADDRESS;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int DEFAULT_CLIENT_SOCKET_SO_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int DEFAULT_CONNECTION_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 30000
public static final int DEFAULT_SELECTOR_RUNNER_COUNT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
public static final boolean DEFAULT_OPTIMIZED_FOR_MULTIPLEXING;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected org.glassfish.grizzly.nio.SelectorHandler selectorHandler;
descriptor: Lorg/glassfish/grizzly/nio/SelectorHandler;
flags: (0x0004) ACC_PROTECTED
protected org.glassfish.grizzly.nio.SelectionKeyHandler selectionKeyHandler;
descriptor: Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
flags: (0x0004) ACC_PROTECTED
int serverSocketSoTimeout;
descriptor: I
flags: (0x0000)
boolean reuseAddress;
descriptor: Z
flags: (0x0000)
int clientSocketSoTimeout;
descriptor: I
flags: (0x0000)
int connectionTimeout;
descriptor: I
flags: (0x0000)
protected org.glassfish.grizzly.nio.ChannelConfigurator channelConfigurator;
descriptor: Lorg/glassfish/grizzly/nio/ChannelConfigurator;
flags: (0x0004) ACC_PROTECTED
private int selectorRunnersCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean optimizedForMultiplexing;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
protected org.glassfish.grizzly.nio.SelectorRunner[] selectorRunners;
descriptor: [Lorg/glassfish/grizzly/nio/SelectorRunner;
flags: (0x0004) ACC_PROTECTED
protected org.glassfish.grizzly.nio.NIOChannelDistributor nioChannelDistributor;
descriptor: Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
flags: (0x0004) ACC_PROTECTED
protected java.nio.channels.spi.SelectorProvider selectorProvider;
descriptor: Ljava/nio/channels/spi/SelectorProvider;
flags: (0x0004) ACC_PROTECTED
protected final org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorIO temporarySelectorIO;
descriptor: Lorg/glassfish/grizzly/nio/tmpselectors/TemporarySelectorIO;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected java.util.Set<org.glassfish.grizzly.GracefulShutdownListener> shutdownListeners;
descriptor: Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Set<Lorg/glassfish/grizzly/GracefulShutdownListener;>;
protected org.glassfish.grizzly.impl.FutureImpl<org.glassfish.grizzly.Transport> shutdownFuture;
descriptor: Lorg/glassfish/grizzly/impl/FutureImpl;
flags: (0x0004) ACC_PROTECTED
Signature: Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/Transport;>;
protected java.util.concurrent.ExecutorService shutdownService;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0004) ACC_PROTECTED
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/nio/NIOTransport;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.nio.NIOTransport.LOGGER:Ljava/util/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.glassfish.grizzly.AbstractTransport.<init>:(Ljava/lang/String;)V
1: aload 0
iconst_0
putfield org.glassfish.grizzly.nio.NIOTransport.serverSocketSoTimeout:I
2: aload 0
iconst_1
putfield org.glassfish.grizzly.nio.NIOTransport.reuseAddress:Z
3: aload 0
iconst_0
putfield org.glassfish.grizzly.nio.NIOTransport.clientSocketSoTimeout:I
4: aload 0
sipush 30000
putfield org.glassfish.grizzly.nio.NIOTransport.connectionTimeout:I
5: aload 0
iconst_m1
putfield org.glassfish.grizzly.nio.NIOTransport.selectorRunnersCount:I
6: aload 0
iconst_0
putfield org.glassfish.grizzly.nio.NIOTransport.optimizedForMultiplexing:Z
7: aload 0
invokestatic java.nio.channels.spi.SelectorProvider.provider:()Ljava/nio/channels/spi/SelectorProvider;
putfield org.glassfish.grizzly.nio.NIOTransport.selectorProvider:Ljava/nio/channels/spi/SelectorProvider;
8: aload 0
aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.createTemporarySelectorIO:()Lorg/glassfish/grizzly/nio/tmpselectors/TemporarySelectorIO;
putfield org.glassfish.grizzly.nio.NIOTransport.temporarySelectorIO:Lorg/glassfish/grizzly/nio/tmpselectors/TemporarySelectorIO;
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 10 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name final
public abstract void unbindAll();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public boolean addShutdownListener(org.glassfish.grizzly.GracefulShutdownListener);
descriptor: (Lorg/glassfish/grizzly/GracefulShutdownListener;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getStateLocker:()Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 2
start local 2 1: aload 2
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getState:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.Transport$State
astore 3
start local 3 3: aload 3
getstatic org.glassfish.grizzly.Transport$State.STOPPING:Lorg/glassfish/grizzly/Transport$State;
if_acmpne 4
aload 3
getstatic org.glassfish.grizzly.Transport$State.STOPPED:Lorg/glassfish/grizzly/Transport$State;
if_acmpeq 9
4: StackMap locals: java.util.concurrent.locks.Lock org.glassfish.grizzly.Transport$State
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownListeners:Ljava/util/Set;
ifnonnull 6
5: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.glassfish.grizzly.nio.NIOTransport.shutdownListeners:Ljava/util/Set;
6: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownListeners:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
istore 5
7: aload 2
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: iload 5
ireturn
9: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
10: iconst_0
ireturn
end local 3 11: StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.GracefulShutdownListener java.util.concurrent.locks.Lock
StackMap stack: java.lang.Throwable
astore 4
12: aload 2
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
13: aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 14 1 shutdownListener Lorg/glassfish/grizzly/GracefulShutdownListener;
1 14 2 lock Ljava/util/concurrent/locks/Lock;
3 11 3 stateNow Lorg/glassfish/grizzly/Transport$State;
Exception table:
from to target type
2 7 11 any
MethodParameters:
Name Flags
shutdownListener final
public org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorIO getTemporarySelectorIO();
descriptor: ()Lorg/glassfish/grizzly/nio/tmpselectors/TemporarySelectorIO;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.temporarySelectorIO:Lorg/glassfish/grizzly/nio/tmpselectors/TemporarySelectorIO;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public org.glassfish.grizzly.nio.SelectionKeyHandler getSelectionKeyHandler();
descriptor: ()Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectionKeyHandler:Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setSelectionKeyHandler(org.glassfish.grizzly.nio.SelectionKeyHandler);
descriptor: (Lorg/glassfish/grizzly/nio/SelectionKeyHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.nio.NIOTransport.selectionKeyHandler:Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
1: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 3 1 selectionKeyHandler Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
MethodParameters:
Name Flags
selectionKeyHandler final
public org.glassfish.grizzly.nio.SelectorHandler getSelectorHandler();
descriptor: ()Lorg/glassfish/grizzly/nio/SelectorHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorHandler:Lorg/glassfish/grizzly/nio/SelectorHandler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setSelectorHandler(org.glassfish.grizzly.nio.SelectorHandler);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.nio.NIOTransport.selectorHandler:Lorg/glassfish/grizzly/nio/SelectorHandler;
1: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 3 1 selectorHandler Lorg/glassfish/grizzly/nio/SelectorHandler;
MethodParameters:
Name Flags
selectorHandler final
public org.glassfish.grizzly.nio.ChannelConfigurator getChannelConfigurator();
descriptor: ()Lorg/glassfish/grizzly/nio/ChannelConfigurator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.channelConfigurator:Lorg/glassfish/grizzly/nio/ChannelConfigurator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setChannelConfigurator(org.glassfish.grizzly.nio.ChannelConfigurator);
descriptor: (Lorg/glassfish/grizzly/nio/ChannelConfigurator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.nio.NIOTransport.channelConfigurator:Lorg/glassfish/grizzly/nio/ChannelConfigurator;
1: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 3 1 channelConfigurator Lorg/glassfish/grizzly/nio/ChannelConfigurator;
MethodParameters:
Name Flags
channelConfigurator final
public int getSelectorRunnersCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunnersCount:I
ifgt 2
1: aload 0
aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getDefaultSelectorRunnersCount:()I
putfield org.glassfish.grizzly.nio.NIOTransport.selectorRunnersCount:I
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunnersCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setSelectorRunnersCount(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifle 7
1: aload 0
iload 1
putfield org.glassfish.grizzly.nio.NIOTransport.selectorRunnersCount:I
2: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
ifnull 6
3: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.getMaxPoolSize:()I
iload 1
if_icmpge 6
4: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
iload 1
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setCorePoolSize:(I)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
5: iload 1
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setMaxPoolSize:(I)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
pop
6: StackMap locals:
StackMap stack:
aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 8 1 selectorRunnersCount I
MethodParameters:
Name Flags
selectorRunnersCount final
public java.nio.channels.spi.SelectorProvider getSelectorProvider();
descriptor: ()Ljava/nio/channels/spi/SelectorProvider;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorProvider:Ljava/nio/channels/spi/SelectorProvider;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setSelectorProvider(java.nio.channels.spi.SelectorProvider);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ifnull 2
1: aload 1
goto 3
2: StackMap locals:
StackMap stack: org.glassfish.grizzly.nio.NIOTransport
invokestatic java.nio.channels.spi.SelectorProvider.provider:()Ljava/nio/channels/spi/SelectorProvider;
3: StackMap locals: org.glassfish.grizzly.nio.NIOTransport java.nio.channels.spi.SelectorProvider
StackMap stack: org.glassfish.grizzly.nio.NIOTransport java.nio.channels.spi.SelectorProvider
putfield org.glassfish.grizzly.nio.NIOTransport.selectorProvider:Ljava/nio/channels/spi/SelectorProvider;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 5 1 selectorProvider Ljava/nio/channels/spi/SelectorProvider;
MethodParameters:
Name Flags
selectorProvider final
public boolean isOptimizedForMultiplexing();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.optimizedForMultiplexing:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setOptimizedForMultiplexing(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.glassfish.grizzly.nio.NIOTransport.optimizedForMultiplexing:Z
1: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getAsyncQueueIO:()Lorg/glassfish/grizzly/asyncqueue/AsyncQueueIO;
invokeinterface org.glassfish.grizzly.asyncqueue.AsyncQueueIO.getWriter:()Lorg/glassfish/grizzly/asyncqueue/AsyncQueueWriter;
iload 1
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack: org.glassfish.grizzly.asyncqueue.AsyncQueueWriter
2: iconst_1
StackMap locals: org.glassfish.grizzly.nio.NIOTransport int
StackMap stack: org.glassfish.grizzly.asyncqueue.AsyncQueueWriter int
3: invokeinterface org.glassfish.grizzly.asyncqueue.AsyncQueueWriter.setAllowDirectWrite:(Z)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 5 1 optimizedForMultiplexing Z
MethodParameters:
Name Flags
optimizedForMultiplexing final
protected synchronized void startSelectorRunners();
descriptor: ()V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunnersCount:I
anewarray org.glassfish.grizzly.nio.SelectorRunner
putfield org.glassfish.grizzly.nio.NIOTransport.selectorRunners:[Lorg/glassfish/grizzly/nio/SelectorRunner;
1: iconst_0
istore 1
start local 1 2: goto 7
3: StackMap locals: int
StackMap stack:
aload 0
invokestatic org.glassfish.grizzly.nio.SelectorRunner.create:(Lorg/glassfish/grizzly/nio/NIOTransport;)Lorg/glassfish/grizzly/nio/SelectorRunner;
astore 2
start local 2 4: aload 2
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.start:()V
5: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunners:[Lorg/glassfish/grizzly/nio/SelectorRunner;
iload 1
aload 2
aastore
end local 2 6: iinc 1 1
StackMap locals:
StackMap stack:
7: iload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunnersCount:I
if_icmplt 3
end local 1 8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
2 8 1 i I
4 6 2 runner Lorg/glassfish/grizzly/nio/SelectorRunner;
Exceptions:
throws java.io.IOException
protected synchronized void stopSelectorRunners();
descriptor: ()V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunners:[Lorg/glassfish/grizzly/nio/SelectorRunner;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 3: goto 9
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunners:[Lorg/glassfish/grizzly/nio/SelectorRunner;
iload 1
aaload
astore 2
start local 2 5: aload 2
ifnull 8
6: aload 2
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.stop:()V
7: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunners:[Lorg/glassfish/grizzly/nio/SelectorRunner;
iload 1
aconst_null
aastore
end local 2 8: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
9: iload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunners:[Lorg/glassfish/grizzly/nio/SelectorRunner;
arraylength
if_icmplt 4
end local 1 10: aload 0
aconst_null
putfield org.glassfish.grizzly.nio.NIOTransport.selectorRunners:[Lorg/glassfish/grizzly/nio/SelectorRunner;
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
3 10 1 i I
5 8 2 runner Lorg/glassfish/grizzly/nio/SelectorRunner;
public org.glassfish.grizzly.nio.NIOChannelDistributor getNIOChannelDistributor();
descriptor: ()Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.nioChannelDistributor:Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setNIOChannelDistributor(org.glassfish.grizzly.nio.NIOChannelDistributor);
descriptor: (Lorg/glassfish/grizzly/nio/NIOChannelDistributor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.nio.NIOTransport.nioChannelDistributor:Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
1: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 3 1 nioChannelDistributor Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
MethodParameters:
Name Flags
nioChannelDistributor final
public void notifyTransportError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesError:(Lorg/glassfish/grizzly/nio/NIOTransport;Ljava/lang/Throwable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 2 1 error Ljava/lang/Throwable;
MethodParameters:
Name Flags
error final
protected org.glassfish.grizzly.nio.SelectorRunner[] getSelectorRunners();
descriptor: ()[Lorg/glassfish/grizzly/nio/SelectorRunner;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorRunners:[Lorg/glassfish/grizzly/nio/SelectorRunner;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
protected static void notifyProbesError(org.glassfish.grizzly.nio.NIOTransport, java.lang.Throwable);
descriptor: (Lorg/glassfish/grizzly/nio/NIOTransport;Ljava/lang/Throwable;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.transportMonitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
invokevirtual org.glassfish.grizzly.monitoring.DefaultMonitoringConfig.getProbesUnsafe:()[Ljava/lang/Object;
checkcast org.glassfish.grizzly.TransportProbe[]
1: astore 2
start local 2 2: aload 2
ifnull 8
3: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: org.glassfish.grizzly.nio.NIOTransport java.lang.Throwable org.glassfish.grizzly.TransportProbe[] top int int org.glassfish.grizzly.TransportProbe[]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: aload 3
aload 0
aload 1
invokeinterface org.glassfish.grizzly.TransportProbe.onErrorEvent:(Lorg/glassfish/grizzly/Transport;Ljava/lang/Throwable;)V
end local 3 6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 4
8: StackMap locals: org.glassfish.grizzly.nio.NIOTransport java.lang.Throwable org.glassfish.grizzly.TransportProbe[]
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 transport Lorg/glassfish/grizzly/nio/NIOTransport;
0 9 1 error Ljava/lang/Throwable;
2 9 2 probes [Lorg/glassfish/grizzly/TransportProbe;
5 6 3 probe Lorg/glassfish/grizzly/TransportProbe;
MethodParameters:
Name Flags
transport final
error final
protected static void notifyProbesStart(org.glassfish.grizzly.nio.NIOTransport);
descriptor: (Lorg/glassfish/grizzly/nio/NIOTransport;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.transportMonitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
invokevirtual org.glassfish.grizzly.monitoring.DefaultMonitoringConfig.getProbesUnsafe:()[Ljava/lang/Object;
checkcast org.glassfish.grizzly.TransportProbe[]
1: astore 1
start local 1 2: aload 1
ifnull 8
3: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.TransportProbe[] top int int org.glassfish.grizzly.TransportProbe[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
aload 0
invokeinterface org.glassfish.grizzly.TransportProbe.onStartEvent:(Lorg/glassfish/grizzly/Transport;)V
end local 2 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 4
8: StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.TransportProbe[]
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 transport Lorg/glassfish/grizzly/nio/NIOTransport;
2 9 1 probes [Lorg/glassfish/grizzly/TransportProbe;
5 6 2 probe Lorg/glassfish/grizzly/TransportProbe;
MethodParameters:
Name Flags
transport final
protected static void notifyProbesStop(org.glassfish.grizzly.nio.NIOTransport);
descriptor: (Lorg/glassfish/grizzly/nio/NIOTransport;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.transportMonitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
invokevirtual org.glassfish.grizzly.monitoring.DefaultMonitoringConfig.getProbesUnsafe:()[Ljava/lang/Object;
checkcast org.glassfish.grizzly.TransportProbe[]
1: astore 1
start local 1 2: aload 1
ifnull 8
3: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.TransportProbe[] top int int org.glassfish.grizzly.TransportProbe[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
aload 0
invokeinterface org.glassfish.grizzly.TransportProbe.onStopEvent:(Lorg/glassfish/grizzly/Transport;)V
end local 2 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 4
8: StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.TransportProbe[]
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 transport Lorg/glassfish/grizzly/nio/NIOTransport;
2 9 1 probes [Lorg/glassfish/grizzly/TransportProbe;
5 6 2 probe Lorg/glassfish/grizzly/TransportProbe;
MethodParameters:
Name Flags
transport final
protected static void notifyProbesPause(org.glassfish.grizzly.nio.NIOTransport);
descriptor: (Lorg/glassfish/grizzly/nio/NIOTransport;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.transportMonitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
invokevirtual org.glassfish.grizzly.monitoring.DefaultMonitoringConfig.getProbesUnsafe:()[Ljava/lang/Object;
checkcast org.glassfish.grizzly.TransportProbe[]
1: astore 1
start local 1 2: aload 1
ifnull 8
3: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.TransportProbe[] top int int org.glassfish.grizzly.TransportProbe[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
aload 0
invokeinterface org.glassfish.grizzly.TransportProbe.onPauseEvent:(Lorg/glassfish/grizzly/Transport;)V
end local 2 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 4
8: StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.TransportProbe[]
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 transport Lorg/glassfish/grizzly/nio/NIOTransport;
2 9 1 probes [Lorg/glassfish/grizzly/TransportProbe;
5 6 2 probe Lorg/glassfish/grizzly/TransportProbe;
MethodParameters:
Name Flags
transport final
protected static void notifyProbesResume(org.glassfish.grizzly.nio.NIOTransport);
descriptor: (Lorg/glassfish/grizzly/nio/NIOTransport;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.transportMonitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
invokevirtual org.glassfish.grizzly.monitoring.DefaultMonitoringConfig.getProbesUnsafe:()[Ljava/lang/Object;
checkcast org.glassfish.grizzly.TransportProbe[]
1: astore 1
start local 1 2: aload 1
ifnull 8
3: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.TransportProbe[] top int int org.glassfish.grizzly.TransportProbe[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
aload 0
invokeinterface org.glassfish.grizzly.TransportProbe.onResumeEvent:(Lorg/glassfish/grizzly/Transport;)V
end local 2 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 4
8: StackMap locals: org.glassfish.grizzly.nio.NIOTransport org.glassfish.grizzly.TransportProbe[]
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 transport Lorg/glassfish/grizzly/nio/NIOTransport;
2 9 1 probes [Lorg/glassfish/grizzly/TransportProbe;
5 6 2 probe Lorg/glassfish/grizzly/TransportProbe;
MethodParameters:
Name Flags
transport final
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getStateLocker:()Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 1
start local 1 1: aload 1
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getState:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.Transport$State
astore 2
start local 2 3: aload 2
getstatic org.glassfish.grizzly.Transport$State.STOPPED:Lorg/glassfish/grizzly/Transport$State;
if_acmpeq 9
4: getstatic org.glassfish.grizzly.nio.NIOTransport.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.WARNING:Ljava/util/logging/Level;
5: invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_STOP_STATE_EXCEPTION:()Ljava/lang/String;
6: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
7: aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: return
9: StackMap locals: java.util.concurrent.locks.Lock org.glassfish.grizzly.Transport$State
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.STARTING:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
10: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesBeforeStart:(Lorg/glassfish/grizzly/AbstractTransport;)V
11: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorProvider:Ljava/nio/channels/spi/SelectorProvider;
ifnonnull 13
12: aload 0
invokestatic java.nio.channels.spi.SelectorProvider.provider:()Ljava/nio/channels/spi/SelectorProvider;
putfield org.glassfish.grizzly.nio.NIOTransport.selectorProvider:Ljava/nio/channels/spi/SelectorProvider;
13: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorHandler:Lorg/glassfish/grizzly/nio/SelectorHandler;
ifnonnull 15
14: aload 0
new org.glassfish.grizzly.nio.DefaultSelectorHandler
dup
invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler.<init>:()V
putfield org.glassfish.grizzly.nio.NIOTransport.selectorHandler:Lorg/glassfish/grizzly/nio/SelectorHandler;
15: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectionKeyHandler:Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
ifnonnull 17
16: aload 0
new org.glassfish.grizzly.nio.DefaultSelectionKeyHandler
dup
invokespecial org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.<init>:()V
putfield org.glassfish.grizzly.nio.NIOTransport.selectionKeyHandler:Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
17: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.processor:Lorg/glassfish/grizzly/Processor;
ifnonnull 19
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.processorSelector:Lorg/glassfish/grizzly/ProcessorSelector;
ifnonnull 19
18: aload 0
new org.glassfish.grizzly.StandaloneProcessor
dup
invokespecial org.glassfish.grizzly.StandaloneProcessor.<init>:()V
putfield org.glassfish.grizzly.nio.NIOTransport.processor:Lorg/glassfish/grizzly/Processor;
19: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getSelectorRunnersCount:()I
istore 3
start local 3 20: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.nioChannelDistributor:Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
ifnonnull 24
21: aload 0
22: new org.glassfish.grizzly.nio.RoundRobinConnectionDistributor
dup
aload 0
invokespecial org.glassfish.grizzly.nio.RoundRobinConnectionDistributor.<init>:(Lorg/glassfish/grizzly/nio/NIOTransport;)V
23: putfield org.glassfish.grizzly.nio.NIOTransport.nioChannelDistributor:Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
24: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPool:Ljava/util/concurrent/ExecutorService;
ifnonnull 43
25: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
ifnonnull 32
26: aload 0
invokestatic org.glassfish.grizzly.threadpool.ThreadPoolConfig.defaultConfig:()Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
27: iload 3
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setCorePoolSize:(I)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
28: iload 3
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setMaxPoolSize:(I)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
29: ldc "grizzly-nio-kernel"
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setPoolName:(Ljava/lang/String;)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
30: putfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
31: goto 38
StackMap locals:
StackMap stack:
32: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.getMaxPoolSize:()I
iload 3
if_icmpge 38
33: getstatic org.glassfish.grizzly.nio.NIOTransport.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.INFO:Ljava/util/logging/Level;
ldc "Adjusting kernel thread pool to max size {0} to handle configured number of SelectorRunners"
34: iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
35: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
36: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
iload 3
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setCorePoolSize:(I)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
37: iload 3
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setMaxPoolSize:(I)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
pop
38: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.memoryManager:Lorg/glassfish/grizzly/memory/MemoryManager;
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setMemoryManager:(Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
pop
39: aload 0
40: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
41: invokestatic org.glassfish.grizzly.threadpool.GrizzlyExecutorService.createInstance:(Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;)Lorg/glassfish/grizzly/threadpool/GrizzlyExecutorService;
42: invokevirtual org.glassfish.grizzly.nio.NIOTransport.setKernelPool0:(Ljava/util/concurrent/ExecutorService;)V
43: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerThreadPool:Ljava/util/concurrent/ExecutorService;
ifnonnull 53
44: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
ifnull 53
45: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getThreadPoolMonitoringConfig:()Lorg/glassfish/grizzly/monitoring/MonitoringConfig;
invokeinterface org.glassfish.grizzly.monitoring.MonitoringConfig.hasProbes:()Z
ifeq 49
46: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.getInitialMonitoringConfig:()Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
47: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getThreadPoolMonitoringConfig:()Lorg/glassfish/grizzly/monitoring/MonitoringConfig;
invokeinterface org.glassfish.grizzly.monitoring.MonitoringConfig.getProbes:()[Ljava/lang/Object;
checkcast org.glassfish.grizzly.threadpool.ThreadPoolProbe[]
48: invokevirtual org.glassfish.grizzly.monitoring.DefaultMonitoringConfig.addProbes:([Ljava/lang/Object;)V
49: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.memoryManager:Lorg/glassfish/grizzly/memory/MemoryManager;
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setMemoryManager:(Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
pop
50: aload 0
51: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerPoolConfig:Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
52: invokestatic org.glassfish.grizzly.threadpool.GrizzlyExecutorService.createInstance:(Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;)Lorg/glassfish/grizzly/threadpool/GrizzlyExecutorService;
invokevirtual org.glassfish.grizzly.nio.NIOTransport.setWorkerThreadPool0:(Ljava/util/concurrent/ExecutorService;)V
53: StackMap locals:
StackMap stack:
bipush 32
54: istore 4
start local 4 55: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerThreadPool:Ljava/util/concurrent/ExecutorService;
instanceof org.glassfish.grizzly.threadpool.AbstractThreadPool
ifeq 63
56: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.strategy:Lorg/glassfish/grizzly/IOStrategy;
instanceof org.glassfish.grizzly.strategies.SameThreadIOStrategy
ifeq 59
57: iload 3
istore 4
58: goto 63
59: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerThreadPool:Ljava/util/concurrent/ExecutorService;
checkcast org.glassfish.grizzly.threadpool.AbstractThreadPool
invokevirtual org.glassfish.grizzly.threadpool.AbstractThreadPool.getConfig:()Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
60: invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.getMaxPoolSize:()I
61: iload 4
62: invokestatic java.lang.Math.min:(II)I
istore 4
63: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.strategy:Lorg/glassfish/grizzly/IOStrategy;
ifnonnull 65
64: aload 0
invokestatic org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.getInstance:()Lorg/glassfish/grizzly/strategies/WorkerThreadIOStrategy;
putfield org.glassfish.grizzly.nio.NIOTransport.strategy:Lorg/glassfish/grizzly/IOStrategy;
65: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.temporarySelectorIO:Lorg/glassfish/grizzly/nio/tmpselectors/TemporarySelectorIO;
66: new org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorPool
dup
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.selectorProvider:Ljava/nio/channels/spi/SelectorProvider;
67: iload 4
68: invokespecial org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorPool.<init>:(Ljava/nio/channels/spi/SelectorProvider;I)V
69: invokevirtual org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorIO.setSelectorPool:(Lorg/glassfish/grizzly/nio/tmpselectors/TemporarySelectorPool;)V
70: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.startSelectorRunners:()V
71: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.listen:()V
72: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.STARTED:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
73: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesStart:(Lorg/glassfish/grizzly/nio/NIOTransport;)V
end local 4 end local 3 end local 2 74: goto 78
StackMap locals: org.glassfish.grizzly.nio.NIOTransport java.util.concurrent.locks.Lock
StackMap stack: java.lang.Throwable
75: astore 5
76: aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
77: aload 5
athrow
78: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
79: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 80 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
1 80 1 lock Ljava/util/concurrent/locks/Lock;
3 74 2 currentState Lorg/glassfish/grizzly/Transport$State;
20 74 3 selectorRunnersCnt I
55 74 4 selectorPoolSize I
Exception table:
from to target type
2 7 75 any
9 75 75 any
Exceptions:
throws java.io.IOException
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Transport> shutdown();
descriptor: ()Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ldc -1
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.glassfish.grizzly.nio.NIOTransport.shutdown:(JLjava/util/concurrent/TimeUnit;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
Signature: ()Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/Transport;>;
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Transport> shutdown(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=9, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getStateLocker:()Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 4
start local 4 1: aload 4
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getState:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.Transport$State
astore 5
start local 5 3: aload 5
getstatic org.glassfish.grizzly.Transport$State.STOPPING:Lorg/glassfish/grizzly/Transport$State;
if_acmpne 7
4: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownFuture:Lorg/glassfish/grizzly/impl/FutureImpl;
astore 8
5: aload 4
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 8
areturn
7: StackMap locals: java.util.concurrent.locks.Lock org.glassfish.grizzly.Transport$State
StackMap stack:
aload 5
getstatic org.glassfish.grizzly.Transport$State.STOPPED:Lorg/glassfish/grizzly/Transport$State;
if_acmpne 11
8: aload 0
invokestatic org.glassfish.grizzly.utils.Futures.createReadyFuture:(Ljava/lang/Object;)Lorg/glassfish/grizzly/GrizzlyFuture;
astore 8
9: aload 4
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
10: aload 8
areturn
11: StackMap locals:
StackMap stack:
aload 5
getstatic org.glassfish.grizzly.Transport$State.PAUSED:Lorg/glassfish/grizzly/Transport$State;
if_acmpne 13
12: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.resume:()V
13: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.STOPPING:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
14: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.unbindAll:()V
15: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownListeners:Ljava/util/Set;
ifnull 29
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownListeners:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifne 29
16: aload 0
invokestatic org.glassfish.grizzly.utils.Futures.createSafeFuture:()Lorg/glassfish/grizzly/impl/FutureImpl;
putfield org.glassfish.grizzly.nio.NIOTransport.shutdownFuture:Lorg/glassfish/grizzly/impl/FutureImpl;
17: aload 0
aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.createShutdownExecutorService:()Ljava/util/concurrent/ExecutorService;
putfield org.glassfish.grizzly.nio.NIOTransport.shutdownService:Ljava/util/concurrent/ExecutorService;
18: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownService:Ljava/util/concurrent/ExecutorService;
19: new org.glassfish.grizzly.nio.GracefulShutdownRunner
dup
aload 0
20: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownListeners:Ljava/util/Set;
21: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownService:Ljava/util/concurrent/ExecutorService;
22: lload 1
23: aload 3
24: invokespecial org.glassfish.grizzly.nio.GracefulShutdownRunner.<init>:(Lorg/glassfish/grizzly/nio/NIOTransport;Ljava/util/Set;Ljava/util/concurrent/ExecutorService;JLjava/util/concurrent/TimeUnit;)V
25: invokeinterface java.util.concurrent.ExecutorService.execute:(Ljava/lang/Runnable;)V
26: aload 0
aconst_null
putfield org.glassfish.grizzly.nio.NIOTransport.shutdownListeners:Ljava/util/Set;
27: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownFuture:Lorg/glassfish/grizzly/impl/FutureImpl;
astore 6
start local 6 28: goto 31
end local 6 29: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.finalizeShutdown:()V
30: aload 0
invokestatic org.glassfish.grizzly.utils.Futures.createReadyFuture:(Ljava/lang/Object;)Lorg/glassfish/grizzly/GrizzlyFuture;
astore 6
start local 6 31: StackMap locals: org.glassfish.grizzly.GrizzlyFuture
StackMap stack:
aload 6
astore 8
32: aload 4
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
33: aload 8
areturn
end local 6 end local 5 34: StackMap locals: org.glassfish.grizzly.nio.NIOTransport long java.util.concurrent.TimeUnit java.util.concurrent.locks.Lock
StackMap stack: java.lang.Throwable
astore 7
35: aload 4
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
36: aload 7
athrow
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 37 1 gracePeriod J
0 37 3 timeUnit Ljava/util/concurrent/TimeUnit;
1 37 4 lock Ljava/util/concurrent/locks/Lock;
3 34 5 stateNow Lorg/glassfish/grizzly/Transport$State;
28 29 6 resultFuture Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/Transport;>;
31 34 6 resultFuture Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/Transport;>;
Exception table:
from to target type
2 5 34 any
7 9 34 any
11 32 34 any
Signature: (JLjava/util/concurrent/TimeUnit;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/Transport;>;
MethodParameters:
Name Flags
gracePeriod final
timeUnit final
public void shutdownNow();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getStateLocker:()Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 1
start local 1 1: aload 1
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getState:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.Transport$State
astore 2
start local 2 3: aload 2
getstatic org.glassfish.grizzly.Transport$State.STOPPED:Lorg/glassfish/grizzly/Transport$State;
if_acmpne 6
4: aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: return
6: StackMap locals: java.util.concurrent.locks.Lock org.glassfish.grizzly.Transport$State
StackMap stack:
aload 2
getstatic org.glassfish.grizzly.Transport$State.PAUSED:Lorg/glassfish/grizzly/Transport$State;
if_acmpne 8
7: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.resume:()V
8: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.STOPPING:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
9: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.unbindAll:()V
10: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.finalizeShutdown:()V
end local 2 11: goto 15
StackMap locals: org.glassfish.grizzly.nio.NIOTransport java.util.concurrent.locks.Lock
StackMap stack: java.lang.Throwable
12: astore 3
13: aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
14: aload 3
athrow
15: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
1 17 1 lock Ljava/util/concurrent/locks/Lock;
3 11 2 stateNow Lorg/glassfish/grizzly/Transport$State;
Exception table:
from to target type
2 4 12 any
6 12 12 any
Exceptions:
throws java.io.IOException
protected abstract void closeConnection(org.glassfish.grizzly.Connection);
descriptor: (Lorg/glassfish/grizzly/Connection;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
connection
protected abstract org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorIO createTemporarySelectorIO();
descriptor: ()Lorg/glassfish/grizzly/nio/tmpselectors/TemporarySelectorIO;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract void listen();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected int getDefaultSelectorRunnersCount();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.availableProcessors:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
protected void finalizeShutdown();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownService:Ljava/util/concurrent/ExecutorService;
ifnull 6
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownService:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.isShutdown:()Z
ifne 6
1: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.isInterrupted:()Z
istore 1
start local 1 2: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownService:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdownNow:()Ljava/util/List;
pop
3: aload 0
aconst_null
putfield org.glassfish.grizzly.nio.NIOTransport.shutdownService:Ljava/util/concurrent/ExecutorService;
4: iload 1
ifne 6
5: invokestatic java.lang.Thread.interrupted:()Z
pop
end local 1 6: StackMap locals:
StackMap stack:
aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesBeforeStop:(Lorg/glassfish/grizzly/AbstractTransport;)V
7: aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.stopSelectorRunners:()V
8: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerThreadPool:Ljava/util/concurrent/ExecutorService;
ifnull 11
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.managedWorkerPool:Z
ifeq 11
9: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.workerThreadPool:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
10: aload 0
aconst_null
putfield org.glassfish.grizzly.nio.NIOTransport.workerThreadPool:Ljava/util/concurrent/ExecutorService;
11: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPool:Ljava/util/concurrent/ExecutorService;
ifnull 14
12: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.kernelPool:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdownNow:()Ljava/util/List;
pop
13: aload 0
aconst_null
putfield org.glassfish.grizzly.nio.NIOTransport.kernelPool:Ljava/util/concurrent/ExecutorService;
14: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.STOPPED:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
15: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesStop:(Lorg/glassfish/grizzly/nio/NIOTransport;)V
16: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownFuture:Lorg/glassfish/grizzly/impl/FutureImpl;
ifnull 19
17: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.shutdownFuture:Lorg/glassfish/grizzly/impl/FutureImpl;
aload 0
invokeinterface org.glassfish.grizzly.impl.FutureImpl.result:(Ljava/lang/Object;)V
18: aload 0
aconst_null
putfield org.glassfish.grizzly.nio.NIOTransport.shutdownFuture:Lorg/glassfish/grizzly/impl/FutureImpl;
19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
2 6 1 isInterrupted Z
public void pause();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getStateLocker:()Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 1
start local 1 1: aload 1
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getState:()Ljava/lang/Object;
getstatic org.glassfish.grizzly.Transport$State.STARTED:Lorg/glassfish/grizzly/Transport$State;
if_acmpeq 8
3: getstatic org.glassfish.grizzly.nio.NIOTransport.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.WARNING:Ljava/util/logging/Level;
4: invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_START_STATE_EXCEPTION:()Ljava/lang/String;
5: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
6: aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: return
8: StackMap locals: java.util.concurrent.locks.Lock
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.PAUSING:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
9: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesBeforePause:(Lorg/glassfish/grizzly/AbstractTransport;)V
10: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.PAUSED:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
11: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesPause:(Lorg/glassfish/grizzly/nio/NIOTransport;)V
12: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 2
14: aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
15: aload 2
athrow
16: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
1 18 1 lock Ljava/util/concurrent/locks/Lock;
Exception table:
from to target type
2 6 13 any
8 13 13 any
public void resume();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getStateLocker:()Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 1
start local 1 1: aload 1
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
invokevirtual org.glassfish.grizzly.utils.StateHolder.getState:()Ljava/lang/Object;
getstatic org.glassfish.grizzly.Transport$State.PAUSED:Lorg/glassfish/grizzly/Transport$State;
if_acmpeq 8
3: getstatic org.glassfish.grizzly.nio.NIOTransport.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.WARNING:Ljava/util/logging/Level;
4: invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_TRANSPORT_NOT_PAUSE_STATE_EXCEPTION:()Ljava/lang/String;
5: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
6: aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: return
8: StackMap locals: java.util.concurrent.locks.Lock
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.STARTING:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
9: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesBeforeResume:(Lorg/glassfish/grizzly/AbstractTransport;)V
10: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.state:Lorg/glassfish/grizzly/utils/StateHolder;
getstatic org.glassfish.grizzly.Transport$State.STARTED:Lorg/glassfish/grizzly/Transport$State;
invokevirtual org.glassfish.grizzly.utils.StateHolder.setState:(Ljava/lang/Object;)V
11: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesResume:(Lorg/glassfish/grizzly/nio/NIOTransport;)V
12: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 2
14: aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
15: aload 2
athrow
16: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
1 18 1 lock Ljava/util/concurrent/locks/Lock;
Exception table:
from to target type
2 6 13 any
8 13 13 any
protected void configureNIOConnection(org.glassfish.grizzly.nio.NIOConnection);
descriptor: (Lorg/glassfish/grizzly/nio/NIOConnection;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.isBlocking:Z
invokevirtual org.glassfish.grizzly.nio.NIOConnection.configureBlocking:(Z)V
1: aload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.isStandalone:Z
invokevirtual org.glassfish.grizzly.nio.NIOConnection.configureStandalone:(Z)V
2: aload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.processor:Lorg/glassfish/grizzly/Processor;
invokevirtual org.glassfish.grizzly.nio.NIOConnection.setProcessor:(Lorg/glassfish/grizzly/Processor;)V
3: aload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.processorSelector:Lorg/glassfish/grizzly/ProcessorSelector;
invokevirtual org.glassfish.grizzly.nio.NIOConnection.setProcessorSelector:(Lorg/glassfish/grizzly/ProcessorSelector;)V
4: aload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.readTimeout:J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.glassfish.grizzly.nio.NIOConnection.setReadTimeout:(JLjava/util/concurrent/TimeUnit;)V
5: aload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.writeTimeout:J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.glassfish.grizzly.nio.NIOConnection.setWriteTimeout:(JLjava/util/concurrent/TimeUnit;)V
6: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.connectionMonitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
invokevirtual org.glassfish.grizzly.monitoring.DefaultMonitoringConfig.hasProbes:()Z
ifeq 8
7: aload 1
aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.connectionMonitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
invokevirtual org.glassfish.grizzly.monitoring.DefaultMonitoringConfig.getProbes:()[Ljava/lang/Object;
checkcast org.glassfish.grizzly.ConnectionProbe[]
invokevirtual org.glassfish.grizzly.nio.NIOConnection.setMonitoringProbes:([Lorg/glassfish/grizzly/ConnectionProbe;)V
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 9 1 connection Lorg/glassfish/grizzly/nio/NIOConnection;
MethodParameters:
Name Flags
connection
public boolean isReuseAddress();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.reuseAddress:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setReuseAddress(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.glassfish.grizzly.nio.NIOTransport.reuseAddress:Z
1: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 3 1 reuseAddress Z
MethodParameters:
Name Flags
reuseAddress final
public int getClientSocketSoTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.clientSocketSoTimeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setClientSocketSoTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "socketTimeout can't be negative value"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.glassfish.grizzly.nio.NIOTransport.clientSocketSoTimeout:I
3: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 5 1 socketTimeout I
MethodParameters:
Name Flags
socketTimeout final
public int getConnectionTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.connectionTimeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setConnectionTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.glassfish.grizzly.nio.NIOTransport.connectionTimeout:I
1: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 3 1 connectionTimeout I
MethodParameters:
Name Flags
connectionTimeout final
public int getServerSocketSoTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.NIOTransport.serverSocketSoTimeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
public void setServerSocketSoTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "socketTimeout can't be negative value"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.glassfish.grizzly.nio.NIOTransport.serverSocketSoTimeout:I
3: aload 0
invokestatic org.glassfish.grizzly.nio.NIOTransport.notifyProbesConfigChanged:(Lorg/glassfish/grizzly/AbstractTransport;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
0 5 1 serverSocketSoTimeout I
MethodParameters:
Name Flags
serverSocketSoTimeout final
protected java.util.concurrent.ExecutorService createShutdownExecutorService();
descriptor: ()Ljava/util/concurrent/ExecutorService;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
2: aload 0
invokevirtual java.lang.Object.hashCode:()I
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc "]-Shutdown-Thread"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: astore 1
start local 1 6: new org.glassfish.grizzly.nio.NIOTransport$1
dup
aload 0
aload 1
invokespecial org.glassfish.grizzly.nio.NIOTransport$1.<init>:(Lorg/glassfish/grizzly/nio/NIOTransport;Ljava/lang/String;)V
7: astore 2
start local 2 8: iconst_2
aload 2
invokestatic java.util.concurrent.Executors.newFixedThreadPool:(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/nio/NIOTransport;
6 9 1 baseThreadIdentifier Ljava/lang/String;
8 9 2 factory Ljava/util/concurrent/ThreadFactory;
}
SourceFile: "NIOTransport.java"
NestMembers:
org.glassfish.grizzly.nio.NIOTransport$1
InnerClasses:
public WriteLock = java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock of java.util.concurrent.locks.ReentrantReadWriteLock
public final State = org.glassfish.grizzly.Transport$State of org.glassfish.grizzly.Transport
org.glassfish.grizzly.nio.NIOTransport$1