Search in sources :

Example 11 with TemplateProp

use of com.cloud.legacymodel.storage.TemplateProp in project cosmic by MissionCriticalCloud.

the class DummySecondaryStorageResource method getDefaultSystemVmTemplateInfo.

public Map<String, TemplateProp> getDefaultSystemVmTemplateInfo() {
    final List<VMTemplateVO> tmplts = this._tmpltDao.listAllSystemVMTemplates();
    final Map<String, TemplateProp> tmpltInfo = new HashMap<>();
    if (tmplts != null) {
        for (final VMTemplateVO tmplt : tmplts) {
            final TemplateProp routingInfo = new TemplateProp(tmplt.getUniqueName(), TemplateConstants.DEFAULT_SYSTEM_VM_TEMPLATE_PATH + tmplt.getId() + File.separator, false, false);
            tmpltInfo.put(tmplt.getUniqueName(), routingInfo);
        }
    }
    return tmpltInfo;
}
Also used : TemplateProp(com.cloud.legacymodel.storage.TemplateProp) HashMap(java.util.HashMap) VMTemplateVO(com.cloud.storage.VMTemplateVO)

Aggregations

TemplateProp (com.cloud.legacymodel.storage.TemplateProp)11 HashMap (java.util.HashMap)7 Answer (com.cloud.legacymodel.communication.answer.Answer)6 CopyCmdAnswer (com.cloud.legacymodel.communication.answer.CopyCmdAnswer)4 TemplateLocation (com.cloud.common.storageprocessor.TemplateLocation)3 ListTemplateAnswer (com.cloud.legacymodel.communication.answer.ListTemplateAnswer)3 ListVolumeAnswer (com.cloud.legacymodel.communication.answer.ListVolumeAnswer)3 IOException (java.io.IOException)3 EndPoint (com.cloud.engine.subsystem.api.storage.EndPoint)2 CheckHealthAnswer (com.cloud.legacymodel.communication.answer.CheckHealthAnswer)2 GetStorageStatsAnswer (com.cloud.legacymodel.communication.answer.GetStorageStatsAnswer)2 ModifyStoragePoolAnswer (com.cloud.legacymodel.communication.answer.ModifyStoragePoolAnswer)2 ReadyAnswer (com.cloud.legacymodel.communication.answer.ReadyAnswer)2 SecStorageSetupAnswer (com.cloud.legacymodel.communication.answer.SecStorageSetupAnswer)2 UploadStatusAnswer (com.cloud.legacymodel.communication.answer.UploadStatusAnswer)2 DeleteCommand (com.cloud.legacymodel.communication.command.DeleteCommand)2 ResourceAllocationException (com.cloud.legacymodel.exceptions.ResourceAllocationException)2 DataStoreTO (com.cloud.legacymodel.to.DataStoreTO)2 NfsTO (com.cloud.legacymodel.to.NfsTO)2 TemplateObjectTO (com.cloud.legacymodel.to.TemplateObjectTO)2