public class RPCServiceMethodDescription extends ServiceMethodDescription
| Constructor and Description |
|---|
RPCServiceMethodDescription(String name,
String description,
String operationName,
String structureId,
boolean isResultStandalone)
A new rpcservice method with the given name and description.
|
| Modifier and Type | Method and Description |
|---|---|
RPCServiceMethodDescription |
addArgument(String name,
String fieldName,
String description,
Class<?> type)
Adds an argument for pvAccess RPC rpcservice.
|
RPCServiceMethodDescription |
addRPCResult(String name,
String fieldName,
String description,
Class<?> type)
Adds a result for the pvAccess RPC Service.
|
ServiceMethod |
createServiceMethod(ServiceDescription serviceDescription)
Creates a service method with the given description.
|
Map<String,String> |
getFieldNames()
Get field names
|
String |
getOperationName()
Get operation name
|
String |
getStructureId()
Get structure id
|
addArgument, addResultpublic RPCServiceMethodDescription(String name, String description, String operationName, String structureId, boolean isResultStandalone)
name - the method namedescription - the method descriptionoperationName - operation namestructureId - pvStructure idisResultStandalone - is result standalone i.e. image, tablepublic String getStructureId()
public String getOperationName()
public RPCServiceMethodDescription addArgument(String name, String fieldName, String description, Class<?> type)
name - argument namedescription - argument descriptiontype - the expected type of the argumentpublic RPCServiceMethodDescription addRPCResult(String name, String fieldName, String description, Class<?> type)
name - the result namedescription - the result descriptionpublic ServiceMethod createServiceMethod(ServiceDescription serviceDescription)
ServiceMethodDescriptionA client should implement this to return their service method implementation.
createServiceMethod in class ServiceMethodDescriptionserviceDescription - service description for the new service methodCopyright © 2015. All rights reserved.