public final class DefaultProcedureClient extends Object implements ProcedureClient
| Constructor and Description |
|---|
DefaultProcedureClient(org.apache.twill.discovery.DiscoveryServiceClient discoveryServiceClient,
String accountId,
String applicationId,
String procedureName) |
public byte[] queryRaw(String method, Map<String,String> arguments) throws IOException
ProcedureClientqueryRaw in interface ProcedureClientmethod - Name of the procedure method to query against.arguments - Arguments to be submitted to the procedure for the query.IOException - When there is error querying the procedure.public String query(String method, Map<String,String> arguments) throws IOException
ProcedureClientString result.query in interface ProcedureClientmethod - Name of the procedure method to query against.arguments - Arguments to be submitted to the procedure for the query.String representing the response.IOException - When there is error querying the procedure.Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.