Package com.rabbitmq.tools.jsonrpc
Class ServiceDescription
java.lang.Object
com.rabbitmq.tools.jsonrpc.ServiceDescription
Description of a JSON-RPC service.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionServiceDescription
(Class<?> klass) ServiceDescription
(Map<String, Object> rawServiceDescription) -
Method Summary
Modifier and TypeMethodDescriptiongetHelp()
getId()
getName()
getProcedure
(String newname, int arity) Looks up a single ProcedureDescription by name and arity.getProcs()
Gets a collection of allProcedureDescription
for this servicevoid
void
void
void
setProcs
(Collection<Map<String, Object>> p) Private API - used via reflection during parsing/loadingvoid
setSummary
(String summary) void
setVersion
(String version)
-
Field Details
-
JSON_RPC_VERSION
- See Also:
-
-
Constructor Details
-
ServiceDescription
-
ServiceDescription
-
ServiceDescription
public ServiceDescription()
-
-
Method Details
-
getProcs
Gets a collection of allProcedureDescription
for 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
-
getName
-
getId
-
getVersion
-
getSummary
-
getHelp
-
setName
-
setId
-
setVersion
-
setSummary
-
setHelp
-