public class com.mongodb.connection.ClusterDescription
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.connection.ClusterDescription
super_class: java.lang.Object
{
private final com.mongodb.connection.ClusterConnectionMode connectionMode;
descriptor: Lcom/mongodb/connection/ClusterConnectionMode;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.connection.ClusterType type;
descriptor: Lcom/mongodb/connection/ClusterType;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<com.mongodb.connection.ServerDescription> serverDescriptions;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
private final com.mongodb.connection.ClusterSettings clusterSettings;
descriptor: Lcom/mongodb/connection/ClusterSettings;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.connection.ServerSettings serverSettings;
descriptor: Lcom/mongodb/connection/ServerSettings;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.MongoException srvResolutionException;
descriptor: Lcom/mongodb/MongoException;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(com.mongodb.connection.ClusterConnectionMode, com.mongodb.connection.ClusterType, java.util.List<com.mongodb.connection.ServerDescription>);
descriptor: (Lcom/mongodb/connection/ClusterConnectionMode;Lcom/mongodb/connection/ClusterType;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
aconst_null
aconst_null
invokespecial com.mongodb.connection.ClusterDescription.<init>:(Lcom/mongodb/connection/ClusterConnectionMode;Lcom/mongodb/connection/ClusterType;Ljava/util/List;Lcom/mongodb/connection/ClusterSettings;Lcom/mongodb/connection/ServerSettings;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/connection/ClusterDescription;
0 2 1 connectionMode Lcom/mongodb/connection/ClusterConnectionMode;
0 2 2 type Lcom/mongodb/connection/ClusterType;
0 2 3 serverDescriptions Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
Signature: (Lcom/mongodb/connection/ClusterConnectionMode;Lcom/mongodb/connection/ClusterType;Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;)V
MethodParameters:
Name Flags
connectionMode final
type final
serverDescriptions final
public void <init>(com.mongodb.connection.ClusterConnectionMode, com.mongodb.connection.ClusterType, java.util.List<com.mongodb.connection.ServerDescription>, com.mongodb.connection.ClusterSettings, com.mongodb.connection.ServerSettings);
descriptor: (Lcom/mongodb/connection/ClusterConnectionMode;Lcom/mongodb/connection/ClusterType;Ljava/util/List;Lcom/mongodb/connection/ClusterSettings;Lcom/mongodb/connection/ServerSettings;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, 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
aload 1
aload 2
aconst_null
aload 3
aload 4
aload 5
invokespecial com.mongodb.connection.ClusterDescription.<init>:(Lcom/mongodb/connection/ClusterConnectionMode;Lcom/mongodb/connection/ClusterType;Lcom/mongodb/MongoException;Ljava/util/List;Lcom/mongodb/connection/ClusterSettings;Lcom/mongodb/connection/ServerSettings;)V
1: 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 2 0 this Lcom/mongodb/connection/ClusterDescription;
0 2 1 connectionMode Lcom/mongodb/connection/ClusterConnectionMode;
0 2 2 type Lcom/mongodb/connection/ClusterType;
0 2 3 serverDescriptions Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
0 2 4 clusterSettings Lcom/mongodb/connection/ClusterSettings;
0 2 5 serverSettings Lcom/mongodb/connection/ServerSettings;
Signature: (Lcom/mongodb/connection/ClusterConnectionMode;Lcom/mongodb/connection/ClusterType;Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;Lcom/mongodb/connection/ClusterSettings;Lcom/mongodb/connection/ServerSettings;)V
MethodParameters:
Name Flags
connectionMode final
type final
serverDescriptions final
clusterSettings final
serverSettings final
public void <init>(com.mongodb.connection.ClusterConnectionMode, com.mongodb.connection.ClusterType, com.mongodb.MongoException, java.util.List<com.mongodb.connection.ServerDescription>, com.mongodb.connection.ClusterSettings, com.mongodb.connection.ServerSettings);
descriptor: (Lcom/mongodb/connection/ClusterConnectionMode;Lcom/mongodb/connection/ClusterType;Lcom/mongodb/MongoException;Ljava/util/List;Lcom/mongodb/connection/ClusterSettings;Lcom/mongodb/connection/ServerSettings;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: ldc "all"
aload 4
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
ldc "connectionMode"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.connection.ClusterConnectionMode
putfield com.mongodb.connection.ClusterDescription.connectionMode:Lcom/mongodb/connection/ClusterConnectionMode;
3: aload 0
ldc "type"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.connection.ClusterType
putfield com.mongodb.connection.ClusterDescription.type:Lcom/mongodb/connection/ClusterType;
4: aload 0
aload 3
putfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
5: aload 0
new java.util.ArrayList
dup
aload 4
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
6: aload 0
aload 5
putfield com.mongodb.connection.ClusterDescription.clusterSettings:Lcom/mongodb/connection/ClusterSettings;
7: aload 0
aload 6
putfield com.mongodb.connection.ClusterDescription.serverSettings:Lcom/mongodb/connection/ServerSettings;
8: 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 9 0 this Lcom/mongodb/connection/ClusterDescription;
0 9 1 connectionMode Lcom/mongodb/connection/ClusterConnectionMode;
0 9 2 type Lcom/mongodb/connection/ClusterType;
0 9 3 srvResolutionException Lcom/mongodb/MongoException;
0 9 4 serverDescriptions Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
0 9 5 clusterSettings Lcom/mongodb/connection/ClusterSettings;
0 9 6 serverSettings Lcom/mongodb/connection/ServerSettings;
Signature: (Lcom/mongodb/connection/ClusterConnectionMode;Lcom/mongodb/connection/ClusterType;Lcom/mongodb/MongoException;Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;Lcom/mongodb/connection/ClusterSettings;Lcom/mongodb/connection/ServerSettings;)V
MethodParameters:
Name Flags
connectionMode final
type final
srvResolutionException final
serverDescriptions final
clusterSettings final
serverSettings final
public com.mongodb.connection.ClusterSettings getClusterSettings();
descriptor: ()Lcom/mongodb/connection/ClusterSettings;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.clusterSettings:Lcom/mongodb/connection/ClusterSettings;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
public com.mongodb.connection.ServerSettings getServerSettings();
descriptor: ()Lcom/mongodb/connection/ServerSettings;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.serverSettings:Lcom/mongodb/connection/ServerSettings;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
public boolean isCompatibleWithDriver();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: com.mongodb.connection.ClusterDescription top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 1
start local 1 2: aload 1
invokevirtual com.mongodb.connection.ServerDescription.isCompatibleWithDriver:()Z
ifne 4
3: iconst_0
ireturn
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/connection/ClusterDescription;
2 4 1 cur Lcom/mongodb/connection/ServerDescription;
public com.mongodb.connection.ServerDescription findServerIncompatiblyOlderThanDriver();
descriptor: ()Lcom/mongodb/connection/ServerDescription;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: com.mongodb.connection.ClusterDescription top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 1
start local 1 2: aload 1
invokevirtual com.mongodb.connection.ServerDescription.isIncompatiblyOlderThanDriver:()Z
ifeq 4
3: aload 1
areturn
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/connection/ClusterDescription;
2 4 1 cur Lcom/mongodb/connection/ServerDescription;
public com.mongodb.connection.ServerDescription findServerIncompatiblyNewerThanDriver();
descriptor: ()Lcom/mongodb/connection/ServerDescription;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: com.mongodb.connection.ClusterDescription top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 1
start local 1 2: aload 1
invokevirtual com.mongodb.connection.ServerDescription.isIncompatiblyNewerThanDriver:()Z
ifeq 4
3: aload 1
areturn
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/connection/ClusterDescription;
2 4 1 cur Lcom/mongodb/connection/ServerDescription;
public boolean hasReadableServer(com.mongodb.ReadPreference);
descriptor: (Lcom/mongodb/ReadPreference;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "readPreference"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: new com.mongodb.selector.ReadPreferenceServerSelector
dup
aload 1
invokespecial com.mongodb.selector.ReadPreferenceServerSelector.<init>:(Lcom/mongodb/ReadPreference;)V
aload 0
invokevirtual com.mongodb.selector.ReadPreferenceServerSelector.select:(Lcom/mongodb/connection/ClusterDescription;)Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/connection/ClusterDescription;
0 4 1 readPreference Lcom/mongodb/ReadPreference;
MethodParameters:
Name Flags
readPreference final
public boolean hasWritableServer();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new com.mongodb.selector.WritableServerSelector
dup
invokespecial com.mongodb.selector.WritableServerSelector.<init>:()V
aload 0
invokevirtual com.mongodb.selector.WritableServerSelector.select:(Lcom/mongodb/connection/ClusterDescription;)Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/ClusterDescription;
public com.mongodb.connection.ClusterConnectionMode getConnectionMode();
descriptor: ()Lcom/mongodb/connection/ClusterConnectionMode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.connectionMode:Lcom/mongodb/connection/ClusterConnectionMode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
public com.mongodb.connection.ClusterType getType();
descriptor: ()Lcom/mongodb/connection/ClusterType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.type:Lcom/mongodb/connection/ClusterType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
public com.mongodb.MongoException getSrvResolutionException();
descriptor: ()Lcom/mongodb/MongoException;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
public java.util.List<com.mongodb.connection.ServerDescription> getServerDescriptions();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
Signature: ()Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
public java.lang.Integer getLogicalSessionTimeoutMinutes();
descriptor: ()Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
new com.mongodb.connection.ClusterDescription$1
dup
aload 0
invokespecial com.mongodb.connection.ClusterDescription$1.<init>:(Lcom/mongodb/connection/ClusterDescription;)V
invokevirtual com.mongodb.connection.ClusterDescription.getServersByPredicate:(Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals: com.mongodb.connection.ClusterDescription java.lang.Integer top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 2
start local 2 3: aload 2
invokevirtual com.mongodb.connection.ServerDescription.getLogicalSessionTimeoutMinutes:()Ljava/lang/Integer;
ifnonnull 5
4: aconst_null
areturn
5: StackMap locals: com.mongodb.connection.ClusterDescription java.lang.Integer com.mongodb.connection.ServerDescription java.util.Iterator
StackMap stack:
aload 1
ifnonnull 8
6: aload 2
invokevirtual com.mongodb.connection.ServerDescription.getLogicalSessionTimeoutMinutes:()Ljava/lang/Integer;
astore 1
7: goto 9
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Integer.intValue:()I
aload 2
invokevirtual com.mongodb.connection.ServerDescription.getLogicalSessionTimeoutMinutes:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 1
end local 2 9: StackMap locals: com.mongodb.connection.ClusterDescription java.lang.Integer top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
10: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/mongodb/connection/ClusterDescription;
1 11 1 retVal Ljava/lang/Integer;
3 9 2 cur Lcom/mongodb/connection/ServerDescription;
public java.util.Set<com.mongodb.connection.ServerDescription> getAll();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new java.util.TreeSet
dup
new com.mongodb.connection.ClusterDescription$2
dup
aload 0
invokespecial com.mongodb.connection.ClusterDescription$2.<init>:(Lcom/mongodb/connection/ClusterDescription;)V
invokespecial java.util.TreeSet.<init>:(Ljava/util/Comparator;)V
astore 1
start local 1 1: aload 1
aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
2: aload 1
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/ClusterDescription;
1 3 1 serverDescriptionSet Ljava/util/Set<Lcom/mongodb/connection/ServerDescription;>;
Signature: ()Ljava/util/Set<Lcom/mongodb/connection/ServerDescription;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public com.mongodb.connection.ServerDescription getByServerAddress(com.mongodb.ServerAddress);
descriptor: (Lcom/mongodb/ServerAddress;)Lcom/mongodb/connection/ServerDescription;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: com.mongodb.connection.ClusterDescription com.mongodb.ServerAddress top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 2
start local 2 2: aload 2
invokevirtual com.mongodb.connection.ServerDescription.isOk:()Z
ifeq 4
aload 2
invokevirtual com.mongodb.connection.ServerDescription.getAddress:()Lcom/mongodb/ServerAddress;
aload 1
invokevirtual com.mongodb.ServerAddress.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 2
areturn
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/connection/ClusterDescription;
0 6 1 serverAddress Lcom/mongodb/ServerAddress;
2 4 2 cur Lcom/mongodb/connection/ServerDescription;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
serverAddress final
public java.util.List<com.mongodb.connection.ServerDescription> getPrimaries();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new com.mongodb.connection.ClusterDescription$3
dup
aload 0
invokespecial com.mongodb.connection.ClusterDescription$3.<init>:(Lcom/mongodb/connection/ClusterDescription;)V
invokevirtual com.mongodb.connection.ClusterDescription.getServersByPredicate:(Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
Signature: ()Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public java.util.List<com.mongodb.connection.ServerDescription> getSecondaries();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new com.mongodb.connection.ClusterDescription$4
dup
aload 0
invokespecial com.mongodb.connection.ClusterDescription$4.<init>:(Lcom/mongodb/connection/ClusterDescription;)V
invokevirtual com.mongodb.connection.ClusterDescription.getServersByPredicate:(Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
Signature: ()Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public java.util.List<com.mongodb.connection.ServerDescription> getSecondaries(com.mongodb.TagSet);
descriptor: (Lcom/mongodb/TagSet;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new com.mongodb.connection.ClusterDescription$5
dup
aload 0
aload 1
invokespecial com.mongodb.connection.ClusterDescription$5.<init>:(Lcom/mongodb/connection/ClusterDescription;Lcom/mongodb/TagSet;)V
invokevirtual com.mongodb.connection.ClusterDescription.getServersByPredicate:(Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
0 1 1 tagSet Lcom/mongodb/TagSet;
Signature: (Lcom/mongodb/TagSet;)Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
tagSet final
public java.util.List<com.mongodb.connection.ServerDescription> getAny();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new com.mongodb.connection.ClusterDescription$6
dup
aload 0
invokespecial com.mongodb.connection.ClusterDescription$6.<init>:(Lcom/mongodb/connection/ClusterDescription;)V
invokevirtual com.mongodb.connection.ClusterDescription.getServersByPredicate:(Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
Signature: ()Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public java.util.List<com.mongodb.connection.ServerDescription> getAnyPrimaryOrSecondary();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new com.mongodb.connection.ClusterDescription$7
dup
aload 0
invokespecial com.mongodb.connection.ClusterDescription$7.<init>:(Lcom/mongodb/connection/ClusterDescription;)V
invokevirtual com.mongodb.connection.ClusterDescription.getServersByPredicate:(Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
Signature: ()Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public java.util.List<com.mongodb.connection.ServerDescription> getAnyPrimaryOrSecondary(com.mongodb.TagSet);
descriptor: (Lcom/mongodb/TagSet;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new com.mongodb.connection.ClusterDescription$8
dup
aload 0
aload 1
invokespecial com.mongodb.connection.ClusterDescription$8.<init>:(Lcom/mongodb/connection/ClusterDescription;Lcom/mongodb/TagSet;)V
invokevirtual com.mongodb.connection.ClusterDescription.getServersByPredicate:(Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ClusterDescription;
0 1 1 tagSet Lcom/mongodb/TagSet;
Signature: (Lcom/mongodb/TagSet;)Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
tagSet final
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.mongodb.connection.ClusterDescription
astore 2
start local 2 5: aload 0
getfield com.mongodb.connection.ClusterDescription.connectionMode:Lcom/mongodb/connection/ClusterConnectionMode;
aload 2
getfield com.mongodb.connection.ClusterDescription.connectionMode:Lcom/mongodb/connection/ClusterConnectionMode;
if_acmpeq 7
6: iconst_0
ireturn
7: StackMap locals: com.mongodb.connection.ClusterDescription
StackMap stack:
aload 0
getfield com.mongodb.connection.ClusterDescription.type:Lcom/mongodb/connection/ClusterType;
aload 2
getfield com.mongodb.connection.ClusterDescription.type:Lcom/mongodb/connection/ClusterType;
if_acmpeq 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.size:()I
aload 2
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpeq 11
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
aload 2
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.containsAll:(Ljava/util/Collection;)Z
ifne 13
12: iconst_0
ireturn
13: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
ifnull 14
aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
goto 15
StackMap locals:
StackMap stack:
14: aconst_null
StackMap locals:
StackMap stack: java.lang.Class
15: astore 3
start local 3 16: aload 2
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
ifnull 17
aload 2
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
goto 18
StackMap locals: java.lang.Class
StackMap stack:
17: aconst_null
StackMap locals:
StackMap stack: java.lang.Class
18: astore 4
start local 4 19: aload 3
ifnull 20
aload 3
aload 4
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 22
goto 21
StackMap locals: java.lang.Class
StackMap stack:
20: aload 4
ifnull 22
21: StackMap locals:
StackMap stack:
iconst_0
ireturn
22: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
ifnull 23
aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
invokevirtual com.mongodb.MongoException.getMessage:()Ljava/lang/String;
goto 24
StackMap locals:
StackMap stack:
23: aconst_null
StackMap locals:
StackMap stack: java.lang.String
24: astore 5
start local 5 25: aload 2
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
ifnull 26
aload 2
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
invokevirtual com.mongodb.MongoException.getMessage:()Ljava/lang/String;
goto 27
StackMap locals: java.lang.String
StackMap stack:
26: aconst_null
StackMap locals:
StackMap stack: java.lang.String
27: astore 6
start local 6 28: aload 5
ifnull 29
aload 5
aload 6
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 31
goto 30
StackMap locals: java.lang.String
StackMap stack:
29: aload 6
ifnull 31
30: StackMap locals:
StackMap stack:
iconst_0
ireturn
31: StackMap locals:
StackMap stack:
iconst_1
ireturn
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 32 0 this Lcom/mongodb/connection/ClusterDescription;
0 32 1 o Ljava/lang/Object;
5 32 2 that Lcom/mongodb/connection/ClusterDescription;
16 32 3 thisExceptionClass Ljava/lang/Class<*>;
19 32 4 thatExceptionClass Ljava/lang/Class<*>;
25 32 5 thisExceptionMessage Ljava/lang/String;
28 32 6 thatExceptionMessage Ljava/lang/String;
MethodParameters:
Name Flags
o final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ClusterDescription.connectionMode:Lcom/mongodb/connection/ClusterConnectionMode;
invokevirtual com.mongodb.connection.ClusterConnectionMode.hashCode:()I
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.connection.ClusterDescription.type:Lcom/mongodb/connection/ClusterType;
invokevirtual com.mongodb.connection.ClusterType.hashCode:()I
iadd
istore 1
2: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
ifnonnull 3
iconst_0
goto 4
StackMap locals: com.mongodb.connection.ClusterDescription int
StackMap stack: int
3: aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
invokevirtual java.lang.Object.hashCode:()I
StackMap locals: com.mongodb.connection.ClusterDescription int
StackMap stack: int int
4: iadd
istore 1
5: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.hashCode:()I
iadd
istore 1
6: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/connection/ClusterDescription;
1 7 1 result I
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ClusterDescription{type="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
invokevirtual com.mongodb.connection.ClusterDescription.getType:()Lcom/mongodb/connection/ClusterType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
ifnonnull 3
ldc ""
goto 4
StackMap locals:
StackMap stack: java.lang.StringBuilder
3: new java.lang.StringBuilder
dup
ldc ", srvResolutionException="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: com.mongodb.connection.ClusterDescription
StackMap stack: java.lang.StringBuilder java.lang.String
4: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc ", connectionMode="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.connection.ClusterDescription.connectionMode:Lcom/mongodb/connection/ClusterConnectionMode;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
6: ldc ", serverDescriptions="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
7: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
8: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/connection/ClusterDescription;
public java.lang.String getShortDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: ldc ""
astore 2
start local 2 2: aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: com.mongodb.connection.ClusterDescription java.lang.StringBuilder java.lang.String top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 3
start local 3 4: aload 1
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual com.mongodb.connection.ServerDescription.getShortDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: ldc ", "
astore 2
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
ifnonnull 9
8: ldc "{type=%s, servers=[%s]"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.mongodb.connection.ClusterDescription.type:Lcom/mongodb/connection/ClusterType;
aastore
dup
iconst_1
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
9: StackMap locals: com.mongodb.connection.ClusterDescription java.lang.StringBuilder java.lang.String
StackMap stack:
ldc "{type=%s, srvResolutionException=%s, servers=[%s]"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.mongodb.connection.ClusterDescription.type:Lcom/mongodb/connection/ClusterType;
aastore
dup
iconst_1
aload 0
getfield com.mongodb.connection.ClusterDescription.srvResolutionException:Lcom/mongodb/MongoException;
aastore
dup
iconst_2
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/connection/ClusterDescription;
1 10 1 serverDescriptions Ljava/lang/StringBuilder;
2 10 2 delimiter Ljava/lang/String;
4 6 3 cur Lcom/mongodb/connection/ServerDescription;
private java.util.List<com.mongodb.connection.ServerDescription> getServersByPredicate(com.mongodb.connection.ClusterDescription$Predicate);
descriptor: (Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 0
getfield com.mongodb.connection.ClusterDescription.serverDescriptions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: com.mongodb.connection.ClusterDescription com.mongodb.connection.ClusterDescription$Predicate java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 3
start local 3 3: aload 1
aload 3
invokeinterface com.mongodb.connection.ClusterDescription$Predicate.apply:(Lcom/mongodb/connection/ServerDescription;)Z
ifeq 5
4: aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/connection/ClusterDescription;
0 7 1 predicate Lcom/mongodb/connection/ClusterDescription$Predicate;
1 7 2 membersByTag Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
3 5 3 cur Lcom/mongodb/connection/ServerDescription;
Signature: (Lcom/mongodb/connection/ClusterDescription$Predicate;)Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
MethodParameters:
Name Flags
predicate final
}
SourceFile: "ClusterDescription.java"
NestMembers:
com.mongodb.connection.ClusterDescription$1 com.mongodb.connection.ClusterDescription$2 com.mongodb.connection.ClusterDescription$3 com.mongodb.connection.ClusterDescription$4 com.mongodb.connection.ClusterDescription$5 com.mongodb.connection.ClusterDescription$6 com.mongodb.connection.ClusterDescription$7 com.mongodb.connection.ClusterDescription$8 com.mongodb.connection.ClusterDescription$Predicate
InnerClasses:
com.mongodb.connection.ClusterDescription$1
com.mongodb.connection.ClusterDescription$2
com.mongodb.connection.ClusterDescription$3
com.mongodb.connection.ClusterDescription$4
com.mongodb.connection.ClusterDescription$5
com.mongodb.connection.ClusterDescription$6
com.mongodb.connection.ClusterDescription$7
com.mongodb.connection.ClusterDescription$8
private abstract Predicate = com.mongodb.connection.ClusterDescription$Predicate of com.mongodb.connection.ClusterDescription
RuntimeVisibleAnnotations:
com.mongodb.annotations.Immutable()