co.cask.cdap.test
Interface ProcedureClient

All Known Implementing Classes:
DefaultProcedureClient

public interface ProcedureClient

Class for sending queries to running Procedure.


Method Summary
 String query(String method, Map<String,String> arguments)
          Makes a query to the procedure with String result.
 byte[] queryRaw(String method, Map<String,String> arguments)
          Makes a query to the procedure.
 

Method Detail

queryRaw

byte[] queryRaw(String method,
                Map<String,String> arguments)
                throws IOException
Makes a query to the procedure.

Parameters:
method - Name of the procedure method to query against.
arguments - Arguments to be submitted to the procedure for the query.
Returns:
A byte array representing the response.
Throws:
IOException - When there is error querying the procedure.

query

String query(String method,
             Map<String,String> arguments)
             throws IOException
Makes a query to the procedure with String result.

Parameters:
method - Name of the procedure method to query against.
arguments - Arguments to be submitted to the procedure for the query.
Returns:
A String representing the response.
Throws:
IOException - When there is error querying the procedure.


Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.