update page now

The MongoDB\Driver\Monitoring\CommandStartedEvent class

(mongodb >=1.3.0)

Introduzione

The MongoDB\Driver\Monitoring\CommandStartedEvent class encapsulates information about a started command.

Sommario della classe

final class MongoDB\Driver\Monitoring\CommandStartedEvent {
/* Proprietà */
public readonly string $host;
public readonly int $port;
public readonly string $commandName;
public readonly string $databaseName;
public readonly object $command;
public readonly string $operationId;
public readonly string $requestId;
public readonly ?int $serverConnectionId;
/* Metodi */
final public getCommand(): object
final public getCommandName(): string
final public getDatabaseName(): string
final public getHost(): string
final public getOperationId(): string
final public getPort(): int
final public getRequestId(): string
final public getServerConnectionId(): ?int
}

Proprietà

host
The hostname of the server that executed the command.
port
The port of the server that executed the command.
commandName
The command name.
databaseName
The database name.
command
The command document.
operationId
The operation ID. This may be used to link events together such as bulk writes, which may dispatch multiple commands.
requestId
The request ID. This may be used to associate this MongoDB\Driver\Monitoring\CommandStartedEvent with a corresponding MongoDB\Driver\Monitoring\CommandSucceededEvent or MongoDB\Driver\Monitoring\CommandFailedEvent.
serviceId
The service ID, or null if the server does not support it (i.e. not using load-balanced mode).
serverConnectionId
The server connection ID, or null if not available.

Log delle modifiche

Versione Descrizione
PECL mongodb 2.3.0 Added public readonly properties.

Indice dei contenuti

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top