public final class CommandStartedEvent extends CommandEvent
| 构造器和说明 |
|---|
CommandStartedEvent(int requestId,
ConnectionDescription connectionDescription,
java.lang.String databaseName,
java.lang.String commandName,
BsonDocument command)
Construct an instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
BsonDocument |
getCommand()
Gets the command document.
|
java.lang.String |
getDatabaseName()
Gets the database on which the operation will be executed.
|
getCommandName, getConnectionDescription, getRequestIdpublic 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().