Brooklyn

brooklyn.location.jclouds
[Java] Class JcloudsUtil

java.lang.Object
  brooklyn.location.jclouds.JcloudsUtil
All Implemented Interfaces:
JcloudsLocationConfig

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)

@deprecated since 0.5.0 pass ConfigBag instead

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

@deprecated since 0.5.0 pass ConfigBag instead

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

@deprecated since 0.5.0 pass ConfigBag instead

static ComputeService buildOrFindComputeService(java.util.Map conf)

@deprecated since 0.5.0 pass ConfigBag instead

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

@deprecated since 0.5.0 pass ConfigBag instead

static ComputeService findComputeService(ConfigBag conf)

static ComputeService findComputeService(ConfigBag conf, boolean allowReuse)

protected static java.lang.String getDeprecatedProperty(ConfigBag conf, java.lang.String key)

static java.lang.String getFirstReachableAddress(ComputeServiceContext context, NodeMetadata node)

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)
deprecated:
since 0.5.0 pass ConfigBag instead


buildComputeService

public static ComputeService buildComputeService(java.util.Map conf, java.util.Map unusedConf)
deprecated:
since 0.5.0 pass ConfigBag instead


buildComputeService

public static ComputeService buildComputeService(java.util.Map conf, java.util.Map unusedConf, boolean allowReuse)
deprecated:
since 0.5.0 pass ConfigBag instead


buildOrFindComputeService

public static ComputeService buildOrFindComputeService(java.util.Map conf)
deprecated:
since 0.5.0 pass ConfigBag instead


buildOrFindComputeService

public static ComputeService buildOrFindComputeService(java.util.Map conf, java.util.Map unusedConf)
deprecated:
since 0.5.0 pass ConfigBag instead


findComputeService

public static ComputeService findComputeService(ConfigBag conf)


findComputeService

public static ComputeService findComputeService(ConfigBag conf, boolean allowReuse)


getDeprecatedProperty

protected static java.lang.String getDeprecatedProperty(ConfigBag conf, java.lang.String key)


getFirstReachableAddress

public static java.lang.String getFirstReachableAddress(ComputeServiceContext context, NodeMetadata node)


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.