Skip to content

Document an overview of action names and how they're used in the transport layer #100229

@DaveCTurner

Description

@DaveCTurner

As noted at #100162 (comment) we don't really have any great overview docs about how transport actions are registered and used.

The Javadocs for org.elasticsearch.transport.TransportHandshaker describe the message format of transport handshakes which are pretty similar to regular transport message but we should have something similar about regular transport messages too. The key point there is that the action name is included (in plain ASCII) in the header (see org.elasticsearch.transport.Header) and we use that string to pick the handler from the map of registered handlers:

final String action = header.getActionName();
final long requestId = header.getRequestId();
final RequestHandlerRegistry<T> reg = requestHandlers.getHandler(action);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions