Search in sources :

Example 1 with ServiceClient

use of co.cask.cdap.client.ServiceClient in project cdap by caskdata.

the class GenerateClientUsageExample method serviceClient.

public void serviceClient() throws Exception {
    // Construct the client used to interact with CDAP
    ServiceClient serviceClient = new ServiceClient(clientConfig);
    // Fetch service information using the service in the PurchaseApp example
    ServiceSpecification serviceSpec = serviceClient.get(NamespaceId.DEFAULT.app("PurchaseApp").service("CatalogLookup"));
}
Also used : ServiceSpecification(co.cask.cdap.api.service.ServiceSpecification) ServiceClient(co.cask.cdap.client.ServiceClient)

Aggregations

ServiceSpecification (co.cask.cdap.api.service.ServiceSpecification)1 ServiceClient (co.cask.cdap.client.ServiceClient)1