org.duracloud.computeprovider.mgmt
Class ComputeProviderFactory
java.lang.Object
org.duracloud.computeprovider.mgmt.ComputeProviderFactory
public class ComputeProviderFactory
- extends java.lang.Object
This class is a factory for creating instances of ComputeProviders.
It holds a map of compute-provider-types and their class-names.
The mapping between the id & classes is configured in the Spring config files.
ComputeProvider instances ARE NOT cached after being created.
- Author:
- Andrew Woods
Field Summary |
protected static org.slf4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.slf4j.Logger log
ComputeProviderFactory
public ComputeProviderFactory()
getComputeProvider
public static ComputeProvider getComputeProvider(ComputeProviderType providerType)
throws java.lang.Exception
-
- Throws:
java.lang.Exception
getIdToClassMap
public java.util.Map<java.lang.String,java.lang.String> getIdToClassMap()
setIdToClassMap
public static void setIdToClassMap(java.util.Map<java.lang.String,java.lang.String> map)
Copyright © 2009-2011 DuraSpace. All Rights Reserved.