use of io.cdap.cdap.client.ServiceClient in project cdap by cdapio.
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"));
}
use of io.cdap.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