use of com.cloud.legacymodel.to.ImageStoreTO in project cosmic by MissionCriticalCloud.
the class ImageStoreImpl method getTO.
@Override
public DataStoreTO getTO() {
final DataStoreTO to = getDriver().getStoreTO(this);
if (to == null) {
final ImageStoreTO primaryTO = new ImageStoreTO();
primaryTO.setProviderName(getProviderName());
primaryTO.setRole(getRole());
primaryTO.setType(getProtocol());
primaryTO.setUri(getUri());
return primaryTO;
}
return to;
}
Aggregations