org.gridkit.nanocloud
Class SimpleCloudFactory

java.lang.Object
  extended by org.gridkit.nanocloud.SimpleCloudFactory

public class SimpleCloudFactory
extends Object

This is substitute for old CloudFactory class.

Author:
Alexey Ragozin (alexey.ragozin@gmail.com)

Constructor Summary
SimpleCloudFactory()
           
 
Method Summary
static void applyConfig(Cloud manager, InputStream is)
           
static void applyConfig(Cloud manager, Reader reader)
           
static void applyConfig(ViManager manager, String config)
           
static Cloud createCloud()
          Create Cloud with configuration driven node provider.
static Cloud createCloud(Reader configReader)
          Create ViManager with configuration driven node provider.
static Cloud createCloud(String configFile)
          Create ViManager with configuration driven node provider.
static Cloud createSimpleSshCloud()
          Creates instance of configuration driven ViManager, configured to interpret ViNode's name as hostname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCloudFactory

public SimpleCloudFactory()
Method Detail

createCloud

public static Cloud createCloud()
Create Cloud with configuration driven node provider.

Returns:
unconfigured instance of ViManager
See Also:
applyConfig(ViManager, String)

createCloud

public static Cloud createCloud(String configFile)
Create ViManager with configuration driven node provider.

Returns:
configured instance of ViManager
See Also:
applyConfig(ViManager, String)

createCloud

public static Cloud createCloud(Reader configReader)
Create ViManager with configuration driven node provider.

Returns:
configured instance of ViManager
See Also:
applyConfig(ViManager, String)

createSimpleSshCloud

public static Cloud createSimpleSshCloud()
Creates instance of configuration driven ViManager, configured to interpret ViNode's name as hostname.
Default SSH configuration is used. If password-less SSH is set up in environment, this ViManager cloud be used without further configuration.
If present, ~/ssh-credentials.prop would be used for SSH credentials lookup.

Returns:
configured instance of ViManager

applyConfig

public static void applyConfig(ViManager manager,
                               String config)

applyConfig

public static void applyConfig(Cloud manager,
                               Reader reader)

applyConfig

public static void applyConfig(Cloud manager,
                               InputStream is)


Copyright © 2017. All Rights Reserved.