public final class CommandStartedEvent extends CommandEvent
Modifier and Type | Field and Description |
---|---|
private BsonDocument |
command |
private java.lang.String |
databaseName |
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
private final java.lang.String databaseName
private final BsonDocument command
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()
.