use of org.platformlayer.core.model.ServiceInfoCollection in project platformlayer by platformlayer.
the class OpsSystem method listServices.
public ServiceInfoCollection listServices() {
ServiceInfoCollection collection = new ServiceInfoCollection();
collection.services = Lists.newArrayList();
collection.services.addAll(serviceDictionary.getAllServices());
return collection;
}
use of org.platformlayer.core.model.ServiceInfoCollection in project platformlayer by platformlayer.
the class HttpPlatformLayerClient method listServices.
@Override
public List<ServiceInfo> listServices(boolean allowCache) throws PlatformLayerClientException {
if (!allowCache || services == null) {
ServiceInfoCollection ret = doRequest(HttpMethod.GET, "", ServiceInfoCollection.class, Format.XML, null, null);
services = ret.services;
}
return services;
}
use of org.platformlayer.core.model.ServiceInfoCollection in project platformlayer by platformlayer.
the class DirectPlatformLayerClient method listServices.
@Override
public Collection<ServiceInfo> listServices(boolean allowCache) throws PlatformLayerClientException {
Collection<ServiceInfo> services = this.services;
if (!allowCache || services == null) {
ServiceInfoCollection serviceInfoCollection = opsSystem.listServices();
services = serviceInfoCollection.services;
this.services = services;
}
return services;
}
Aggregations