public class org.apache.cassandra.streaming.management.StreamEventJMXNotifier extends javax.management.NotificationBroadcasterSupport implements org.apache.cassandra.streaming.StreamEventHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.streaming.management.StreamEventJMXNotifier
super_class: javax.management.NotificationBroadcasterSupport
{
private static final long PROGRESS_NOTIFICATION_INTERVAL;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private final java.util.concurrent.atomic.AtomicLong seq;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long progressLastSent;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$streaming$StreamEvent$Type;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.management.NotificationBroadcasterSupport.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield org.apache.cassandra.streaming.management.StreamEventJMXNotifier.seq:Ljava/util/concurrent/atomic/AtomicLong;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/streaming/management/StreamEventJMXNotifier;
public void handleStreamEvent(org.apache.cassandra.streaming.StreamEvent);
descriptor: (Lorg/apache/cassandra/streaming/StreamEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: invokestatic org.apache.cassandra.streaming.management.StreamEventJMXNotifier.$SWITCH_TABLE$org$apache$cassandra$streaming$StreamEvent$Type:()[I
aload 1
getfield org.apache.cassandra.streaming.StreamEvent.eventType:Lorg/apache/cassandra/streaming/StreamEvent$Type;
invokevirtual org.apache.cassandra.streaming.StreamEvent$Type.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 2
2: 8
3: 14
default: 25
}
2: StackMap locals: javax.management.Notification
StackMap stack:
new javax.management.Notification
dup
ldc Lorg/apache/cassandra/streaming/StreamEvent$SessionPreparedEvent;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
3: ldc "org.apache.cassandra.net:type=StreamManager"
4: aload 0
getfield org.apache.cassandra.streaming.management.StreamEventJMXNotifier.seq:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndIncrement:()J
5: invokespecial javax.management.Notification.<init>:(Ljava/lang/String;Ljava/lang/Object;J)V
astore 2
6: aload 2
aload 1
getfield org.apache.cassandra.streaming.StreamEvent.planId:Ljava/util/UUID;
aload 1
checkcast org.apache.cassandra.streaming.StreamEvent$SessionPreparedEvent
getfield org.apache.cassandra.streaming.StreamEvent$SessionPreparedEvent.session:Lorg/apache/cassandra/streaming/SessionInfo;
invokestatic org.apache.cassandra.streaming.management.SessionInfoCompositeData.toCompositeData:(Ljava/util/UUID;Lorg/apache/cassandra/streaming/SessionInfo;)Ljavax/management/openmbean/CompositeData;
invokevirtual javax.management.Notification.setUserData:(Ljava/lang/Object;)V
7: goto 25
8: StackMap locals:
StackMap stack:
new javax.management.Notification
dup
ldc Lorg/apache/cassandra/streaming/StreamEvent$SessionCompleteEvent;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
9: ldc "org.apache.cassandra.net:type=StreamManager"
10: aload 0
getfield org.apache.cassandra.streaming.management.StreamEventJMXNotifier.seq:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndIncrement:()J
11: invokespecial javax.management.Notification.<init>:(Ljava/lang/String;Ljava/lang/Object;J)V
astore 2
12: aload 2
aload 1
checkcast org.apache.cassandra.streaming.StreamEvent$SessionCompleteEvent
invokestatic org.apache.cassandra.streaming.management.SessionCompleteEventCompositeData.toCompositeData:(Lorg/apache/cassandra/streaming/StreamEvent$SessionCompleteEvent;)Ljavax/management/openmbean/CompositeData;
invokevirtual javax.management.Notification.setUserData:(Ljava/lang/Object;)V
13: goto 25
14: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.streaming.StreamEvent$ProgressEvent
getfield org.apache.cassandra.streaming.StreamEvent$ProgressEvent.progress:Lorg/apache/cassandra/streaming/ProgressInfo;
astore 3
start local 3 15: invokestatic java.lang.System.currentTimeMillis:()J
lstore 4
start local 4 16: lload 4
aload 0
getfield org.apache.cassandra.streaming.management.StreamEventJMXNotifier.progressLastSent:J
lsub
ldc 1000
lcmp
ifge 17
aload 3
invokevirtual org.apache.cassandra.streaming.ProgressInfo.isCompleted:()Z
ifeq 24
17: StackMap locals: org.apache.cassandra.streaming.ProgressInfo long
StackMap stack:
new javax.management.Notification
dup
ldc Lorg/apache/cassandra/streaming/StreamEvent$ProgressEvent;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
18: ldc "org.apache.cassandra.net:type=StreamManager"
19: aload 0
getfield org.apache.cassandra.streaming.management.StreamEventJMXNotifier.seq:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndIncrement:()J
20: invokespecial javax.management.Notification.<init>:(Ljava/lang/String;Ljava/lang/Object;J)V
astore 2
21: aload 2
aload 1
getfield org.apache.cassandra.streaming.StreamEvent.planId:Ljava/util/UUID;
aload 3
invokestatic org.apache.cassandra.streaming.management.ProgressInfoCompositeData.toCompositeData:(Ljava/util/UUID;Lorg/apache/cassandra/streaming/ProgressInfo;)Ljavax/management/openmbean/CompositeData;
invokevirtual javax.management.Notification.setUserData:(Ljava/lang/Object;)V
22: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield org.apache.cassandra.streaming.management.StreamEventJMXNotifier.progressLastSent:J
23: goto 25
24: StackMap locals:
StackMap stack:
return
end local 4 end local 3 25: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.cassandra.streaming.management.StreamEventJMXNotifier.sendNotification:(Ljavax/management/Notification;)V
26: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/apache/cassandra/streaming/management/StreamEventJMXNotifier;
0 27 1 event Lorg/apache/cassandra/streaming/StreamEvent;
1 27 2 notif Ljavax/management/Notification;
15 25 3 progress Lorg/apache/cassandra/streaming/ProgressInfo;
16 25 4 current J
MethodParameters:
Name Flags
event
public void onSuccess(org.apache.cassandra.streaming.StreamState);
descriptor: (Lorg/apache/cassandra/streaming/StreamState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new javax.management.Notification
dup
new java.lang.StringBuilder
dup
ldc Lorg/apache/cassandra/streaming/StreamEvent;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".success"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
1: ldc "org.apache.cassandra.net:type=StreamManager"
2: aload 0
getfield org.apache.cassandra.streaming.management.StreamEventJMXNotifier.seq:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndIncrement:()J
3: invokespecial javax.management.Notification.<init>:(Ljava/lang/String;Ljava/lang/Object;J)V
astore 2
start local 2 4: aload 2
aload 1
invokestatic org.apache.cassandra.streaming.management.StreamStateCompositeData.toCompositeData:(Lorg/apache/cassandra/streaming/StreamState;)Ljavax/management/openmbean/CompositeData;
invokevirtual javax.management.Notification.setUserData:(Ljava/lang/Object;)V
5: aload 0
aload 2
invokevirtual org.apache.cassandra.streaming.management.StreamEventJMXNotifier.sendNotification:(Ljavax/management/Notification;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/streaming/management/StreamEventJMXNotifier;
0 7 1 result Lorg/apache/cassandra/streaming/StreamState;
4 7 2 notif Ljavax/management/Notification;
MethodParameters:
Name Flags
result
public void onFailure(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new javax.management.Notification
dup
new java.lang.StringBuilder
dup
ldc Lorg/apache/cassandra/streaming/StreamEvent;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".failure"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
1: ldc "org.apache.cassandra.net:type=StreamManager"
2: aload 0
getfield org.apache.cassandra.streaming.management.StreamEventJMXNotifier.seq:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndIncrement:()J
3: invokespecial javax.management.Notification.<init>:(Ljava/lang/String;Ljava/lang/Object;J)V
astore 2
start local 2 4: aload 2
aload 1
invokevirtual java.lang.Throwable.fillInStackTrace:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.toString:()Ljava/lang/String;
invokevirtual javax.management.Notification.setUserData:(Ljava/lang/Object;)V
5: aload 0
aload 2
invokevirtual org.apache.cassandra.streaming.management.StreamEventJMXNotifier.sendNotification:(Ljavax/management/Notification;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/streaming/management/StreamEventJMXNotifier;
0 7 1 t Ljava/lang/Throwable;
4 7 2 notif Ljavax/management/Notification;
MethodParameters:
Name Flags
t
public void onSuccess(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.apache.cassandra.streaming.StreamState
invokevirtual org.apache.cassandra.streaming.management.StreamEventJMXNotifier.onSuccess:(Lorg/apache/cassandra/streaming/StreamState;)V
return
LocalVariableTable:
Start End Slot Name Signature
static int[] $SWITCH_TABLE$org$apache$cassandra$streaming$StreamEvent$Type();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.streaming.management.StreamEventJMXNotifier.$SWITCH_TABLE$org$apache$cassandra$streaming$StreamEvent$Type:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.streaming.StreamEvent$Type.values:()[Lorg/apache/cassandra/streaming/StreamEvent$Type;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.streaming.StreamEvent$Type.FILE_PROGRESS:Lorg/apache/cassandra/streaming/StreamEvent$Type;
invokevirtual org.apache.cassandra.streaming.StreamEvent$Type.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.cassandra.streaming.StreamEvent$Type.STREAM_COMPLETE:Lorg/apache/cassandra/streaming/StreamEvent$Type;
invokevirtual org.apache.cassandra.streaming.StreamEvent$Type.ordinal:()I
iconst_2
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.streaming.StreamEvent$Type.STREAM_PREPARED:Lorg/apache/cassandra/streaming/StreamEvent$Type;
invokevirtual org.apache.cassandra.streaming.StreamEvent$Type.ordinal:()I
iconst_1
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic org.apache.cassandra.streaming.management.StreamEventJMXNotifier.$SWITCH_TABLE$org$apache$cassandra$streaming$StreamEvent$Type:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
SourceFile: "StreamEventJMXNotifier.java"
InnerClasses:
public ProgressEvent = org.apache.cassandra.streaming.StreamEvent$ProgressEvent of org.apache.cassandra.streaming.StreamEvent
public SessionCompleteEvent = org.apache.cassandra.streaming.StreamEvent$SessionCompleteEvent of org.apache.cassandra.streaming.StreamEvent
public SessionPreparedEvent = org.apache.cassandra.streaming.StreamEvent$SessionPreparedEvent of org.apache.cassandra.streaming.StreamEvent
public final Type = org.apache.cassandra.streaming.StreamEvent$Type of org.apache.cassandra.streaming.StreamEvent