Search in sources :

Example 1 with ServiceInfo

use of com.yahoo.vespa.hosted.controller.api.application.v4.model.configserverbindings.ServiceInfo in project vespa by vespa-engine.

the class ApplicationApiHandler method serviceInfosToSlime.

private void serviceInfosToSlime(List<ServiceInfo> serviceInfoList, Cursor array) {
    for (ServiceInfo serviceInfo : serviceInfoList) {
        Cursor serviceInfoObject = array.addObject();
        serviceInfoObject.setString("serviceName", serviceInfo.serviceName);
        serviceInfoObject.setString("serviceType", serviceInfo.serviceType);
        serviceInfoObject.setString("configId", serviceInfo.configId);
        serviceInfoObject.setString("hostName", serviceInfo.hostName);
    }
}
Also used : ServiceInfo(com.yahoo.vespa.hosted.controller.api.application.v4.model.configserverbindings.ServiceInfo) Cursor(com.yahoo.slime.Cursor)

Aggregations

Cursor (com.yahoo.slime.Cursor)1 ServiceInfo (com.yahoo.vespa.hosted.controller.api.application.v4.model.configserverbindings.ServiceInfo)1