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"));
}
Aggregations