@Override public boolean configure(Map<String, Object> params) { lifecycle = ComponentContext.inject(CloudStackPrimaryDataStoreLifeCycleImpl.class); driver = ComponentContext.inject(CloudStackPrimaryDataStoreDriverImpl.class); listener = ComponentContext.inject(DefaultHostListener.class); return true; }
@Override public boolean configure(Map<String, Object> params) { lifecycle = ComponentContext.inject(SolidFireSharedPrimaryDataStoreLifeCycle.class); driver = ComponentContext.inject(SolidFireSharedPrimaryDataStoreDriver.class); listener = ComponentContext.inject(SolidFireSharedHostListener.class); return true; }
public static void main(String[] args) { PodZoneConfig config = ComponentContext.inject(PodZoneConfig.class); //config.run(args); System.exit(0); }
@Override public boolean configure(Map<String, Object> params) { s_logger.info("Will configure elastistor's lifecycle, driver, listener & global configurations."); lifecycle = ComponentContext.inject(ElastistorPrimaryDataStoreLifeCycle.class); driver = ComponentContext.inject(ElastistorPrimaryDataStoreDriver.class); listener = ComponentContext.inject(ElastistorHostListener.class); // insert new cloudbyte global config to the configuration table setCloudbyteGlobalConfiguration(); // set the injected configuration object in elastistor util class too!!! ElastistorUtil.setConfigurationDao(configurationDao); s_logger.info("Successfully configured elastistor's lifecycle, driver, listener & global configurations."); return true; }
public static RemoteHostEndPoint getHypervisorHostEndPoint(Host host) { RemoteHostEndPoint ep = ComponentContext.inject(RemoteHostEndPoint.class); ep.configure(host); return ep; }
public static TemplateObject getTemplate(VMTemplateVO vo, DataStore store) { TemplateObject to = ComponentContext.inject(TemplateObject.class); to.configure(vo, store); return to; }
public static VolumeObject getVolumeObject(DataStore dataStore, VolumeVO volumeVO) { VolumeObject vo = ComponentContext.inject(VolumeObject.class); vo.configure(dataStore, volumeVO); return vo; }
public static void main(String[] args) { IPRangeConfig config = ComponentContext.inject(IPRangeConfig.class); config.run(args); System.exit(0); }
public static SnapshotObject getSnapshotObject(SnapshotVO snapshot, DataStore store) { SnapshotObject snapObj = ComponentContext.inject(SnapshotObject.class); snapObj.configure(snapshot, store); return snapObj; }
public static PrimaryDataStoreImpl createDataStore(StoragePoolVO pdsv, PrimaryDataStoreDriver driver, DataStoreProvider provider) { PrimaryDataStoreImpl dataStore = ComponentContext.inject(PrimaryDataStoreImpl.class); dataStore.configure(pdsv, driver, provider); return dataStore; }
public static ImageStoreEntity getDataStore(ImageStoreVO dataStoreVO, ImageStoreDriver imageDataStoreDriver, ImageStoreProvider provider) { ImageStoreImpl instance = ComponentContext.inject(ImageStoreImpl.class); instance.configure(dataStoreVO, imageDataStoreDriver, provider); return instance; }
public static EndPoint getEndpoint() { LocalHostEndpoint endpoint = ComponentContext.inject(LocalHostEndpoint.class); endpoint.configure(); return endpoint; }
@Override public boolean configure(String name, Map<String, Object> params) throws ConfigurationException { super.configure(name, params); _firstFitStoragePoolAllocator = ComponentContext.inject(ClusterScopeStoragePoolAllocator.class); _firstFitStoragePoolAllocator.configure("GCFirstFitStoragePoolAllocator", params); _localStoragePoolAllocator = ComponentContext.inject(LocalStoragePoolAllocator.class); _localStoragePoolAllocator.configure("GCLocalStoragePoolAllocator", params); String storagePoolCleanupEnabled = _configDao.getValue("storage.pool.cleanup.enabled"); _storagePoolCleanupEnabled = (storagePoolCleanupEnabled == null) ? true : Boolean.parseBoolean(storagePoolCleanupEnabled); return true; }