org.gridkit.nanocloud
Class RemoteNode

java.lang.Object
  extended by org.gridkit.vicluster.ViConfigurable.Delegate
      extended by org.gridkit.nanocloud.RemoteNode
All Implemented Interfaces:
ViConfigurable

public class RemoteNode
extends ViConfigurable.Delegate

Config properties for remote nodes.

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gridkit.vicluster.ViConfigurable
ViConfigurable.Delegate
 
Field Summary
static String ACCOUNT
          Hint, which account to use
static String HOST
          Hint, where to execute process
static String JAR_CACHE_PATH
          Hint.
static String PASSWORD
           
static ViConfExtender<RemoteNode> REMOTE
           
static String SSH_AUTH_METHODS
           
static String SSH_KEY_FILE
           
 
Constructor Summary
protected RemoteNode(ViConfigurable target)
           
 
Method Summary
static RemoteNode at(ViConfigurable target)
           
protected  ViConfigurable getConfigurable()
           
 RemoteNode setHostsConfigFile(String path)
           
 RemoteNode setPassword(String password)
          Deprecated. You should use hosts config file to store passwords
 RemoteNode setRemoteAccount(String account)
           
 RemoteNode setRemoteBootstrapJavaExec(String jarCachePath)
           This is command used to start tunneller.
 RemoteNode setRemoteHost(String host)
           
 RemoteNode setRemoteJarCachePath(String jarCachePath)
           
 RemoteNode setRemoteJavaExec(String javaExec)
           
 RemoteNode setRemoteNodeType()
           
 RemoteNode setSshPrivateKey(String path)
           
 RemoteNode useSimpleRemoting()
           
 
Methods inherited from class org.gridkit.vicluster.ViConfigurable.Delegate
setConfigElement, setConfigElements, setProp, setProps, x
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOTE

public static ViConfExtender<RemoteNode> REMOTE

HOST

public static String HOST
Hint, where to execute process


ACCOUNT

public static String ACCOUNT
Hint, which account to use


PASSWORD

public static String PASSWORD

SSH_AUTH_METHODS

public static String SSH_AUTH_METHODS

SSH_KEY_FILE

public static String SSH_KEY_FILE

JAR_CACHE_PATH

public static String JAR_CACHE_PATH
Hint. remote location for jar cache

Constructor Detail

RemoteNode

protected RemoteNode(ViConfigurable target)
Method Detail

at

public static RemoteNode at(ViConfigurable target)

getConfigurable

protected ViConfigurable getConfigurable()
Specified by:
getConfigurable in class ViConfigurable.Delegate

setRemoteNodeType

public RemoteNode setRemoteNodeType()

useSimpleRemoting

public RemoteNode useSimpleRemoting()

setRemoteHost

public RemoteNode setRemoteHost(String host)

setRemoteAccount

public RemoteNode setRemoteAccount(String account)

setHostsConfigFile

public RemoteNode setHostsConfigFile(String path)

setSshPrivateKey

public RemoteNode setSshPrivateKey(String path)

setPassword

public RemoteNode setPassword(String password)
Deprecated. You should use hosts config file to store passwords


setRemoteJavaExec

public RemoteNode setRemoteJavaExec(String javaExec)

setRemoteBootstrapJavaExec

public RemoteNode setRemoteBootstrapJavaExec(String jarCachePath)

This is command used to start tunneller. For some reason you may want to use different commands for tunneller and actual slave process.

E.g. if you want to use sudo for

If command is composite, you should use pipe character. E.g. sudo|java.

Parameters:
jarCachePath -
Returns:

setRemoteJarCachePath

public RemoteNode setRemoteJarCachePath(String jarCachePath)


Copyright © 2017. All Rights Reserved.