public abstract class org.glassfish.grizzly.AbstractBindingHandler implements org.glassfish.grizzly.SocketBinder
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.glassfish.grizzly.AbstractBindingHandler
super_class: java.lang.Object
{
protected static final java.util.Random RANDOM;
descriptor: Ljava/util/Random;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected final org.glassfish.grizzly.nio.NIOTransport transport;
descriptor: Lorg/glassfish/grizzly/nio/NIOTransport;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected org.glassfish.grizzly.Processor processor;
descriptor: Lorg/glassfish/grizzly/Processor;
flags: (0x0004) ACC_PROTECTED
protected org.glassfish.grizzly.ProcessorSelector processorSelector;
descriptor: Lorg/glassfish/grizzly/ProcessorSelector;
flags: (0x0004) ACC_PROTECTED
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.Random
dup
invokespecial java.util.Random.<init>:()V
putstatic org.glassfish.grizzly.AbstractBindingHandler.RANDOM:Ljava/util/Random;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.glassfish.grizzly.nio.NIOTransport);
descriptor: (Lorg/glassfish/grizzly/nio/NIOTransport;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.glassfish.grizzly.AbstractBindingHandler.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
2: aload 0
aload 1
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getProcessor:()Lorg/glassfish/grizzly/Processor;
putfield org.glassfish.grizzly.AbstractBindingHandler.processor:Lorg/glassfish/grizzly/Processor;
3: aload 0
aload 1
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getProcessorSelector:()Lorg/glassfish/grizzly/ProcessorSelector;
putfield org.glassfish.grizzly.AbstractBindingHandler.processorSelector:Lorg/glassfish/grizzly/ProcessorSelector;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 5 1 transport Lorg/glassfish/grizzly/nio/NIOTransport;
MethodParameters:
Name Flags
transport final
public org.glassfish.grizzly.Processor getProcessor();
descriptor: ()Lorg/glassfish/grizzly/Processor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.AbstractBindingHandler.processor:Lorg/glassfish/grizzly/Processor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
public void setProcessor(org.glassfish.grizzly.Processor);
descriptor: (Lorg/glassfish/grizzly/Processor;)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.AbstractBindingHandler.processor:Lorg/glassfish/grizzly/Processor;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 2 1 processor Lorg/glassfish/grizzly/Processor;
MethodParameters:
Name Flags
processor
public org.glassfish.grizzly.ProcessorSelector getProcessorSelector();
descriptor: ()Lorg/glassfish/grizzly/ProcessorSelector;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.AbstractBindingHandler.processorSelector:Lorg/glassfish/grizzly/ProcessorSelector;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
public void setProcessorSelector(org.glassfish.grizzly.ProcessorSelector);
descriptor: (Lorg/glassfish/grizzly/ProcessorSelector;)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.AbstractBindingHandler.processorSelector:Lorg/glassfish/grizzly/ProcessorSelector;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 2 1 processorSelector Lorg/glassfish/grizzly/ProcessorSelector;
MethodParameters:
Name Flags
processorSelector final
public org.glassfish.grizzly.Connection<?> bind(int);
descriptor: (I)Lorg/glassfish/grizzly/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.net.InetSocketAddress
dup
iload 1
invokespecial java.net.InetSocketAddress.<init>:(I)V
invokevirtual org.glassfish.grizzly.AbstractBindingHandler.bind:(Ljava/net/SocketAddress;)Lorg/glassfish/grizzly/Connection;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 1 1 port I
Exceptions:
throws java.io.IOException
Signature: (I)Lorg/glassfish/grizzly/Connection<*>;
MethodParameters:
Name Flags
port final
public org.glassfish.grizzly.Connection<?> bind(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lorg/glassfish/grizzly/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
invokevirtual org.glassfish.grizzly.AbstractBindingHandler.bind:(Ljava/net/SocketAddress;)Lorg/glassfish/grizzly/Connection;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 1 1 host Ljava/lang/String;
0 1 2 port I
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;I)Lorg/glassfish/grizzly/Connection<*>;
MethodParameters:
Name Flags
host final
port final
public org.glassfish.grizzly.Connection<?> bind(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)Lorg/glassfish/grizzly/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
iload 3
invokevirtual org.glassfish.grizzly.AbstractBindingHandler.bind:(Ljava/net/SocketAddress;I)Lorg/glassfish/grizzly/Connection;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 1 1 host Ljava/lang/String;
0 1 2 port I
0 1 3 backlog I
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;II)Lorg/glassfish/grizzly/Connection<*>;
MethodParameters:
Name Flags
host final
port final
backlog final
public org.glassfish.grizzly.Connection<?> bind(java.lang.String, org.glassfish.grizzly.PortRange, int);
descriptor: (Ljava/lang/String;Lorg/glassfish/grizzly/PortRange;I)Lorg/glassfish/grizzly/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
iconst_1
iload 3
invokevirtual org.glassfish.grizzly.AbstractBindingHandler.bind:(Ljava/lang/String;Lorg/glassfish/grizzly/PortRange;ZI)Lorg/glassfish/grizzly/Connection;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 1 1 host Ljava/lang/String;
0 1 2 portRange Lorg/glassfish/grizzly/PortRange;
0 1 3 backlog I
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;Lorg/glassfish/grizzly/PortRange;I)Lorg/glassfish/grizzly/Connection<*>;
MethodParameters:
Name Flags
host final
portRange final
backlog final
public org.glassfish.grizzly.Connection<?> bind(java.lang.String, org.glassfish.grizzly.PortRange, boolean, int);
descriptor: (Ljava/lang/String;Lorg/glassfish/grizzly/PortRange;ZI)Lorg/glassfish/grizzly/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
invokevirtual org.glassfish.grizzly.PortRange.getLower:()I
istore 5
start local 5 1: aload 2
invokevirtual org.glassfish.grizzly.PortRange.getUpper:()I
iload 5
isub
iconst_1
iadd
istore 6
start local 6 2: iload 3
ifeq 5
3: getstatic org.glassfish.grizzly.AbstractBindingHandler.RANDOM:Ljava/util/Random;
iload 6
invokevirtual java.util.Random.nextInt:(I)I
istore 7
start local 7 4: goto 6
end local 7 5: StackMap locals: int int
StackMap stack:
iconst_0
istore 7
start local 7 6: StackMap locals: int
StackMap stack:
iload 7
istore 8
start local 8 7: StackMap locals: int
StackMap stack:
iload 5
iload 8
iadd
istore 9
start local 9 8: aload 0
aload 1
iload 9
iload 4
invokevirtual org.glassfish.grizzly.AbstractBindingHandler.bind:(Ljava/lang/String;II)Lorg/glassfish/grizzly/Connection;
9: areturn
10: StackMap locals: org.glassfish.grizzly.AbstractBindingHandler java.lang.String org.glassfish.grizzly.PortRange int int int int int int int
StackMap stack: java.io.IOException
pop
11: iload 8
iconst_1
iadd
iload 6
irem
istore 8
end local 9 12: iload 8
iload 7
if_icmpne 7
13: new java.net.BindException
dup
ldc "Couldn't bind to any port in the range `%s`."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual org.glassfish.grizzly.PortRange.toString:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.net.BindException.<init>:(Ljava/lang/String;)V
athrow
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 14 1 host Ljava/lang/String;
0 14 2 portRange Lorg/glassfish/grizzly/PortRange;
0 14 3 randomStartPort Z
0 14 4 backlog I
1 14 5 lower I
2 14 6 range I
4 5 7 initialOffset I
6 14 7 initialOffset I
7 14 8 offset I
8 12 9 port I
Exception table:
from to target type
8 9 10 Class java.io.IOException
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;Lorg/glassfish/grizzly/PortRange;ZI)Lorg/glassfish/grizzly/Connection<*>;
MethodParameters:
Name Flags
host final
portRange final
randomStartPort
backlog final
public final void unbindAll();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
protected <T> T getSystemInheritedChannel(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.inheritedChannel:()Ljava/nio/channels/Channel;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.io.IOException
dup
ldc "Inherited channel is not set"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.nio.channels.Channel
StackMap stack:
aload 1
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 5
4: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Inherited channel is not "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", but "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/AbstractBindingHandler;
0 6 1 channelType Ljava/lang/Class<*>;
1 6 2 inheritedChannel Ljava/nio/channels/Channel;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<*>;)TT;
MethodParameters:
Name Flags
channelType final
}
SourceFile: "AbstractBindingHandler.java"
NestMembers:
org.glassfish.grizzly.AbstractBindingHandler$Builder
InnerClasses:
public abstract Builder = org.glassfish.grizzly.AbstractBindingHandler$Builder of org.glassfish.grizzly.AbstractBindingHandler