use of org.onosproject.workflow.api.RpcDescription in project onos by opennetworkinglab.
the class WorkflowNetConfig method getRpcDescriptions.
public Collection<RpcDescription> getRpcDescriptions() throws WorkflowException {
JsonNode node = object.at(RPC_PTR);
if (!(node instanceof ArrayNode)) {
throw new WorkflowException("invalid rpc for " + object);
}
ArrayNode rpcArrayNode = (ArrayNode) node;
List<RpcDescription> rpcDescriptions = new ArrayList<>();
for (JsonNode rpcNode : rpcArrayNode) {
rpcDescriptions.add(DefaultRpcDescription.valueOf(rpcNode));
}
return rpcDescriptions;
}
Aggregations