public final class org.apache.cassandra.streaming.StreamResultFuture extends com.google.common.util.concurrent.AbstractFuture<org.apache.cassandra.streaming.StreamState>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.streaming.StreamResultFuture
super_class: com.google.common.util.concurrent.AbstractFuture
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public final java.util.UUID planId;
descriptor: Ljava/util/UUID;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final java.lang.String description;
descriptor: Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private final org.apache.cassandra.streaming.StreamCoordinator coordinator;
descriptor: Lorg/apache/cassandra/streaming/StreamCoordinator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Collection<org.apache.cassandra.streaming.StreamEventHandler> eventListeners;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamEventHandler;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/streaming/StreamResultFuture;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.streaming.StreamResultFuture.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.util.UUID, java.lang.String, org.apache.cassandra.streaming.StreamCoordinator);
descriptor: (Ljava/util/UUID;Ljava/lang/String;Lorg/apache/cassandra/streaming/StreamCoordinator;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial com.google.common.util.concurrent.AbstractFuture.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield org.apache.cassandra.streaming.StreamResultFuture.eventListeners:Ljava/util/Collection;
2: aload 0
aload 1
putfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
3: aload 0
aload 2
putfield org.apache.cassandra.streaming.StreamResultFuture.description:Ljava/lang/String;
4: aload 0
aload 3
putfield org.apache.cassandra.streaming.StreamResultFuture.coordinator:Lorg/apache/cassandra/streaming/StreamCoordinator;
5: aload 3
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.isReceiving:()Z
ifne 7
aload 3
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.hasActiveSessions:()Z
ifne 7
6: aload 0
aload 0
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.getCurrentState:()Lorg/apache/cassandra/streaming/StreamState;
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.set:(Ljava/lang/Object;)Z
pop
7: StackMap locals: org.apache.cassandra.streaming.StreamResultFuture java.util.UUID java.lang.String org.apache.cassandra.streaming.StreamCoordinator
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 8 1 planId Ljava/util/UUID;
0 8 2 description Ljava/lang/String;
0 8 3 coordinator Lorg/apache/cassandra/streaming/StreamCoordinator;
MethodParameters:
Name Flags
planId
description
coordinator
private void <init>(java.util.UUID, java.lang.String, boolean, boolean);
descriptor: (Ljava/util/UUID;Ljava/lang/String;ZZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
new org.apache.cassandra.streaming.StreamCoordinator
dup
iconst_0
iload 3
iload 4
1: new org.apache.cassandra.streaming.DefaultConnectionFactory
dup
invokespecial org.apache.cassandra.streaming.DefaultConnectionFactory.<init>:()V
iconst_0
invokespecial org.apache.cassandra.streaming.StreamCoordinator.<init>:(IZZLorg/apache/cassandra/streaming/StreamConnectionFactory;Z)V
invokespecial org.apache.cassandra.streaming.StreamResultFuture.<init>:(Ljava/util/UUID;Ljava/lang/String;Lorg/apache/cassandra/streaming/StreamCoordinator;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 3 1 planId Ljava/util/UUID;
0 3 2 description Ljava/lang/String;
0 3 3 keepSSTableLevels Z
0 3 4 isIncremental Z
MethodParameters:
Name Flags
planId
description
keepSSTableLevels
isIncremental
static org.apache.cassandra.streaming.StreamResultFuture init(java.util.UUID, java.lang.String, java.util.Collection<org.apache.cassandra.streaming.StreamEventHandler>, org.apache.cassandra.streaming.StreamCoordinator);
descriptor: (Ljava/util/UUID;Ljava/lang/String;Ljava/util/Collection;Lorg/apache/cassandra/streaming/StreamCoordinator;)Lorg/apache/cassandra/streaming/StreamResultFuture;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 3
invokestatic org.apache.cassandra.streaming.StreamResultFuture.createAndRegister:(Ljava/util/UUID;Ljava/lang/String;Lorg/apache/cassandra/streaming/StreamCoordinator;)Lorg/apache/cassandra/streaming/StreamResultFuture;
astore 4
start local 4 1: aload 2
ifnull 6
2: aload 2
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 5
StackMap locals: java.util.UUID java.lang.String java.util.Collection org.apache.cassandra.streaming.StreamCoordinator org.apache.cassandra.streaming.StreamResultFuture top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamEventHandler
astore 5
start local 5 4: aload 4
aload 5
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.addEventListener:(Lorg/apache/cassandra/streaming/StreamEventHandler;)V
end local 5 5: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: StackMap locals: java.util.UUID java.lang.String java.util.Collection org.apache.cassandra.streaming.StreamCoordinator org.apache.cassandra.streaming.StreamResultFuture
StackMap stack:
getstatic org.apache.cassandra.streaming.StreamResultFuture.logger:Lorg/slf4j/Logger;
ldc "[Stream #{}] Executing streaming plan for {}"
aload 0
aload 1
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 3
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getAllStreamSessions:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 10
StackMap locals: java.util.UUID java.lang.String java.util.Collection org.apache.cassandra.streaming.StreamCoordinator org.apache.cassandra.streaming.StreamResultFuture top java.util.Iterator
StackMap stack:
8: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamSession
astore 5
start local 5 9: aload 5
aload 4
invokevirtual org.apache.cassandra.streaming.StreamSession.init:(Lorg/apache/cassandra/streaming/StreamResultFuture;)V
end local 5 10: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
11: aload 3
aload 4
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.connect:(Lorg/apache/cassandra/streaming/StreamResultFuture;)V
12: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 planId Ljava/util/UUID;
0 13 1 description Ljava/lang/String;
0 13 2 listeners Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamEventHandler;>;
0 13 3 coordinator Lorg/apache/cassandra/streaming/StreamCoordinator;
1 13 4 future Lorg/apache/cassandra/streaming/StreamResultFuture;
4 5 5 listener Lorg/apache/cassandra/streaming/StreamEventHandler;
9 10 5 session Lorg/apache/cassandra/streaming/StreamSession;
Signature: (Ljava/util/UUID;Ljava/lang/String;Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamEventHandler;>;Lorg/apache/cassandra/streaming/StreamCoordinator;)Lorg/apache/cassandra/streaming/StreamResultFuture;
MethodParameters:
Name Flags
planId
description
listeners
coordinator
public static synchronized org.apache.cassandra.streaming.StreamResultFuture initReceivingSide(int, java.util.UUID, java.lang.String, java.net.InetAddress, org.apache.cassandra.net.IncomingStreamingConnection, boolean, int, boolean, boolean);
descriptor: (ILjava/util/UUID;Ljava/lang/String;Ljava/net/InetAddress;Lorg/apache/cassandra/net/IncomingStreamingConnection;ZIZZ)Lorg/apache/cassandra/streaming/StreamResultFuture;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=10, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: getstatic org.apache.cassandra.streaming.StreamManager.instance:Lorg/apache/cassandra/streaming/StreamManager;
aload 1
invokevirtual org.apache.cassandra.streaming.StreamManager.getReceivingStream:(Ljava/util/UUID;)Lorg/apache/cassandra/streaming/StreamResultFuture;
astore 9
start local 9 1: aload 9
ifnonnull 5
2: getstatic org.apache.cassandra.streaming.StreamResultFuture.logger:Lorg/slf4j/Logger;
ldc "[Stream #{} ID#{}] Creating new streaming plan for {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 2
aastore
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
3: new org.apache.cassandra.streaming.StreamResultFuture
dup
aload 1
aload 2
iload 7
iload 8
invokespecial org.apache.cassandra.streaming.StreamResultFuture.<init>:(Ljava/util/UUID;Ljava/lang/String;ZZ)V
astore 9
4: getstatic org.apache.cassandra.streaming.StreamManager.instance:Lorg/apache/cassandra/streaming/StreamManager;
aload 9
invokevirtual org.apache.cassandra.streaming.StreamManager.registerReceiving:(Lorg/apache/cassandra/streaming/StreamResultFuture;)V
5: StackMap locals: org.apache.cassandra.streaming.StreamResultFuture
StackMap stack:
aload 9
aload 3
iload 0
aload 4
iload 5
iload 6
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.attachConnection:(Ljava/net/InetAddress;ILorg/apache/cassandra/net/IncomingStreamingConnection;ZI)V
6: getstatic org.apache.cassandra.streaming.StreamResultFuture.logger:Lorg/slf4j/Logger;
ldc "[Stream #{}, ID#{}] Received streaming plan for {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 2
aastore
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
7: aload 9
areturn
end local 9 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 8 0 sessionIndex I
0 8 1 planId Ljava/util/UUID;
0 8 2 description Ljava/lang/String;
0 8 3 from Ljava/net/InetAddress;
0 8 4 connection Lorg/apache/cassandra/net/IncomingStreamingConnection;
0 8 5 isForOutgoing Z
0 8 6 version I
0 8 7 keepSSTableLevel Z
0 8 8 isIncremental Z
1 8 9 future Lorg/apache/cassandra/streaming/StreamResultFuture;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sessionIndex
planId
description
from
connection
isForOutgoing
version
keepSSTableLevel
isIncremental
private static org.apache.cassandra.streaming.StreamResultFuture createAndRegister(java.util.UUID, java.lang.String, org.apache.cassandra.streaming.StreamCoordinator);
descriptor: (Ljava/util/UUID;Ljava/lang/String;Lorg/apache/cassandra/streaming/StreamCoordinator;)Lorg/apache/cassandra/streaming/StreamResultFuture;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.apache.cassandra.streaming.StreamResultFuture
dup
aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.streaming.StreamResultFuture.<init>:(Ljava/util/UUID;Ljava/lang/String;Lorg/apache/cassandra/streaming/StreamCoordinator;)V
astore 3
start local 3 1: getstatic org.apache.cassandra.streaming.StreamManager.instance:Lorg/apache/cassandra/streaming/StreamManager;
aload 3
invokevirtual org.apache.cassandra.streaming.StreamManager.register:(Lorg/apache/cassandra/streaming/StreamResultFuture;)V
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 planId Ljava/util/UUID;
0 3 1 description Ljava/lang/String;
0 3 2 coordinator Lorg/apache/cassandra/streaming/StreamCoordinator;
1 3 3 future Lorg/apache/cassandra/streaming/StreamResultFuture;
MethodParameters:
Name Flags
planId
description
coordinator
private void attachConnection(java.net.InetAddress, int, org.apache.cassandra.net.IncomingStreamingConnection, boolean, int);
descriptor: (Ljava/net/InetAddress;ILorg/apache/cassandra/net/IncomingStreamingConnection;ZI)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.coordinator:Lorg/apache/cassandra/streaming/StreamCoordinator;
aload 1
iload 2
aload 3
getfield org.apache.cassandra.net.IncomingStreamingConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getInetAddress:()Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getOrCreateSessionById:(Ljava/net/InetAddress;ILjava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamSession;
astore 6
start local 6 1: aload 6
aload 0
invokevirtual org.apache.cassandra.streaming.StreamSession.init:(Lorg/apache/cassandra/streaming/StreamResultFuture;)V
2: aload 6
getfield org.apache.cassandra.streaming.StreamSession.handler:Lorg/apache/cassandra/streaming/ConnectionHandler;
aload 3
iload 4
iload 5
invokevirtual org.apache.cassandra.streaming.ConnectionHandler.initiateOnReceivingSide:(Lorg/apache/cassandra/net/IncomingStreamingConnection;ZI)V
3: return
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 4 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 4 1 from Ljava/net/InetAddress;
0 4 2 sessionIndex I
0 4 3 connection Lorg/apache/cassandra/net/IncomingStreamingConnection;
0 4 4 isForOutgoing Z
0 4 5 version I
1 4 6 session Lorg/apache/cassandra/streaming/StreamSession;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
from
sessionIndex
connection
isForOutgoing
version
public void addEventListener(org.apache.cassandra.streaming.StreamEventHandler);
descriptor: (Lorg/apache/cassandra/streaming/StreamEventHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic com.google.common.util.concurrent.Futures.addCallback:(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureCallback;)V
1: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.eventListeners:Ljava/util/Collection;
aload 1
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 3 1 listener Lorg/apache/cassandra/streaming/StreamEventHandler;
MethodParameters:
Name Flags
listener
public org.apache.cassandra.streaming.StreamState getCurrentState();
descriptor: ()Lorg/apache/cassandra/streaming/StreamState;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.streaming.StreamState
dup
aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.description:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.coordinator:Lorg/apache/cassandra/streaming/StreamCoordinator;
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getAllSessionInfo:()Ljava/util/Set;
invokespecial org.apache.cassandra.streaming.StreamState.<init>:(Ljava/util/UUID;Ljava/lang/String;Ljava/util/Set;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 1
iconst_1
ireturn
1: StackMap locals:
StackMap stack:
aload 1
ifnull 2
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 3
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.streaming.StreamResultFuture
astore 2
start local 2 4: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
aload 2
getfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
invokevirtual java.util.UUID.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 5 1 o Ljava/lang/Object;
4 5 2 that Lorg/apache/cassandra/streaming/StreamResultFuture;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
invokevirtual java.util.UUID.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
void handleSessionPrepared(org.apache.cassandra.streaming.StreamSession);
descriptor: (Lorg/apache/cassandra/streaming/StreamSession;)V
flags: (0x0000)
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.apache.cassandra.streaming.StreamSession.getSessionInfo:()Lorg/apache/cassandra/streaming/SessionInfo;
astore 2
start local 2 1: getstatic org.apache.cassandra.streaming.StreamResultFuture.logger:Lorg/slf4j/Logger;
ldc "[Stream #{} ID#{}] Prepare completed. Receiving {} files({}), sending {} files({})"
bipush 6
anewarray java.lang.Object
dup
iconst_0
2: aload 1
invokevirtual org.apache.cassandra.streaming.StreamSession.planId:()Ljava/util/UUID;
aastore
dup
iconst_1
3: aload 1
invokevirtual org.apache.cassandra.streaming.StreamSession.sessionIndex:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
4: aload 2
invokevirtual org.apache.cassandra.streaming.SessionInfo.getTotalFilesToReceive:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_3
5: aload 2
invokevirtual org.apache.cassandra.streaming.SessionInfo.getTotalSizeToReceive:()J
invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
aastore
dup
iconst_4
6: aload 2
invokevirtual org.apache.cassandra.streaming.SessionInfo.getTotalFilesToSend:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_5
7: aload 2
invokevirtual org.apache.cassandra.streaming.SessionInfo.getTotalSizeToSend:()J
invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
aastore
8: invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
9: new org.apache.cassandra.streaming.StreamEvent$SessionPreparedEvent
dup
aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
aload 2
invokespecial org.apache.cassandra.streaming.StreamEvent$SessionPreparedEvent.<init>:(Ljava/util/UUID;Lorg/apache/cassandra/streaming/SessionInfo;)V
astore 3
start local 3 10: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.coordinator:Lorg/apache/cassandra/streaming/StreamCoordinator;
aload 2
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.addSessionInfo:(Lorg/apache/cassandra/streaming/SessionInfo;)V
11: aload 0
aload 3
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.fireStreamEvent:(Lorg/apache/cassandra/streaming/StreamEvent;)V
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 13 1 session Lorg/apache/cassandra/streaming/StreamSession;
1 13 2 sessionInfo Lorg/apache/cassandra/streaming/SessionInfo;
10 13 3 event Lorg/apache/cassandra/streaming/StreamEvent$SessionPreparedEvent;
MethodParameters:
Name Flags
session
void handleSessionComplete(org.apache.cassandra.streaming.StreamSession);
descriptor: (Lorg/apache/cassandra/streaming/StreamSession;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.streaming.StreamResultFuture.logger:Lorg/slf4j/Logger;
ldc "[Stream #{}] Session with {} is complete"
aload 1
invokevirtual org.apache.cassandra.streaming.StreamSession.planId:()Ljava/util/UUID;
aload 1
getfield org.apache.cassandra.streaming.StreamSession.peer:Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
new org.apache.cassandra.streaming.StreamEvent$SessionCompleteEvent
dup
aload 1
invokespecial org.apache.cassandra.streaming.StreamEvent$SessionCompleteEvent.<init>:(Lorg/apache/cassandra/streaming/StreamSession;)V
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.fireStreamEvent:(Lorg/apache/cassandra/streaming/StreamEvent;)V
2: aload 1
invokevirtual org.apache.cassandra.streaming.StreamSession.getSessionInfo:()Lorg/apache/cassandra/streaming/SessionInfo;
astore 2
start local 2 3: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.coordinator:Lorg/apache/cassandra/streaming/StreamCoordinator;
aload 2
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.addSessionInfo:(Lorg/apache/cassandra/streaming/SessionInfo;)V
4: aload 0
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.maybeComplete:()V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 6 1 session Lorg/apache/cassandra/streaming/StreamSession;
3 6 2 sessionInfo Lorg/apache/cassandra/streaming/SessionInfo;
MethodParameters:
Name Flags
session
public void handleProgress(org.apache.cassandra.streaming.ProgressInfo);
descriptor: (Lorg/apache/cassandra/streaming/ProgressInfo;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.coordinator:Lorg/apache/cassandra/streaming/StreamCoordinator;
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.updateProgress:(Lorg/apache/cassandra/streaming/ProgressInfo;)V
1: aload 0
new org.apache.cassandra.streaming.StreamEvent$ProgressEvent
dup
aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
aload 1
invokespecial org.apache.cassandra.streaming.StreamEvent$ProgressEvent.<init>:(Ljava/util/UUID;Lorg/apache/cassandra/streaming/ProgressInfo;)V
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.fireStreamEvent:(Lorg/apache/cassandra/streaming/StreamEvent;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 3 1 progress Lorg/apache/cassandra/streaming/ProgressInfo;
MethodParameters:
Name Flags
progress
synchronized void fireStreamEvent(org.apache.cassandra.streaming.StreamEvent);
descriptor: (Lorg/apache/cassandra/streaming/StreamEvent;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.eventListeners:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: org.apache.cassandra.streaming.StreamResultFuture org.apache.cassandra.streaming.StreamEvent top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamEventHandler
astore 2
start local 2 2: aload 2
aload 1
invokeinterface org.apache.cassandra.streaming.StreamEventHandler.handleStreamEvent:(Lorg/apache/cassandra/streaming/StreamEvent;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
0 5 1 event Lorg/apache/cassandra/streaming/StreamEvent;
2 3 2 listener Lorg/apache/cassandra/streaming/StreamEventHandler;
MethodParameters:
Name Flags
event
private synchronized void maybeComplete();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.coordinator:Lorg/apache/cassandra/streaming/StreamCoordinator;
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.hasActiveSessions:()Z
ifne 8
1: aload 0
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.getCurrentState:()Lorg/apache/cassandra/streaming/StreamState;
astore 1
start local 1 2: aload 1
invokevirtual org.apache.cassandra.streaming.StreamState.hasFailedSession:()Z
ifeq 6
3: getstatic org.apache.cassandra.streaming.StreamResultFuture.logger:Lorg/slf4j/Logger;
ldc "[Stream #{}] Stream failed"
aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
4: aload 0
new org.apache.cassandra.streaming.StreamException
dup
aload 1
ldc "Stream failed"
invokespecial org.apache.cassandra.streaming.StreamException.<init>:(Lorg/apache/cassandra/streaming/StreamState;Ljava/lang/String;)V
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.setException:(Ljava/lang/Throwable;)Z
pop
5: goto 8
6: StackMap locals: org.apache.cassandra.streaming.StreamState
StackMap stack:
getstatic org.apache.cassandra.streaming.StreamResultFuture.logger:Lorg/slf4j/Logger;
ldc "[Stream #{}] All sessions completed"
aload 0
getfield org.apache.cassandra.streaming.StreamResultFuture.planId:Ljava/util/UUID;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
7: aload 0
aload 1
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.set:(Ljava/lang/Object;)Z
pop
end local 1 8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/streaming/StreamResultFuture;
2 8 1 finalState Lorg/apache/cassandra/streaming/StreamState;
}
Signature: Lcom/google/common/util/concurrent/AbstractFuture<Lorg/apache/cassandra/streaming/StreamState;>;
SourceFile: "StreamResultFuture.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