NamedCommand

class NamedCommand(val type: String, val body: JsonNode)

A command named by its type rather than by its class: a command to a peer described by its Manifest alone (wow.peers.<context>.contract: manifest), which a console, a gateway or a tool calls without the peer's api jar. type is its full type name, context.aggregate.Command (the aggregate's type and the command's name in the peer's Manifest, or one of its aliases), and body its JSON, sent as is.

A CommandClient sends it as any command, to the aggregate its ref names, which must be of the type type names: the same caller, waits, retries and answers. The peer's Manifest (GET /wow/manifest, read once a minute at most) must declare the command, or the send fails before any request.

Constructors

Link copied to clipboard
constructor(type: String, body: JsonNode)

Properties

Link copied to clipboard
val body: JsonNode
Link copied to clipboard

The command's name within its aggregate: the last part of type.

Link copied to clipboard

The context.aggregate of the aggregate type type names.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String