public class org.apache.cassandra.streaming.StreamCoordinator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.streaming.StreamCoordinator
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor streamExecutor;
descriptor: Lorg/apache/cassandra/concurrent/DebuggableThreadPoolExecutor;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final boolean connectSequentially;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Map<java.net.InetAddress, org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData> peerSessions;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/net/InetAddress;Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;>;
private final int connectionsPerHost;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.apache.cassandra.streaming.StreamConnectionFactory factory;
descriptor: Lorg/apache/cassandra/streaming/StreamConnectionFactory;
flags: (0x0002) ACC_PRIVATE
private final boolean keepSSTableLevel;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean isIncremental;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Iterator<org.apache.cassandra.streaming.StreamSession> sessionsToConnect;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<Lorg/apache/cassandra/streaming/StreamSession;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/streaming/StreamCoordinator;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.streaming.StreamCoordinator.logger:Lorg/slf4j/Logger;
1: ldc "StreamConnectionEstablisher"
2: invokestatic org.apache.cassandra.utils.FBUtilities.getAvailableProcessors:()I
3: invokestatic org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor.createWithFixedPoolSize:(Ljava/lang/String;I)Lorg/apache/cassandra/concurrent/DebuggableThreadPoolExecutor;
putstatic org.apache.cassandra.streaming.StreamCoordinator.streamExecutor:Lorg/apache/cassandra/concurrent/DebuggableThreadPoolExecutor;
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int, boolean, boolean, org.apache.cassandra.streaming.StreamConnectionFactory, boolean);
descriptor: (IZZLorg/apache/cassandra/streaming/StreamConnectionFactory;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
2: aload 0
aconst_null
putfield org.apache.cassandra.streaming.StreamCoordinator.sessionsToConnect:Ljava/util/Iterator;
3: aload 0
iload 1
putfield org.apache.cassandra.streaming.StreamCoordinator.connectionsPerHost:I
4: aload 0
aload 4
putfield org.apache.cassandra.streaming.StreamCoordinator.factory:Lorg/apache/cassandra/streaming/StreamConnectionFactory;
5: aload 0
iload 2
putfield org.apache.cassandra.streaming.StreamCoordinator.keepSSTableLevel:Z
6: aload 0
iload 3
putfield org.apache.cassandra.streaming.StreamCoordinator.isIncremental:Z
7: aload 0
iload 5
putfield org.apache.cassandra.streaming.StreamCoordinator.connectSequentially:Z
8: return
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 9 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 9 1 connectionsPerHost I
0 9 2 keepSSTableLevel Z
0 9 3 isIncremental Z
0 9 4 factory Lorg/apache/cassandra/streaming/StreamConnectionFactory;
0 9 5 connectSequentially Z
MethodParameters:
Name Flags
connectionsPerHost
keepSSTableLevel
isIncremental
factory
connectSequentially
public void setConnectionFactory(org.apache.cassandra.streaming.StreamConnectionFactory);
descriptor: (Lorg/apache/cassandra/streaming/StreamConnectionFactory;)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.apache.cassandra.streaming.StreamCoordinator.factory:Lorg/apache/cassandra/streaming/StreamConnectionFactory;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 2 1 factory Lorg/apache/cassandra/streaming/StreamConnectionFactory;
MethodParameters:
Name Flags
factory
public synchronized boolean hasActiveSessions();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: org.apache.cassandra.streaming.StreamCoordinator top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
astore 1
start local 1 2: aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.hasActiveSessions:()Z
ifeq 4
3: iconst_1
ireturn
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
2 4 1 data Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
public synchronized java.util.Collection<org.apache.cassandra.streaming.StreamSession> getAllStreamSessions();
descriptor: ()Ljava/util/Collection;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.cassandra.streaming.StreamCoordinator java.util.Collection top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
astore 2
start local 2 3: aload 1
aload 2
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.getAllStreamSessions:()Ljava/util/Collection;
invokeinterface java.util.Collection.addAll:(Ljava/util/Collection;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
1 6 1 results Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamSession;>;
3 4 2 data Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
Signature: ()Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamSession;>;
public boolean isReceiving();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.connectionsPerHost:I
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
public void connect(org.apache.cassandra.streaming.StreamResultFuture);
descriptor: (Lorg/apache/cassandra/streaming/StreamResultFuture;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.connectSequentially:Z
ifeq 2
1: aload 0
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.connectSequentially:(Lorg/apache/cassandra/streaming/StreamResultFuture;)V
goto 3
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.connectAllStreamSessions:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 4 1 future Lorg/apache/cassandra/streaming/StreamResultFuture;
MethodParameters:
Name Flags
future
private void connectAllStreamSessions();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: org.apache.cassandra.streaming.StreamCoordinator top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
astore 1
start local 1 2: aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.connectAllStreamSessions:()V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
2 3 1 data Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
private void connectSequentially(org.apache.cassandra.streaming.StreamResultFuture);
descriptor: (Lorg/apache/cassandra/streaming/StreamResultFuture;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getAllStreamSessions:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
putfield org.apache.cassandra.streaming.StreamCoordinator.sessionsToConnect:Ljava/util/Iterator;
1: aload 1
new org.apache.cassandra.streaming.StreamCoordinator$1
dup
aload 0
invokespecial org.apache.cassandra.streaming.StreamCoordinator$1.<init>:(Lorg/apache/cassandra/streaming/StreamCoordinator;)V
invokevirtual org.apache.cassandra.streaming.StreamResultFuture.addEventListener:(Lorg/apache/cassandra/streaming/StreamEventHandler;)V
2: aload 0
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.connectNext:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 4 1 future Lorg/apache/cassandra/streaming/StreamResultFuture;
MethodParameters:
Name Flags
future
private void connectNext();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.sessionsToConnect:Ljava/util/Iterator;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.sessionsToConnect:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 7
3: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.sessionsToConnect:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamSession
astore 1
start local 1 4: getstatic org.apache.cassandra.streaming.StreamCoordinator.logger:Lorg/slf4j/Logger;
ldc "Connecting next session {} with {}."
aload 1
invokevirtual org.apache.cassandra.streaming.StreamSession.planId:()Ljava/util/UUID;
aload 1
getfield org.apache.cassandra.streaming.StreamSession.peer:Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
5: getstatic org.apache.cassandra.streaming.StreamCoordinator.streamExecutor:Lorg/apache/cassandra/concurrent/DebuggableThreadPoolExecutor;
new org.apache.cassandra.streaming.StreamCoordinator$StreamSessionConnector
dup
aload 1
invokespecial org.apache.cassandra.streaming.StreamCoordinator$StreamSessionConnector.<init>:(Lorg/apache/cassandra/streaming/StreamSession;)V
invokevirtual org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor.execute:(Ljava/lang/Runnable;)V
end local 1 6: goto 8
7: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.streaming.StreamCoordinator.logger:Lorg/slf4j/Logger;
ldc "Finished connecting all sessions"
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
4 6 1 next Lorg/apache/cassandra/streaming/StreamSession;
public synchronized java.util.Set<java.net.InetAddress> getPeers();
descriptor: ()Ljava/util/Set;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.HashSet
dup
aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
Signature: ()Ljava/util/Set<Ljava/net/InetAddress;>;
public synchronized org.apache.cassandra.streaming.StreamSession getOrCreateNextSession(java.net.InetAddress, java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamSession;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getOrCreateHostData:(Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
aload 1
aload 2
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.getOrCreateNextSession:(Ljava/net/InetAddress;Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamSession;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 1 1 peer Ljava/net/InetAddress;
0 1 2 connecting Ljava/net/InetAddress;
MethodParameters:
Name Flags
peer
connecting
public synchronized org.apache.cassandra.streaming.StreamSession getOrCreateSessionById(java.net.InetAddress, int, java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;ILjava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamSession;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getOrCreateHostData:(Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
aload 1
iload 2
aload 3
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.getOrCreateSessionById:(Ljava/net/InetAddress;ILjava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamSession;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 1 1 peer Ljava/net/InetAddress;
0 1 2 id I
0 1 3 connecting Ljava/net/InetAddress;
MethodParameters:
Name Flags
peer
id
connecting
public synchronized void updateProgress(org.apache.cassandra.streaming.ProgressInfo);
descriptor: (Lorg/apache/cassandra/streaming/ProgressInfo;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield org.apache.cassandra.streaming.ProgressInfo.peer:Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getHostData:(Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.updateProgress:(Lorg/apache/cassandra/streaming/ProgressInfo;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 2 1 info Lorg/apache/cassandra/streaming/ProgressInfo;
MethodParameters:
Name Flags
info
public synchronized void addSessionInfo(org.apache.cassandra.streaming.SessionInfo);
descriptor: (Lorg/apache/cassandra/streaming/SessionInfo;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield org.apache.cassandra.streaming.SessionInfo.peer:Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getOrCreateHostData:(Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
astore 2
start local 2 1: aload 2
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.addSessionInfo:(Lorg/apache/cassandra/streaming/SessionInfo;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 3 1 session Lorg/apache/cassandra/streaming/SessionInfo;
1 3 2 data Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
MethodParameters:
Name Flags
session
public synchronized java.util.Set<org.apache.cassandra.streaming.SessionInfo> getAllSessionInfo();
descriptor: ()Ljava/util/Set;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.cassandra.streaming.StreamCoordinator java.util.Set top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
astore 2
start local 2 3: aload 1
aload 2
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.getAllSessionInfo:()Ljava/util/Collection;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
1 6 1 result Ljava/util/Set<Lorg/apache/cassandra/streaming/SessionInfo;>;
3 4 2 data Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
Signature: ()Ljava/util/Set<Lorg/apache/cassandra/streaming/SessionInfo;>;
public synchronized void transferFiles(java.net.InetAddress, java.util.Collection<org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections>);
descriptor: (Ljava/net/InetAddress;Ljava/util/Collection;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.getOrCreateHostData:(Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
astore 3
start local 3 1: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.connectionsPerHost:I
iconst_1
if_icmple 9
2: aload 0
aload 2
invokevirtual org.apache.cassandra.streaming.StreamCoordinator.sliceSSTableDetails:(Ljava/util/Collection;)Ljava/util/List;
astore 4
start local 4 3: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: org.apache.cassandra.streaming.StreamCoordinator java.net.InetAddress java.util.Collection org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData java.util.List top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.List
astore 5
start local 5 5: aload 3
aload 1
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.getOrCreateNextSession:(Ljava/net/InetAddress;Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamSession;
astore 7
start local 7 6: aload 7
aload 5
invokevirtual org.apache.cassandra.streaming.StreamSession.addTransferFiles:(Ljava/util/Collection;)V
end local 7 end local 5 7: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 4 8: goto 11
9: StackMap locals: org.apache.cassandra.streaming.StreamCoordinator java.net.InetAddress java.util.Collection org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
StackMap stack:
aload 3
aload 1
aload 1
invokevirtual org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.getOrCreateNextSession:(Ljava/net/InetAddress;Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamSession;
astore 4
start local 4 10: aload 4
aload 2
invokevirtual org.apache.cassandra.streaming.StreamSession.addTransferFiles:(Ljava/util/Collection;)V
end local 4 11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 12 1 to Ljava/net/InetAddress;
0 12 2 sstableDetails Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;
1 12 3 sessionList Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
3 8 4 buckets Ljava/util/List<Ljava/util/List<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;>;
5 7 5 subList Ljava/util/List<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;
6 7 7 session Lorg/apache/cassandra/streaming/StreamSession;
10 11 4 session Lorg/apache/cassandra/streaming/StreamSession;
Signature: (Ljava/net/InetAddress;Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;)V
MethodParameters:
Name Flags
to
sstableDetails
private java.util.List<java.util.List<org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections>> sliceSSTableDetails(java.util.Collection<org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections>);
descriptor: (Ljava/util/Collection;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Collection.size:()I
aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.connectionsPerHost:I
invokestatic java.lang.Math.min:(II)I
istore 2
start local 2 1: aload 1
invokeinterface java.util.Collection.size:()I
i2f
iload 2
i2f
fdiv
invokestatic java.lang.Math.round:(F)I
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 4: aconst_null
astore 6
start local 6 5: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
start local 7 6: goto 14
7: StackMap locals: org.apache.cassandra.streaming.StreamCoordinator java.util.Collection int int int java.util.List java.util.List java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections
astore 8
start local 8 8: iload 4
iload 3
irem
ifne 11
9: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
10: aload 5
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: StackMap locals: org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections
StackMap stack:
aload 6
aload 8
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: iinc 4 1
13: aload 7
invokeinterface java.util.Iterator.remove:()V
end local 8 14: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
15: aload 5
areturn
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 16 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 16 1 sstableDetails Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;
1 16 2 targetSlices I
2 16 3 step I
3 16 4 index I
4 16 5 result Ljava/util/List<Ljava/util/List<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;>;
5 16 6 slice Ljava/util/List<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;
6 16 7 iter Ljava/util/Iterator<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;
8 14 8 streamSession Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;)Ljava/util/List<Ljava/util/List<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;>;
MethodParameters:
Name Flags
sstableDetails
private org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData getHostData(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown peer requested: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
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/apache/cassandra/streaming/StreamCoordinator;
0 4 1 peer Ljava/net/InetAddress;
1 4 2 data Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
MethodParameters:
Name Flags
peer
private org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData getOrCreateHostData(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
astore 2
start local 2 1: aload 2
ifnonnull 4
2: new org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
dup
aload 0
invokespecial org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData.<init>:(Lorg/apache/cassandra/streaming/StreamCoordinator;)V
astore 2
3: aload 0
getfield org.apache.cassandra.streaming.StreamCoordinator.peerSessions:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/streaming/StreamCoordinator;
0 5 1 peer Ljava/net/InetAddress;
1 5 2 data Lorg/apache/cassandra/streaming/StreamCoordinator$HostStreamingData;
MethodParameters:
Name Flags
peer
public static void shutdownAndWait(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 2 0: lload 0
aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
getstatic org.apache.cassandra.streaming.StreamCoordinator.streamExecutor:Lorg/apache/cassandra/concurrent/DebuggableThreadPoolExecutor;
aastore
invokestatic org.apache.cassandra.utils.ExecutorUtils.shutdownAndWait:(JLjava/util/concurrent/TimeUnit;[Ljava/lang/Object;)V
1: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 timeout J
0 2 2 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
timeout
unit
}
SourceFile: "StreamCoordinator.java"
NestMembers:
org.apache.cassandra.streaming.StreamCoordinator$1 org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData org.apache.cassandra.streaming.StreamCoordinator$StreamSessionConnector
InnerClasses:
org.apache.cassandra.streaming.StreamCoordinator$1
private HostStreamingData = org.apache.cassandra.streaming.StreamCoordinator$HostStreamingData of org.apache.cassandra.streaming.StreamCoordinator
private StreamSessionConnector = org.apache.cassandra.streaming.StreamCoordinator$StreamSessionConnector of org.apache.cassandra.streaming.StreamCoordinator
public SSTableStreamingSections = org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections of org.apache.cassandra.streaming.StreamSession