Package com.rabbitmq.tools.jsonrpc
Class ServiceDescription
java.lang.Object
com.rabbitmq.tools.jsonrpc.ServiceDescription
Description of a JSON-RPC service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionHuman-readable instructions for how to get information on the service's operationID for the servicestatic final StringThe service nameHuman-readable summary for the serviceVersion of the service -
Constructor Summary
ConstructorsConstructorDescriptionServiceDescription(Class<?> klass) ServiceDescription(Map<String, Object> rawServiceDescription) -
Method Summary
Modifier and TypeMethodDescriptiongetProcedure(String newname, int arity) Looks up a single ProcedureDescription by name and arity.getProcs()Gets a collection of allProcedureDescriptionfor this servicevoidsetProcs(Collection<Map<String, Object>> p) Private API - used via reflection during parsing/loading
-
Field Details
-
JSON_RPC_VERSION
- See Also:
-
name
The service name -
id
ID for the service -
version
Version of the service -
summary
Human-readable summary for the service -
help
Human-readable instructions for how to get information on the service's operation
-
-
Constructor Details
-
ServiceDescription
-
ServiceDescription
-
ServiceDescription
public ServiceDescription()
-
-
Method Details
-
getProcs
Gets a collection of allProcedureDescriptionfor this service -
setProcs
Private API - used via reflection during parsing/loading -
getProcedure
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
-