mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Disable StorageProvider, storageType introduced in Javelin new code, temporarily, to make existing code run
This commit is contained in:
parent
4c1257bf18
commit
727fab71cb
@ -67,4 +67,10 @@
|
||||
-->
|
||||
<bean id="StaticRoleBasedAPIAccessChecker" class="org.apache.cloudstack.acl.StaticRoleBasedAPIAccessChecker"/>
|
||||
|
||||
|
||||
<!--
|
||||
Gurus
|
||||
-->
|
||||
|
||||
|
||||
</beans>
|
||||
|
||||
@ -77,11 +77,14 @@ public class StoragePoolVO implements StoragePool {
|
||||
@Enumerated(value=EnumType.STRING)
|
||||
private StoragePoolStatus status;
|
||||
|
||||
// @Column(name="storage_provider", updatable=true, nullable=false)
|
||||
private String storageProvider;
|
||||
// TODO, disable persisency of storageProvider and storageType, javelin new code not
|
||||
// sync with the schema!
|
||||
|
||||
// @Column(name="storage_type", nullable=false)
|
||||
private String storageType;
|
||||
// @Column(name="storage_provider", updatable=true, nullable=false)
|
||||
@Transient private String storageProvider;
|
||||
|
||||
// Column(name="storage_type", nullable=false)
|
||||
@Transient private String storageType;
|
||||
|
||||
@Override
|
||||
public long getId() {
|
||||
@ -135,7 +138,7 @@ public class StoragePoolVO implements StoragePool {
|
||||
public long getAvailableBytes() {
|
||||
return availableBytes;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getStorageProvider() {
|
||||
return storageProvider;
|
||||
@ -153,7 +156,7 @@ public class StoragePoolVO implements StoragePool {
|
||||
public void setStorageType(String type) {
|
||||
storageType = type;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public long getCapacityBytes() {
|
||||
return capacityBytes;
|
||||
|
||||
@ -184,7 +184,6 @@
|
||||
<srcFiles>
|
||||
<srcFile>${basedir}/target/db/create-schema-view.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/templates.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/create-index-fk.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/cloudbridge_schema.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/cloudbridge_multipart.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/cloudbridge_index.sql</srcFile>
|
||||
@ -474,7 +473,6 @@
|
||||
<srcFile>${basedir}/target/db/create-schema-view.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/create-schema-premium.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/templates.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/create-index-fk.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/cloudbridge_schema.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/cloudbridge_multipart.sql</srcFile>
|
||||
<srcFile>${basedir}/target/db/cloudbridge_index.sql</srcFile>
|
||||
|
||||
@ -499,7 +499,7 @@ public class ManagementServerImpl implements ManagementServer {
|
||||
if(Manager.class.isAssignableFrom(ComponentContext.getTargetClass(adapter)))
|
||||
continue;
|
||||
|
||||
if(!adapter.configure(adapter.getClass().getSimpleName(), params)) {
|
||||
if(!adapter.configure(adapter.getName(), params)) {
|
||||
throw new CloudRuntimeException("Failed to start adapter: " + ComponentContext.getTargetClass(adapter).getName());
|
||||
}
|
||||
if (!adapter.start()) {
|
||||
|
||||
@ -52,7 +52,7 @@ public class AdapterBase implements Adapter {
|
||||
|
||||
public static <T extends Adapter> T getAdapterByName(List<T> adapters, String name) {
|
||||
for(T adapter : adapters) {
|
||||
if(adapter.getName().equals(name))
|
||||
if(adapter.getName().equalsIgnoreCase(name))
|
||||
return adapter;
|
||||
}
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user