public final class com.mongodb.internal.connection.DescriptionHelper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.internal.connection.DescriptionHelper
super_class: java.lang.Object
{
static com.mongodb.connection.ConnectionDescription createConnectionDescription(com.mongodb.connection.ConnectionId, org.bson.BsonDocument, org.bson.BsonDocument);
descriptor: (Lcom/mongodb/connection/ConnectionId;Lorg/bson/BsonDocument;Lorg/bson/BsonDocument;)Lcom/mongodb/connection/ConnectionDescription;
flags: (0x0008) ACC_STATIC
Code:
stack=10, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.connection.ConnectionDescription
dup
aload 0
aload 2
invokestatic com.mongodb.internal.connection.DescriptionHelper.getVersion:(Lorg/bson/BsonDocument;)Lcom/mongodb/connection/ServerVersion;
1: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getMaxWireVersion:(Lorg/bson/BsonDocument;)I
aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getServerType:(Lorg/bson/BsonDocument;)Lcom/mongodb/connection/ServerType;
aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getMaxWriteBatchSize:(Lorg/bson/BsonDocument;)I
2: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getMaxBsonObjectSize:(Lorg/bson/BsonDocument;)I
aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getMaxMessageSizeBytes:(Lorg/bson/BsonDocument;)I
aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getCompressors:(Lorg/bson/BsonDocument;)Ljava/util/List;
3: invokespecial com.mongodb.connection.ConnectionDescription.<init>:(Lcom/mongodb/connection/ConnectionId;Lcom/mongodb/connection/ServerVersion;ILcom/mongodb/connection/ServerType;IIILjava/util/List;)V
astore 3
start local 3 4: aload 1
ldc "connectionId"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 8
5: aload 3
invokevirtual com.mongodb.connection.ConnectionDescription.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
aload 1
ldc "connectionId"
invokevirtual org.bson.BsonDocument.getNumber:(Ljava/lang/Object;)Lorg/bson/BsonNumber;
invokevirtual org.bson.BsonNumber.intValue:()I
invokevirtual com.mongodb.connection.ConnectionId.withServerValue:(I)Lcom/mongodb/connection/ConnectionId;
6: astore 4
start local 4 7: aload 3
aload 4
invokevirtual com.mongodb.connection.ConnectionDescription.withConnectionId:(Lcom/mongodb/connection/ConnectionId;)Lcom/mongodb/connection/ConnectionDescription;
astore 3
end local 4 8: StackMap locals: com.mongodb.connection.ConnectionDescription
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 connectionId Lcom/mongodb/connection/ConnectionId;
0 9 1 isMasterResult Lorg/bson/BsonDocument;
0 9 2 buildInfoResult Lorg/bson/BsonDocument;
4 9 3 connectionDescription Lcom/mongodb/connection/ConnectionDescription;
7 8 4 newConnectionId Lcom/mongodb/connection/ConnectionId;
MethodParameters:
Name Flags
connectionId final
isMasterResult final
buildInfoResult final
public static com.mongodb.connection.ServerDescription createServerDescription(com.mongodb.ServerAddress, org.bson.BsonDocument, com.mongodb.connection.ServerVersion, long);
descriptor: (Lcom/mongodb/ServerAddress;Lorg/bson/BsonDocument;Lcom/mongodb/connection/ServerVersion;J)Lcom/mongodb/connection/ServerDescription;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic com.mongodb.connection.ServerDescription.builder:()Lcom/mongodb/connection/ServerDescription$Builder;
1: getstatic com.mongodb.connection.ServerConnectionState.CONNECTED:Lcom/mongodb/connection/ServerConnectionState;
invokevirtual com.mongodb.connection.ServerDescription$Builder.state:(Lcom/mongodb/connection/ServerConnectionState;)Lcom/mongodb/connection/ServerDescription$Builder;
2: aload 2
invokevirtual com.mongodb.connection.ServerDescription$Builder.version:(Lcom/mongodb/connection/ServerVersion;)Lcom/mongodb/connection/ServerDescription$Builder;
3: aload 0
invokevirtual com.mongodb.connection.ServerDescription$Builder.address:(Lcom/mongodb/ServerAddress;)Lcom/mongodb/connection/ServerDescription$Builder;
4: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getServerType:(Lorg/bson/BsonDocument;)Lcom/mongodb/connection/ServerType;
invokevirtual com.mongodb.connection.ServerDescription$Builder.type:(Lcom/mongodb/connection/ServerType;)Lcom/mongodb/connection/ServerDescription$Builder;
5: aload 1
ldc "me"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 6
aload 1
ldc "me"
invokevirtual org.bson.BsonDocument.getString:(Ljava/lang/Object;)Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
goto 7
StackMap locals:
StackMap stack: com.mongodb.connection.ServerDescription$Builder
6: aconst_null
StackMap locals: com.mongodb.ServerAddress org.bson.BsonDocument com.mongodb.connection.ServerVersion long
StackMap stack: com.mongodb.connection.ServerDescription$Builder java.lang.String
7: invokevirtual com.mongodb.connection.ServerDescription$Builder.canonicalAddress:(Ljava/lang/String;)Lcom/mongodb/connection/ServerDescription$Builder;
8: aload 1
ldc "hosts"
new org.bson.BsonArray
dup
invokespecial org.bson.BsonArray.<init>:()V
invokevirtual org.bson.BsonDocument.getArray:(Ljava/lang/Object;Lorg/bson/BsonArray;)Lorg/bson/BsonArray;
invokestatic com.mongodb.internal.connection.DescriptionHelper.listToSet:(Lorg/bson/BsonArray;)Ljava/util/Set;
invokevirtual com.mongodb.connection.ServerDescription$Builder.hosts:(Ljava/util/Set;)Lcom/mongodb/connection/ServerDescription$Builder;
9: aload 1
ldc "passives"
new org.bson.BsonArray
dup
invokespecial org.bson.BsonArray.<init>:()V
invokevirtual org.bson.BsonDocument.getArray:(Ljava/lang/Object;Lorg/bson/BsonArray;)Lorg/bson/BsonArray;
invokestatic com.mongodb.internal.connection.DescriptionHelper.listToSet:(Lorg/bson/BsonArray;)Ljava/util/Set;
invokevirtual com.mongodb.connection.ServerDescription$Builder.passives:(Ljava/util/Set;)Lcom/mongodb/connection/ServerDescription$Builder;
10: aload 1
ldc "arbiters"
new org.bson.BsonArray
dup
invokespecial org.bson.BsonArray.<init>:()V
invokevirtual org.bson.BsonDocument.getArray:(Ljava/lang/Object;Lorg/bson/BsonArray;)Lorg/bson/BsonArray;
invokestatic com.mongodb.internal.connection.DescriptionHelper.listToSet:(Lorg/bson/BsonArray;)Ljava/util/Set;
invokevirtual com.mongodb.connection.ServerDescription$Builder.arbiters:(Ljava/util/Set;)Lcom/mongodb/connection/ServerDescription$Builder;
11: aload 1
ldc "primary"
invokestatic com.mongodb.internal.connection.DescriptionHelper.getString:(Lorg/bson/BsonDocument;Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.mongodb.connection.ServerDescription$Builder.primary:(Ljava/lang/String;)Lcom/mongodb/connection/ServerDescription$Builder;
12: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getMaxBsonObjectSize:(Lorg/bson/BsonDocument;)I
invokevirtual com.mongodb.connection.ServerDescription$Builder.maxDocumentSize:(I)Lcom/mongodb/connection/ServerDescription$Builder;
13: aload 1
ldc "tags"
new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
invokevirtual org.bson.BsonDocument.getDocument:(Ljava/lang/Object;Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
invokestatic com.mongodb.internal.connection.DescriptionHelper.getTagSetFromDocument:(Lorg/bson/BsonDocument;)Lcom/mongodb/TagSet;
invokevirtual com.mongodb.connection.ServerDescription$Builder.tagSet:(Lcom/mongodb/TagSet;)Lcom/mongodb/connection/ServerDescription$Builder;
14: aload 1
ldc "setName"
invokestatic com.mongodb.internal.connection.DescriptionHelper.getString:(Lorg/bson/BsonDocument;Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.mongodb.connection.ServerDescription$Builder.setName:(Ljava/lang/String;)Lcom/mongodb/connection/ServerDescription$Builder;
15: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getMinWireVersion:(Lorg/bson/BsonDocument;)I
invokevirtual com.mongodb.connection.ServerDescription$Builder.minWireVersion:(I)Lcom/mongodb/connection/ServerDescription$Builder;
16: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getMaxWireVersion:(Lorg/bson/BsonDocument;)I
invokevirtual com.mongodb.connection.ServerDescription$Builder.maxWireVersion:(I)Lcom/mongodb/connection/ServerDescription$Builder;
17: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getElectionId:(Lorg/bson/BsonDocument;)Lorg/bson/types/ObjectId;
invokevirtual com.mongodb.connection.ServerDescription$Builder.electionId:(Lorg/bson/types/ObjectId;)Lcom/mongodb/connection/ServerDescription$Builder;
18: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getSetVersion:(Lorg/bson/BsonDocument;)Ljava/lang/Integer;
invokevirtual com.mongodb.connection.ServerDescription$Builder.setVersion:(Ljava/lang/Integer;)Lcom/mongodb/connection/ServerDescription$Builder;
19: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getLastWriteDate:(Lorg/bson/BsonDocument;)Ljava/util/Date;
invokevirtual com.mongodb.connection.ServerDescription$Builder.lastWriteDate:(Ljava/util/Date;)Lcom/mongodb/connection/ServerDescription$Builder;
20: lload 3
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.mongodb.connection.ServerDescription$Builder.roundTripTime:(JLjava/util/concurrent/TimeUnit;)Lcom/mongodb/connection/ServerDescription$Builder;
21: aload 1
invokestatic com.mongodb.internal.connection.DescriptionHelper.getLogicalSessionTimeoutMinutes:(Lorg/bson/BsonDocument;)Ljava/lang/Integer;
invokevirtual com.mongodb.connection.ServerDescription$Builder.logicalSessionTimeoutMinutes:(Ljava/lang/Integer;)Lcom/mongodb/connection/ServerDescription$Builder;
22: aload 1
invokestatic com.mongodb.internal.connection.CommandHelper.isCommandOk:(Lorg/bson/BsonDocument;)Z
invokevirtual com.mongodb.connection.ServerDescription$Builder.ok:(Z)Lcom/mongodb/connection/ServerDescription$Builder;
invokevirtual com.mongodb.connection.ServerDescription$Builder.build:()Lcom/mongodb/connection/ServerDescription;
23: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 serverAddress Lcom/mongodb/ServerAddress;
0 24 1 isMasterResult Lorg/bson/BsonDocument;
0 24 2 serverVersion Lcom/mongodb/connection/ServerVersion;
0 24 3 roundTripTime J
MethodParameters:
Name Flags
serverAddress final
isMasterResult final
serverVersion final
roundTripTime final
private static int getMinWireVersion(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc "minWireVersion"
new org.bson.BsonInt32
dup
invokestatic com.mongodb.connection.ServerDescription.getDefaultMinWireVersion:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.getInt32:(Ljava/lang/Object;Lorg/bson/BsonInt32;)Lorg/bson/BsonInt32;
invokevirtual org.bson.BsonInt32.getValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static int getMaxWireVersion(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc "maxWireVersion"
new org.bson.BsonInt32
dup
invokestatic com.mongodb.connection.ServerDescription.getDefaultMaxWireVersion:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.getInt32:(Ljava/lang/Object;Lorg/bson/BsonInt32;)Lorg/bson/BsonInt32;
invokevirtual org.bson.BsonInt32.getValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static java.util.Date getLastWriteDate(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Ljava/util/Date;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ldc "lastWrite"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.util.Date
dup
aload 0
ldc "lastWrite"
invokevirtual org.bson.BsonDocument.getDocument:(Ljava/lang/Object;)Lorg/bson/BsonDocument;
ldc "lastWriteDate"
invokevirtual org.bson.BsonDocument.getDateTime:(Ljava/lang/Object;)Lorg/bson/BsonDateTime;
invokevirtual org.bson.BsonDateTime.getValue:()J
invokespecial java.util.Date.<init>:(J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static org.bson.types.ObjectId getElectionId(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Lorg/bson/types/ObjectId;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "electionId"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 1
aload 0
ldc "electionId"
invokevirtual org.bson.BsonDocument.getObjectId:(Ljava/lang/Object;)Lorg/bson/BsonObjectId;
invokevirtual org.bson.BsonObjectId.getValue:()Lorg/bson/types/ObjectId;
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: org.bson.types.ObjectId
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static java.lang.Integer getSetVersion(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Ljava/lang/Integer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "setVersion"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 1
aload 0
ldc "setVersion"
invokevirtual org.bson.BsonDocument.getNumber:(Ljava/lang/Object;)Lorg/bson/BsonNumber;
invokevirtual org.bson.BsonNumber.intValue:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: java.lang.Integer
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static int getMaxMessageSizeBytes(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc "maxMessageSizeBytes"
new org.bson.BsonInt32
dup
invokestatic com.mongodb.connection.ConnectionDescription.getDefaultMaxMessageSize:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.getInt32:(Ljava/lang/Object;Lorg/bson/BsonInt32;)Lorg/bson/BsonInt32;
invokevirtual org.bson.BsonInt32.getValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static int getMaxBsonObjectSize(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc "maxBsonObjectSize"
new org.bson.BsonInt32
dup
invokestatic com.mongodb.connection.ServerDescription.getDefaultMaxDocumentSize:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.getInt32:(Ljava/lang/Object;Lorg/bson/BsonInt32;)Lorg/bson/BsonInt32;
invokevirtual org.bson.BsonInt32.getValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static int getMaxWriteBatchSize(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc "maxWriteBatchSize"
new org.bson.BsonInt32
dup
invokestatic com.mongodb.connection.ConnectionDescription.getDefaultMaxWriteBatchSize:()I
invokespecial org.bson.BsonInt32.<init>:(I)V
invokevirtual org.bson.BsonDocument.getInt32:(Ljava/lang/Object;Lorg/bson/BsonInt32;)Lorg/bson/BsonInt32;
invokevirtual org.bson.BsonInt32.getValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static java.lang.Integer getLogicalSessionTimeoutMinutes(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Ljava/lang/Integer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "logicalSessionTimeoutMinutes"
invokevirtual org.bson.BsonDocument.isNumber:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
ldc "logicalSessionTimeoutMinutes"
invokevirtual org.bson.BsonDocument.getNumber:(Ljava/lang/Object;)Lorg/bson/BsonNumber;
invokevirtual org.bson.BsonNumber.intValue:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
goto 3
StackMap locals:
StackMap stack:
2: aconst_null
3: StackMap locals:
StackMap stack: java.lang.Integer
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static java.lang.String getString(org.bson.BsonDocument, java.lang.String);
descriptor: (Lorg/bson/BsonDocument;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
aload 1
invokevirtual org.bson.BsonDocument.getString:(Ljava/lang/Object;)Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 response Lorg/bson/BsonDocument;
0 3 1 key Ljava/lang/String;
MethodParameters:
Name Flags
response final
key final
static com.mongodb.connection.ServerVersion getVersion(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Lcom/mongodb/connection/ServerVersion;
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
ldc "versionArray"
invokevirtual org.bson.BsonDocument.getArray:(Ljava/lang/Object;)Lorg/bson/BsonArray;
iconst_0
iconst_3
invokevirtual org.bson.BsonArray.subList:(II)Ljava/util/List;
astore 1
start local 1 1: new com.mongodb.connection.ServerVersion
dup
iconst_3
anewarray java.lang.Integer
dup
iconst_0
aload 1
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.bson.BsonValue
invokevirtual org.bson.BsonValue.asInt32:()Lorg/bson/BsonInt32;
invokevirtual org.bson.BsonInt32.getValue:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
2: aload 1
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.bson.BsonValue
invokevirtual org.bson.BsonValue.asInt32:()Lorg/bson/BsonInt32;
invokevirtual org.bson.BsonInt32.getValue:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
3: aload 1
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.bson.BsonValue
invokevirtual org.bson.BsonValue.asInt32:()Lorg/bson/BsonInt32;
invokevirtual org.bson.BsonInt32.getValue:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
4: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial com.mongodb.connection.ServerVersion.<init>:(Ljava/util/List;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 buildInfoResult Lorg/bson/BsonDocument;
1 5 1 versionArray Ljava/util/List<Lorg/bson/BsonValue;>;
MethodParameters:
Name Flags
buildInfoResult final
private static java.util.Set<java.lang.String> listToSet(org.bson.BsonArray);
descriptor: (Lorg/bson/BsonArray;)Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual org.bson.BsonArray.isEmpty:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
areturn
2: StackMap locals:
StackMap stack:
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 1
start local 1 3: aload 0
invokevirtual org.bson.BsonArray.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: org.bson.BsonArray java.util.Set top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.BsonValue
astore 2
start local 2 5: aload 1
aload 2
invokevirtual org.bson.BsonValue.asString:()Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 array Lorg/bson/BsonArray;
3 8 1 set Ljava/util/Set<Ljava/lang/String;>;
5 6 2 value Lorg/bson/BsonValue;
Signature: (Lorg/bson/BsonArray;)Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
array final
private static com.mongodb.connection.ServerType getServerType(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Lcom/mongodb/connection/ServerType;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.mongodb.internal.connection.CommandHelper.isCommandOk:(Lorg/bson/BsonDocument;)Z
ifne 2
1: getstatic com.mongodb.connection.ServerType.UNKNOWN:Lcom/mongodb/connection/ServerType;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic com.mongodb.internal.connection.DescriptionHelper.isReplicaSetMember:(Lorg/bson/BsonDocument;)Z
ifeq 14
3: aload 0
ldc "hidden"
getstatic org.bson.BsonBoolean.FALSE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.getBoolean:(Ljava/lang/Object;Lorg/bson/BsonBoolean;)Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonBoolean.getValue:()Z
ifeq 5
4: getstatic com.mongodb.connection.ServerType.REPLICA_SET_OTHER:Lcom/mongodb/connection/ServerType;
areturn
5: StackMap locals:
StackMap stack:
aload 0
ldc "ismaster"
getstatic org.bson.BsonBoolean.FALSE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.getBoolean:(Ljava/lang/Object;Lorg/bson/BsonBoolean;)Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonBoolean.getValue:()Z
ifeq 7
6: getstatic com.mongodb.connection.ServerType.REPLICA_SET_PRIMARY:Lcom/mongodb/connection/ServerType;
areturn
7: StackMap locals:
StackMap stack:
aload 0
ldc "secondary"
getstatic org.bson.BsonBoolean.FALSE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.getBoolean:(Ljava/lang/Object;Lorg/bson/BsonBoolean;)Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonBoolean.getValue:()Z
ifeq 9
8: getstatic com.mongodb.connection.ServerType.REPLICA_SET_SECONDARY:Lcom/mongodb/connection/ServerType;
areturn
9: StackMap locals:
StackMap stack:
aload 0
ldc "arbiterOnly"
getstatic org.bson.BsonBoolean.FALSE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.getBoolean:(Ljava/lang/Object;Lorg/bson/BsonBoolean;)Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonBoolean.getValue:()Z
ifeq 11
10: getstatic com.mongodb.connection.ServerType.REPLICA_SET_ARBITER:Lcom/mongodb/connection/ServerType;
areturn
11: StackMap locals:
StackMap stack:
aload 0
ldc "setName"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 13
aload 0
ldc "hosts"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 13
12: getstatic com.mongodb.connection.ServerType.REPLICA_SET_OTHER:Lcom/mongodb/connection/ServerType;
areturn
13: StackMap locals:
StackMap stack:
getstatic com.mongodb.connection.ServerType.REPLICA_SET_GHOST:Lcom/mongodb/connection/ServerType;
areturn
14: StackMap locals:
StackMap stack:
aload 0
ldc "msg"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 16
aload 0
ldc "msg"
invokevirtual org.bson.BsonDocument.get:(Ljava/lang/Object;)Lorg/bson/BsonValue;
new org.bson.BsonString
dup
ldc "isdbgrid"
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 16
15: getstatic com.mongodb.connection.ServerType.SHARD_ROUTER:Lcom/mongodb/connection/ServerType;
areturn
16: StackMap locals:
StackMap stack:
getstatic com.mongodb.connection.ServerType.STANDALONE:Lcom/mongodb/connection/ServerType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static boolean isReplicaSetMember(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "setName"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifne 1
aload 0
ldc "isreplicaset"
getstatic org.bson.BsonBoolean.FALSE:Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonDocument.getBoolean:(Ljava/lang/Object;Lorg/bson/BsonBoolean;)Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonBoolean.getValue:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 isMasterResult Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
isMasterResult final
private static com.mongodb.TagSet getTagSetFromDocument(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Lcom/mongodb/TagSet;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, 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
invokevirtual org.bson.BsonDocument.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.bson.BsonDocument java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 1
new com.mongodb.Tag
dup
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.bson.BsonValue
invokevirtual org.bson.BsonValue.asString:()Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
invokespecial com.mongodb.Tag.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: new com.mongodb.TagSet
dup
aload 1
invokespecial com.mongodb.TagSet.<init>:(Ljava/util/List;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 tagsDocuments Lorg/bson/BsonDocument;
1 6 1 tagList Ljava/util/List<Lcom/mongodb/Tag;>;
3 4 2 curEntry Ljava/util/Map$Entry<Ljava/lang/String;Lorg/bson/BsonValue;>;
MethodParameters:
Name Flags
tagsDocuments final
private static java.util.List<java.lang.String> getCompressors(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, 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
ldc "compression"
new org.bson.BsonArray
dup
invokespecial org.bson.BsonArray.<init>:()V
invokevirtual org.bson.BsonDocument.getArray:(Ljava/lang/Object;Lorg/bson/BsonArray;)Lorg/bson/BsonArray;
invokevirtual org.bson.BsonArray.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.bson.BsonDocument java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.BsonValue
astore 2
start local 2 3: aload 1
aload 2
invokevirtual org.bson.BsonValue.asString:()Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)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 isMasterResult Lorg/bson/BsonDocument;
1 6 1 compressorList Ljava/util/List<Ljava/lang/String;>;
3 4 2 compressor Lorg/bson/BsonValue;
Signature: (Lorg/bson/BsonDocument;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
isMasterResult final
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/DescriptionHelper;
}
SourceFile: "DescriptionHelper.java"
InnerClasses:
public Builder = com.mongodb.connection.ServerDescription$Builder of com.mongodb.connection.ServerDescription
public abstract Entry = java.util.Map$Entry of java.util.Map