Brooklyn

brooklyn.location.basic.jclouds
[Java] Class JcloudsUtil

java.lang.Object
  brooklyn.location.basic.jclouds.JcloudsUtil

public class JcloudsUtil

Field Summary
static java.lang.String APT_INSTALL

static Statement APT_RUN_SCRIPT

static Statement YUM_RUN_SCRIPT

static Statement ZYPPER_RUN_SCRIPT

 
Method Summary
static Statement addAuthorizedKeysToRoot(java.io.File publicKeyFile)

static Statement addAuthorizedKeysToRoot(java.lang.String publicKey)

static Statement authorizePortInIpTables(int port)

static ComputeService buildComputeService(java.util.Map conf)

static ComputeService buildComputeService(java.util.Map conf, java.util.Map unusedConf)

static ComputeService buildComputeService(java.util.Map conf, java.util.Map unusedConf, boolean allowReuse)

static ComputeService buildOrFindComputeService(java.util.Map conf)

static ComputeService buildOrFindComputeService(java.util.Map conf, java.util.Map unusedConf)

static java.lang.String getFirstReachableAddress(NodeMetadata node)

static java.lang.String getNodeAddress(NodeMetadata node)

Returns the IP address for a node which should be used by other nodes to contact it.

static java.lang.String installAfterUpdatingIfNotPresent(java.lang.String cmd)

static Statement installJavaAndCurl(OperatingSystem os)

static Predicate predicateMatchingById(NodeMetadata node)

static Predicate predicateMatchingById(java.lang.String id)

static ExecResponse runScriptOnNode(ComputeService computeService, NodeMetadata node, Statement statement, java.lang.String scriptName)

@throws RunScriptOnNodesException

static java.lang.String waitForPasswordOnAws(ComputeService computeService, NodeMetadata node, long timeout, java.util.concurrent.TimeUnit timeUnit)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

APT_INSTALL

public static java.lang.String APT_INSTALL


APT_RUN_SCRIPT

public static final Statement APT_RUN_SCRIPT


YUM_RUN_SCRIPT

public static final Statement YUM_RUN_SCRIPT


ZYPPER_RUN_SCRIPT

public static final Statement ZYPPER_RUN_SCRIPT


 
Method Detail

addAuthorizedKeysToRoot

public static Statement addAuthorizedKeysToRoot(java.io.File publicKeyFile)


addAuthorizedKeysToRoot

public static Statement addAuthorizedKeysToRoot(java.lang.String publicKey)


authorizePortInIpTables

public static Statement authorizePortInIpTables(int port)


buildComputeService

public static ComputeService buildComputeService(java.util.Map conf)


buildComputeService

public static ComputeService buildComputeService(java.util.Map conf, java.util.Map unusedConf)


buildComputeService

public static ComputeService buildComputeService(java.util.Map conf, java.util.Map unusedConf, boolean allowReuse)


buildOrFindComputeService

public static ComputeService buildOrFindComputeService(java.util.Map conf)


buildOrFindComputeService

public static ComputeService buildOrFindComputeService(java.util.Map conf, java.util.Map unusedConf)


getFirstReachableAddress

public static java.lang.String getFirstReachableAddress(NodeMetadata node)


getNodeAddress

public static java.lang.String getNodeAddress(NodeMetadata node)
Returns the IP address for a node which should be used by other nodes to contact it. When using a VPN, this could be a private address. It could also be a public one. The method tries to guess what will work.


installAfterUpdatingIfNotPresent

public static java.lang.String installAfterUpdatingIfNotPresent(java.lang.String cmd)


installJavaAndCurl

public static Statement installJavaAndCurl(OperatingSystem os)


predicateMatchingById

public static Predicate predicateMatchingById(NodeMetadata node)


predicateMatchingById

public static Predicate predicateMatchingById(java.lang.String id)


runScriptOnNode

public static ExecResponse runScriptOnNode(ComputeService computeService, NodeMetadata node, Statement statement, java.lang.String scriptName)
throws:
RunScriptOnNodesException
throws:
IllegalStateException If do not find exactly one matching node


waitForPasswordOnAws

public static java.lang.String waitForPasswordOnAws(ComputeService computeService, NodeMetadata node, long timeout, java.util.concurrent.TimeUnit timeUnit)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.