class com.mongodb.internal.connection.InsertProtocol extends com.mongodb.internal.connection.WriteProtocol
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.InsertProtocol
super_class: com.mongodb.internal.connection.WriteProtocol
{
private static final com.mongodb.diagnostics.logging.Logger LOGGER;
descriptor: Lcom/mongodb/diagnostics/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final com.mongodb.bulk.InsertRequest insertRequest;
descriptor: Lcom/mongodb/bulk/InsertRequest;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "protocol.insert"
invokestatic com.mongodb.diagnostics.logging.Loggers.getLogger:(Ljava/lang/String;)Lcom/mongodb/diagnostics/logging/Logger;
putstatic com.mongodb.internal.connection.InsertProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.mongodb.MongoNamespace, boolean, com.mongodb.bulk.InsertRequest);
descriptor: (Lcom/mongodb/MongoNamespace;ZLcom/mongodb/bulk/InsertRequest;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
invokespecial com.mongodb.internal.connection.WriteProtocol.<init>:(Lcom/mongodb/MongoNamespace;Z)V
1: aload 0
aload 3
putfield com.mongodb.internal.connection.InsertProtocol.insertRequest:Lcom/mongodb/bulk/InsertRequest;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/connection/InsertProtocol;
0 3 1 namespace Lcom/mongodb/MongoNamespace;
0 3 2 ordered Z
0 3 3 insertRequest Lcom/mongodb/bulk/InsertRequest;
MethodParameters:
Name Flags
namespace final
ordered final
insertRequest final
public com.mongodb.WriteConcernResult execute(com.mongodb.internal.connection.InternalConnection);
descriptor: (Lcom/mongodb/internal/connection/InternalConnection;)Lcom/mongodb/WriteConcernResult;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: getstatic com.mongodb.internal.connection.InsertProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isDebugEnabled:()Z
ifeq 6
1: getstatic com.mongodb.internal.connection.InsertProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Inserting 1 document into namespace %s on connection [%s] to server %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual com.mongodb.internal.connection.InsertProtocol.getNamespace:()Lcom/mongodb/MongoNamespace;
aastore
dup
iconst_1
3: aload 1
invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
invokevirtual com.mongodb.connection.ConnectionDescription.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
aastore
dup
iconst_2
4: aload 1
invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
invokevirtual com.mongodb.connection.ConnectionDescription.getServerAddress:()Lcom/mongodb/ServerAddress;
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial com.mongodb.internal.connection.WriteProtocol.execute:(Lcom/mongodb/internal/connection/InternalConnection;)Lcom/mongodb/WriteConcernResult;
astore 2
start local 2 7: getstatic com.mongodb.internal.connection.InsertProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Insert completed"
invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
8: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/internal/connection/InsertProtocol;
0 9 1 connection Lcom/mongodb/internal/connection/InternalConnection;
7 9 2 writeConcernResult Lcom/mongodb/WriteConcernResult;
MethodParameters:
Name Flags
connection final
public void executeAsync(com.mongodb.internal.connection.InternalConnection, com.mongodb.async.SingleResultCallback<com.mongodb.WriteConcernResult>);
descriptor: (Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/async/SingleResultCallback;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.mongodb.internal.connection.InsertProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
invokeinterface com.mongodb.diagnostics.logging.Logger.isDebugEnabled:()Z
ifeq 5
1: getstatic com.mongodb.internal.connection.InsertProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Asynchronously inserting 1 document into namespace %s on connection [%s] to server %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual com.mongodb.internal.connection.InsertProtocol.getNamespace:()Lcom/mongodb/MongoNamespace;
aastore
dup
iconst_1
aload 1
invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
invokevirtual com.mongodb.connection.ConnectionDescription.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
aastore
dup
iconst_2
3: aload 1
invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
invokevirtual com.mongodb.connection.ConnectionDescription.getServerAddress:()Lcom/mongodb/ServerAddress;
aastore
4: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
5: StackMap locals:
StackMap stack:
aload 0
aload 1
new com.mongodb.internal.connection.InsertProtocol$1
dup
aload 0
aload 2
invokespecial com.mongodb.internal.connection.InsertProtocol$1.<init>:(Lcom/mongodb/internal/connection/InsertProtocol;Lcom/mongodb/async/SingleResultCallback;)V
invokespecial com.mongodb.internal.connection.WriteProtocol.executeAsync:(Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/async/SingleResultCallback;)V
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 3
start local 3 8: aload 2
aconst_null
aload 3
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 3 9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/internal/connection/InsertProtocol;
0 10 1 connection Lcom/mongodb/internal/connection/InternalConnection;
0 10 2 callback Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/WriteConcernResult;>;
8 9 3 t Ljava/lang/Throwable;
Exception table:
from to target type
0 6 7 Class java.lang.Throwable
Signature: (Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/async/SingleResultCallback<Lcom/mongodb/WriteConcernResult;>;)V
MethodParameters:
Name Flags
connection final
callback final
protected org.bson.BsonDocument getAsWriteCommand(com.mongodb.connection.ByteBufferBsonOutput, int);
descriptor: (Lcom/mongodb/connection/ByteBufferBsonOutput;I)Lorg/bson/BsonDocument;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "insert"
invokevirtual com.mongodb.internal.connection.InsertProtocol.getBaseCommandDocument:(Ljava/lang/String;)Lorg/bson/BsonDocument;
1: ldc "documents"
new org.bson.BsonArray
dup
aload 1
iload 2
invokestatic com.mongodb.internal.connection.ByteBufBsonDocument.createList:(Lcom/mongodb/connection/ByteBufferBsonOutput;I)Ljava/util/List;
invokespecial org.bson.BsonArray.<init>:(Ljava/util/List;)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
2: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/connection/InsertProtocol;
0 3 1 bsonOutput Lcom/mongodb/connection/ByteBufferBsonOutput;
0 3 2 firstDocumentPosition I
MethodParameters:
Name Flags
bsonOutput final
firstDocumentPosition final
protected com.mongodb.internal.connection.RequestMessage createRequestMessage(com.mongodb.internal.connection.MessageSettings);
descriptor: (Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/RequestMessage;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.internal.connection.InsertMessage
dup
aload 0
invokevirtual com.mongodb.internal.connection.InsertProtocol.getNamespace:()Lcom/mongodb/MongoNamespace;
invokevirtual com.mongodb.MongoNamespace.getFullName:()Ljava/lang/String;
aload 0
getfield com.mongodb.internal.connection.InsertProtocol.insertRequest:Lcom/mongodb/bulk/InsertRequest;
aload 1
invokespecial com.mongodb.internal.connection.InsertMessage.<init>:(Ljava/lang/String;Lcom/mongodb/bulk/InsertRequest;Lcom/mongodb/internal/connection/MessageSettings;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/InsertProtocol;
0 1 1 settings Lcom/mongodb/internal/connection/MessageSettings;
MethodParameters:
Name Flags
settings final
protected com.mongodb.diagnostics.logging.Logger getLogger();
descriptor: ()Lcom/mongodb/diagnostics/logging/Logger;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic com.mongodb.internal.connection.InsertProtocol.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/InsertProtocol;
}
SourceFile: "InsertProtocol.java"
NestMembers:
com.mongodb.internal.connection.InsertProtocol$1
InnerClasses:
com.mongodb.internal.connection.InsertProtocol$1