public final class CommandStartedEvent extends CommandEvent
Constructor and Description |
---|
CommandStartedEvent(int requestId,
ConnectionDescription connectionDescription,
java.lang.String databaseName,
java.lang.String commandName,
BsonDocument command)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
BsonDocument |
getCommand()
Gets the command document.
|
java.lang.String |
getDatabaseName()
Gets the database on which the operation will be executed.
|
getCommandName, getConnectionDescription, getRequestId
public CommandStartedEvent(int requestId, ConnectionDescription connectionDescription, java.lang.String databaseName, java.lang.String commandName, BsonDocument command)
requestId
- the request idconnectionDescription
- the connection descriptiondatabaseName
- the database namecommandName
- the command namecommand
- the command as a BSON documentpublic java.lang.String getDatabaseName()
public BsonDocument getCommand()
Object.clone()
.Copyright © 2010 - 2020 Adobe. All Rights Reserved