public class

ServiceDescription

extends Object
java.lang.Object
   ↳ com.rabbitmq.tools.jsonrpc.ServiceDescription

Class Overview

Description of a JSON-RPC service.

Summary

Constants
String JSON_RPC_VERSION
Fields
public String help Human-readable instructions for how to get information on the service's operation
public String id ID for the service
public String name The service name
public String summary Human-readable summary for the service
public String version Version of the service
Public Constructors
ServiceDescription(Map<StringObject> rawServiceDescription)
ServiceDescription(Class<?> klass)
ServiceDescription()
Public Methods
ProcedureDescription getProcedure(String newname, int arity)
Looks up a single ProcedureDescription by name and arity.
Collection<ProcedureDescription> getProcs()
Gets a collection of all ProcedureDescription for this service
void setProcs(Collection<Map<StringObject>> p)
Private API - used via reflection during parsing/loading
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String JSON_RPC_VERSION

Constant Value: "1.1"

Fields

public String help

Human-readable instructions for how to get information on the service's operation

public String id

ID for the service

public String name

The service name

public String summary

Human-readable summary for the service

public String version

Version of the service

Public Constructors

public ServiceDescription (Map<StringObject> rawServiceDescription)

public ServiceDescription (Class<?> klass)

public ServiceDescription ()

Public Methods

public ProcedureDescription getProcedure (String newname, int arity)

Looks up a single ProcedureDescription by name and arity.

Returns
  • non-null ProcedureDescription if a match is found
Throws
IllegalArgumentException if no match is found

public Collection<ProcedureDescription> getProcs ()

Gets a collection of all ProcedureDescription for this service

public void setProcs (Collection<Map<StringObject>> p)

Private API - used via reflection during parsing/loading