public abstract class org.glassfish.grizzly.strategies.AbstractIOStrategy implements org.glassfish.grizzly.IOStrategy
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.glassfish.grizzly.strategies.AbstractIOStrategy
super_class: java.lang.Object
{
private static final java.util.EnumSet<org.glassfish.grizzly.IOEvent> READ_WRITE_EVENT_SET;
descriptor: Ljava/util/EnumSet;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/EnumSet<Lorg/glassfish/grizzly/IOEvent;>;
private static final java.util.EnumSet<org.glassfish.grizzly.IOEvent> WORKER_THREAD_EVENT_SET;
descriptor: Ljava/util/EnumSet;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/EnumSet<Lorg/glassfish/grizzly/IOEvent;>;
protected static final org.glassfish.grizzly.IOEventLifeCycleListener ENABLE_INTEREST_LIFECYCLE_LISTENER;
descriptor: Lorg/glassfish/grizzly/IOEventLifeCycleListener;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.IOEvent.READ:Lorg/glassfish/grizzly/IOEvent;
getstatic org.glassfish.grizzly.IOEvent.WRITE:Lorg/glassfish/grizzly/IOEvent;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;
1: putstatic org.glassfish.grizzly.strategies.AbstractIOStrategy.READ_WRITE_EVENT_SET:Ljava/util/EnumSet;
2: getstatic org.glassfish.grizzly.IOEvent.READ:Lorg/glassfish/grizzly/IOEvent;
getstatic org.glassfish.grizzly.IOEvent.CLOSED:Lorg/glassfish/grizzly/IOEvent;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;
3: putstatic org.glassfish.grizzly.strategies.AbstractIOStrategy.WORKER_THREAD_EVENT_SET:Ljava/util/EnumSet;
4: new org.glassfish.grizzly.strategies.AbstractIOStrategy$EnableInterestLifeCycleListener
dup
invokespecial org.glassfish.grizzly.strategies.AbstractIOStrategy$EnableInterestLifeCycleListener.<init>:()V
5: putstatic org.glassfish.grizzly.strategies.AbstractIOStrategy.ENABLE_INTEREST_LIFECYCLE_LISTENER:Lorg/glassfish/grizzly/IOEventLifeCycleListener;
6: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/strategies/AbstractIOStrategy;
public org.glassfish.grizzly.threadpool.ThreadPoolConfig createDefaultWorkerPoolConfig(org.glassfish.grizzly.Transport);
descriptor: (Lorg/glassfish/grizzly/Transport;)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: invokestatic org.glassfish.grizzly.threadpool.ThreadPoolConfig.defaultConfig:()Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.copy:()Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
astore 2
start local 2 1: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.availableProcessors:()I
istore 3
start local 3 2: aload 2
ldc "Grizzly-worker"
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setPoolName:(Ljava/lang/String;)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
pop
3: aload 2
iload 3
iconst_2
imul
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setCorePoolSize:(I)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
pop
4: aload 2
iload 3
iconst_2
imul
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setMaxPoolSize:(I)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
pop
5: aload 2
aload 1
invokeinterface org.glassfish.grizzly.Transport.getMemoryManager:()Lorg/glassfish/grizzly/memory/MemoryManager;
invokevirtual org.glassfish.grizzly.threadpool.ThreadPoolConfig.setMemoryManager:(Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
pop
6: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/strategies/AbstractIOStrategy;
0 7 1 transport Lorg/glassfish/grizzly/Transport;
1 7 2 config Lorg/glassfish/grizzly/threadpool/ThreadPoolConfig;
2 7 3 coresCount I
MethodParameters:
Name Flags
transport final
public final boolean executeIoEvent(org.glassfish.grizzly.Connection, org.glassfish.grizzly.IOEvent);
descriptor: (Lorg/glassfish/grizzly/Connection;Lorg/glassfish/grizzly/IOEvent;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
invokevirtual org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent:(Lorg/glassfish/grizzly/Connection;Lorg/glassfish/grizzly/IOEvent;Z)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/strategies/AbstractIOStrategy;
0 1 1 connection Lorg/glassfish/grizzly/Connection;
0 1 2 ioEvent Lorg/glassfish/grizzly/IOEvent;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
connection final
ioEvent final
public java.util.concurrent.Executor getThreadPoolFor(org.glassfish.grizzly.Connection, org.glassfish.grizzly.IOEvent);
descriptor: (Lorg/glassfish/grizzly/Connection;Lorg/glassfish/grizzly/IOEvent;)Ljava/util/concurrent/Executor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.glassfish.grizzly.strategies.AbstractIOStrategy.WORKER_THREAD_EVENT_SET:Ljava/util/EnumSet;
aload 2
invokevirtual java.util.EnumSet.contains:(Ljava/lang/Object;)Z
ifeq 2
1: aload 1
invokeinterface org.glassfish.grizzly.Connection.getTransport:()Lorg/glassfish/grizzly/Transport;
invokeinterface org.glassfish.grizzly.Transport.getWorkerThreadPool:()Ljava/util/concurrent/ExecutorService;
goto 3
2: StackMap locals:
StackMap stack:
aconst_null
3: StackMap locals:
StackMap stack: java.util.concurrent.ExecutorService
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/strategies/AbstractIOStrategy;
0 4 1 connection Lorg/glassfish/grizzly/Connection;
0 4 2 ioEvent Lorg/glassfish/grizzly/IOEvent;
MethodParameters:
Name Flags
connection final
ioEvent final
protected static boolean isReadWrite(org.glassfish.grizzly.IOEvent);
descriptor: (Lorg/glassfish/grizzly/IOEvent;)Z
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.strategies.AbstractIOStrategy.READ_WRITE_EVENT_SET:Ljava/util/EnumSet;
aload 0
invokevirtual java.util.EnumSet.contains:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ioEvent Lorg/glassfish/grizzly/IOEvent;
MethodParameters:
Name Flags
ioEvent final
protected static void fireIOEvent(org.glassfish.grizzly.Connection, org.glassfish.grizzly.IOEvent, org.glassfish.grizzly.IOEventLifeCycleListener, java.util.logging.Logger);
descriptor: (Lorg/glassfish/grizzly/Connection;Lorg/glassfish/grizzly/IOEvent;Lorg/glassfish/grizzly/IOEventLifeCycleListener;Ljava/util/logging/Logger;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokeinterface org.glassfish.grizzly.Connection.getTransport:()Lorg/glassfish/grizzly/Transport;
aload 1
aload 0
aload 2
invokeinterface org.glassfish.grizzly.Transport.fireIOEvent:(Lorg/glassfish/grizzly/IOEvent;Lorg/glassfish/grizzly/Connection;Lorg/glassfish/grizzly/IOEventLifeCycleListener;)V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Exception
2: astore 4
start local 4 3: aload 3
getstatic java.util.logging.Level.WARNING:Ljava/util/logging/Level;
invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_IOSTRATEGY_UNCAUGHT_EXCEPTION:()Ljava/lang/String;
aload 4
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
4: aload 0
invokeinterface org.glassfish.grizzly.Connection.closeSilently:()V
end local 4 5: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 connection Lorg/glassfish/grizzly/Connection;
0 6 1 ioEvent Lorg/glassfish/grizzly/IOEvent;
0 6 2 listener Lorg/glassfish/grizzly/IOEventLifeCycleListener;
0 6 3 logger Ljava/util/logging/Logger;
3 5 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
connection final
ioEvent final
listener final
logger final
}
SourceFile: "AbstractIOStrategy.java"
NestMembers:
org.glassfish.grizzly.strategies.AbstractIOStrategy$EnableInterestLifeCycleListener
InnerClasses:
private final EnableInterestLifeCycleListener = org.glassfish.grizzly.strategies.AbstractIOStrategy$EnableInterestLifeCycleListener of org.glassfish.grizzly.strategies.AbstractIOStrategy