use of io.hops.hopsworks.dela.dto.hopssite.HopsSiteDatasetDTO in project hopsworks by logicalclocks.
the class HopssiteController method getAll.
// dataset services
public List<HopsSiteDatasetDTO> getAll() throws DelaException {
checkHopssiteReady();
try {
ClientWrapper client = getClient(HopsSite.DatasetService.dataset(), HopsSiteDatasetDTO.class);
LOG.log(Settings.DELA_DEBUG, "hops-site:dataset - {0}", client.getFullPath());
List<HopsSiteDatasetDTO> result = (List<HopsSiteDatasetDTO>) client.doGetGenericType();
LOG.log(Settings.DELA_DEBUG, "hops-site:dataset - done {0}", client.getFullPath());
return result;
} catch (IllegalStateException ise) {
throw new DelaException(RESTCodes.DelaErrorCode.COMMUNICATION_FAILURE, Level.SEVERE, DelaException.Source.HOPS_SITE, null, ise.getMessage(), ise);
}
}
Aggregations