org.duracloud.computeprovider.mgmt
Class ComputeProviderFactory

java.lang.Object
  extended by 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
           
 
Constructor Summary
ComputeProviderFactory()
           
 
Method Summary
static ComputeProvider getComputeProvider(ComputeProviderType providerType)
          
 java.util.Map<java.lang.String,java.lang.String> getIdToClassMap()
           
static void setIdToClassMap(java.util.Map<java.lang.String,java.lang.String> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.slf4j.Logger log
Constructor Detail

ComputeProviderFactory

public ComputeProviderFactory()
Method Detail

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.