public class org.glassfish.grizzly.comet.CometEngine
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.comet.CometEngine
super_class: java.lang.Object
{
public static final int DISABLE_SUSPEND_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final int DISABLE_CLIENT_DISCONNECTION_DETECTION;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final int BEFORE_REQUEST_PROCESSING;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final int AFTER_SERVLET_PROCESSING;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final int AFTER_RESPONSE_PROCESSING;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
RuntimeVisibleAnnotations:
java.lang.Deprecated()
protected static final java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected java.util.concurrent.ExecutorService threadPool;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0004) ACC_PROTECTED
private static final org.glassfish.grizzly.comet.CometEngine cometEngine;
descriptor: Lorg/glassfish/grizzly/comet/CometEngine;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected final java.util.Map<java.lang.String, org.glassfish.grizzly.comet.CometContext> activeContexts;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/glassfish/grizzly/comet/CometContext;>;
private boolean isCometSupported;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/comet/CometEngine;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.comet.CometEngine.logger:Ljava/util/logging/Logger;
1: new org.glassfish.grizzly.comet.CometEngine
dup
invokespecial org.glassfish.grizzly.comet.CometEngine.<init>:()V
putstatic org.glassfish.grizzly.comet.CometEngine.cometEngine:Lorg/glassfish/grizzly/comet/CometEngine;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
bipush 16
ldc 0.75
bipush 64
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(IFI)V
putfield org.glassfish.grizzly.comet.CometEngine.activeContexts:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/comet/CometEngine;
protected boolean isCometEnabled();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.comet.CometEngine.isCometSupported:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometEngine;
public void setCometSupported(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.comet.CometEngine.isCometSupported:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 2 1 supported Z
MethodParameters:
Name Flags
supported
public static org.glassfish.grizzly.comet.CometEngine getEngine();
descriptor: ()Lorg/glassfish/grizzly/comet/CometEngine;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.comet.CometEngine.cometEngine:Lorg/glassfish/grizzly/comet/CometEngine;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.glassfish.grizzly.comet.CometContext unregister(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/comet/CometContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.comet.CometEngine.deregister:(Ljava/lang/String;)Lorg/glassfish/grizzly/comet/CometContext;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 1 1 topic Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
topic
public org.glassfish.grizzly.comet.CometContext deregister(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/comet/CometContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.comet.CometEngine.activeContexts:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.comet.CometContext
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
invokevirtual org.glassfish.grizzly.comet.CometContext.recycle:()V
3: StackMap locals: org.glassfish.grizzly.comet.CometContext
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 4 1 topic Ljava/lang/String;
1 4 2 cometContext Lorg/glassfish/grizzly/comet/CometContext;
MethodParameters:
Name Flags
topic
public <E> org.glassfish.grizzly.comet.CometContext<E> register(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lorg/glassfish/grizzly/comet/CometContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.comet.CometEngine.register:(Ljava/lang/String;)Lorg/glassfish/grizzly/comet/CometContext;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 1 1 topic Ljava/lang/String;
0 1 2 type I
Signature: <E:Ljava/lang/Object;>(Ljava/lang/String;I)Lorg/glassfish/grizzly/comet/CometContext<TE;>;
MethodParameters:
Name Flags
topic
type
public <E> org.glassfish.grizzly.comet.CometContext<E> register(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/comet/CometContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc Lorg/glassfish/grizzly/comet/DefaultNotificationHandler;
invokevirtual org.glassfish.grizzly.comet.CometEngine.register:(Ljava/lang/String;Ljava/lang/Class;)Lorg/glassfish/grizzly/comet/CometContext;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 1 1 topic Ljava/lang/String;
Signature: <E:Ljava/lang/Object;>(Ljava/lang/String;)Lorg/glassfish/grizzly/comet/CometContext<TE;>;
MethodParameters:
Name Flags
topic
public <E> org.glassfish.grizzly.comet.CometContext<E> register(java.lang.String, java.lang.Class<? extends org.glassfish.grizzly.comet.NotificationHandler>);
descriptor: (Ljava/lang/String;Ljava/lang/Class;)Lorg/glassfish/grizzly/comet/CometContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.glassfish.grizzly.comet.CometEngine.activeContexts:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.comet.CometContext
astore 3
start local 3 1: aload 3
ifnonnull 24
2: aload 0
getfield org.glassfish.grizzly.comet.CometEngine.activeContexts:Ljava/util/Map;
dup
astore 4
monitorenter
3: aload 0
getfield org.glassfish.grizzly.comet.CometEngine.activeContexts:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.comet.CometContext
astore 3
4: aload 3
ifnonnull 20
5: new org.glassfish.grizzly.comet.CometContext
dup
aload 0
aload 1
invokespecial org.glassfish.grizzly.comet.CometContext.<init>:(Lorg/glassfish/grizzly/comet/CometEngine;Ljava/lang/String;)V
astore 3
6: aload 2
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.comet.NotificationHandler
astore 5
start local 5 7: goto 16
end local 5 StackMap locals: org.glassfish.grizzly.comet.CometEngine java.lang.String java.lang.Class org.glassfish.grizzly.comet.CometContext java.util.Map
StackMap stack: java.lang.Throwable
8: astore 6
start local 6 9: getstatic org.glassfish.grizzly.comet.CometEngine.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.SEVERE:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 15
10: getstatic org.glassfish.grizzly.comet.CometEngine.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.SEVERE:Ljava/util/logging/Level;
11: aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
12: invokestatic org.glassfish.grizzly.localization.LogMessages.SEVERE_GRIZZLY_COMET_ENGINE_INVALID_NOTIFICATION_HANDLER_ERROR:(Ljava/lang/Object;)Ljava/lang/String;
13: aload 6
14: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
15: StackMap locals: org.glassfish.grizzly.comet.CometEngine java.lang.String java.lang.Class org.glassfish.grizzly.comet.CometContext java.util.Map top java.lang.Throwable
StackMap stack:
new org.glassfish.grizzly.comet.DefaultNotificationHandler
dup
invokespecial org.glassfish.grizzly.comet.DefaultNotificationHandler.<init>:()V
astore 5
end local 6 start local 5 16: StackMap locals: org.glassfish.grizzly.comet.CometEngine java.lang.String java.lang.Class org.glassfish.grizzly.comet.CometContext java.util.Map org.glassfish.grizzly.comet.NotificationHandler
StackMap stack:
aload 3
aload 5
invokevirtual org.glassfish.grizzly.comet.CometContext.setNotificationHandler:(Lorg/glassfish/grizzly/comet/NotificationHandler;)V
17: aload 5
ifnull 19
aload 5
instanceof org.glassfish.grizzly.comet.DefaultNotificationHandler
ifeq 19
18: aload 5
checkcast org.glassfish.grizzly.comet.DefaultNotificationHandler
aload 0
getfield org.glassfish.grizzly.comet.CometEngine.threadPool:Ljava/util/concurrent/ExecutorService;
invokevirtual org.glassfish.grizzly.comet.DefaultNotificationHandler.setThreadPool:(Ljava/util/concurrent/ExecutorService;)V
19: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.comet.CometEngine.activeContexts:Ljava/util/Map;
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 20: StackMap locals:
StackMap stack:
aload 4
monitorexit
21: goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
22: aload 4
monitorexit
23: athrow
24: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 25 1 topic Ljava/lang/String;
0 25 2 notificationClass Ljava/lang/Class<+Lorg/glassfish/grizzly/comet/NotificationHandler;>;
1 25 3 cometContext Lorg/glassfish/grizzly/comet/CometContext<TE;>;
7 8 5 notificationHandler Lorg/glassfish/grizzly/comet/NotificationHandler;
16 20 5 notificationHandler Lorg/glassfish/grizzly/comet/NotificationHandler;
9 16 6 t Ljava/lang/Throwable;
Exception table:
from to target type
6 7 8 Class java.lang.Throwable
3 21 22 any
22 23 22 any
Signature: <E:Ljava/lang/Object;>(Ljava/lang/String;Ljava/lang/Class<+Lorg/glassfish/grizzly/comet/NotificationHandler;>;)Lorg/glassfish/grizzly/comet/CometContext<TE;>;
MethodParameters:
Name Flags
topic
notificationClass
public <E> org.glassfish.grizzly.comet.CometContext<E> getCometContext(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/comet/CometContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.comet.CometEngine.activeContexts:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.comet.CometContext
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 1 1 topic Ljava/lang/String;
Signature: <E:Ljava/lang/Object;>(Ljava/lang/String;)Lorg/glassfish/grizzly/comet/CometContext<TE;>;
MethodParameters:
Name Flags
topic
protected boolean interrupt(org.glassfish.grizzly.comet.CometHandler, boolean);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;Z)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.glassfish.grizzly.comet.CometHandler.getCometContext:()Lorg/glassfish/grizzly/comet/CometContext;
astore 3
start local 3 1: aload 3
aload 1
iload 2
invokevirtual org.glassfish.grizzly.comet.CometContext.removeCometHandler:(Lorg/glassfish/grizzly/comet/CometHandler;Z)Z
istore 4
start local 4 2: iload 4
ifeq 4
iload 2
ifne 4
3: aload 0
aload 1
iload 2
invokevirtual org.glassfish.grizzly.comet.CometEngine.interrupt0:(Lorg/glassfish/grizzly/comet/CometHandler;Z)V
4: StackMap locals: org.glassfish.grizzly.comet.CometContext int
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 5 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
0 5 2 finishExecution Z
1 5 3 cometContext Lorg/glassfish/grizzly/comet/CometContext;
2 5 4 removed Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
handler
finishExecution
protected void interrupt0(org.glassfish.grizzly.comet.CometHandler, boolean);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 4
1: aload 1
aload 1
invokeinterface org.glassfish.grizzly.comet.CometHandler.getCometContext:()Lorg/glassfish/grizzly/comet/CometContext;
getfield org.glassfish.grizzly.comet.CometContext.eventInterrupt:Lorg/glassfish/grizzly/comet/CometEvent;
invokeinterface org.glassfish.grizzly.comet.CometHandler.onInterrupt:(Lorg/glassfish/grizzly/comet/CometEvent;)V
2: goto 4
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.glassfish.grizzly.comet.CometHandler.getResponse:()Lorg/glassfish/grizzly/http/server/Response;
invokevirtual org.glassfish.grizzly.http.server.Response.finish:()V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/comet/CometEngine;
0 6 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
0 6 2 finishExecution Z
Exception table:
from to target type
1 2 3 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
handler
finishExecution
public static java.util.logging.Logger logger();
descriptor: ()Ljava/util/logging/Logger;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.comet.CometEngine.logger:Ljava/util/logging/Logger;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "CometEngine.java"