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