Search in sources :

Example 1 with ImageStoreTO

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;
}
Also used : DataStoreTO(com.cloud.legacymodel.to.DataStoreTO) ImageStoreTO(com.cloud.legacymodel.to.ImageStoreTO)

Aggregations

DataStoreTO (com.cloud.legacymodel.to.DataStoreTO)1 ImageStoreTO (com.cloud.legacymodel.to.ImageStoreTO)1