public class org.glassfish.grizzly.comet.DefaultNotificationHandler extends java.lang.Object implements org.glassfish.grizzly.comet.NotificationHandler
{
private static final java.util.logging.Logger logger;
private static final java.lang.IllegalStateException ISEempty;
protected java.util.concurrent.ExecutorService threadPool;
public void <init>()
{
org.glassfish.grizzly.comet.DefaultNotificationHandler v;
v := @this: org.glassfish.grizzly.comet.DefaultNotificationHandler;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
protected void setThreadPool(java.util.concurrent.ExecutorService)
{
java.util.concurrent.ExecutorService v;
org.glassfish.grizzly.comet.DefaultNotificationHandler v;
v := @this: org.glassfish.grizzly.comet.DefaultNotificationHandler;
v := @parameter: java.util.concurrent.ExecutorService;
v.<org.glassfish.grizzly.comet.DefaultNotificationHandler: java.util.concurrent.ExecutorService threadPool> = v;
return;
}
public void notify(org.glassfish.grizzly.comet.CometEvent, java.util.Iterator) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometEvent v;
java.util.Iterator v;
java.lang.Object v;
org.glassfish.grizzly.comet.DefaultNotificationHandler v;
boolean v;
v := @this: org.glassfish.grizzly.comet.DefaultNotificationHandler;
v := @parameter: org.glassfish.grizzly.comet.CometEvent;
v := @parameter: java.util.Iterator;
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
virtualinvoke v.<org.glassfish.grizzly.comet.DefaultNotificationHandler: void notify(org.glassfish.grizzly.comet.CometEvent,org.glassfish.grizzly.comet.CometHandler)>(v, v);
goto label;
label:
return;
}
public void notify(org.glassfish.grizzly.comet.CometEvent, org.glassfish.grizzly.comet.CometHandler) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometEvent v;
org.glassfish.grizzly.comet.CometHandler v;
org.glassfish.grizzly.comet.DefaultNotificationHandler v;
v := @this: org.glassfish.grizzly.comet.DefaultNotificationHandler;
v := @parameter: org.glassfish.grizzly.comet.CometEvent;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
virtualinvoke v.<org.glassfish.grizzly.comet.DefaultNotificationHandler: void notify0(org.glassfish.grizzly.comet.CometEvent,org.glassfish.grizzly.comet.CometHandler)>(v, v);
return;
}
protected void notify0(org.glassfish.grizzly.comet.CometEvent, org.glassfish.grizzly.comet.CometHandler)
{
java.lang.Throwable v, v;
java.lang.IllegalStateException v;
org.glassfish.grizzly.comet.CometContext v, v;
org.glassfish.grizzly.comet.CometHandler v;
java.util.logging.Level v, v;
int[] v;
int v, v;
boolean v;
java.util.logging.Logger v, v;
org.glassfish.grizzly.comet.CometEvent v;
org.glassfish.grizzly.comet.CometEvent$Type v;
org.glassfish.grizzly.comet.DefaultNotificationHandler v;
v := @this: org.glassfish.grizzly.comet.DefaultNotificationHandler;
v := @parameter: org.glassfish.grizzly.comet.CometEvent;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
label:
v = <org.glassfish.grizzly.comet.DefaultNotificationHandler$1: int[] $SwitchMap$org$glassfish$grizzly$comet$CometEvent$Type>;
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometEvent: org.glassfish.grizzly.comet.CometEvent$Type getType()>();
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometEvent$Type: int ordinal()>();
v = v[v];
tableswitch(v)
{
case 1: goto label;
case 2: goto label;
case 3: goto label;
case 4: goto label;
case 5: goto label;
case 6: goto label;
default: goto label;
};
label:
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void onInterrupt(org.glassfish.grizzly.comet.CometEvent)>(v);
goto label;
label:
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometEvent: org.glassfish.grizzly.comet.CometContext getCometContext()>();
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: boolean isActive(org.glassfish.grizzly.comet.CometHandler)>(v);
if v == 0 goto label;
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void onEvent(org.glassfish.grizzly.comet.CometEvent)>(v);
goto label;
label:
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void onInitialize(org.glassfish.grizzly.comet.CometEvent)>(v);
goto label;
label:
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void onTerminate(org.glassfish.grizzly.comet.CometEvent)>(v);
goto label;
label:
v = <org.glassfish.grizzly.comet.DefaultNotificationHandler: java.lang.IllegalStateException ISEempty>;
throw v;
label:
v := @caughtexception;
v = <org.glassfish.grizzly.comet.DefaultNotificationHandler: java.util.logging.Logger logger>;
v = <java.util.logging.Level: java.util.logging.Level FINE>;
virtualinvoke v.<java.util.logging.Logger: void log(java.util.logging.Level,java.lang.String,java.lang.Throwable)>(v, "Notification failed: ", v);
label:
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometEvent: org.glassfish.grizzly.comet.CometContext getCometContext()>();
virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: boolean resumeCometHandler(org.glassfish.grizzly.comet.CometHandler)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <org.glassfish.grizzly.comet.DefaultNotificationHandler: java.util.logging.Logger logger>;
v = <java.util.logging.Level: java.util.logging.Level FINE>;
virtualinvoke v.<java.util.logging.Logger: void log(java.util.logging.Level,java.lang.String,java.lang.Throwable)>(v, "Resume phase failed: ", v);
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
static void <clinit>()
{
java.lang.IllegalStateException v;
java.lang.Class v;
java.lang.String v;
java.util.logging.Logger v;
v = class "Lorg/glassfish/grizzly/comet/DefaultNotificationHandler;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = staticinvoke <java.util.logging.Logger: java.util.logging.Logger getLogger(java.lang.String)>(v);
<org.glassfish.grizzly.comet.DefaultNotificationHandler: java.util.logging.Logger logger> = v;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>()>();
<org.glassfish.grizzly.comet.DefaultNotificationHandler: java.lang.IllegalStateException ISEempty> = v;
return;
}
}