|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.location.basic.AbstractLocation
brooklyn.location.basic.SshMachineLocation
brooklyn.location.jclouds.JcloudsSshMachineLocation
public class JcloudsSshMachineLocation extends SshMachineLocation
Field Summary |
---|
Fields inherited from class AbstractLocation | |
---|---|
LOG, PARENT_LOCATION, hostGeoInfo, name |
Constructor Summary | |
JcloudsSshMachineLocation()
|
|
JcloudsSshMachineLocation(java.util.Map flags, JcloudsLocation jcloudsParent, NodeMetadata node)
@deprecated since 0.6; use LocationSpec (which calls no-arg constructor) |
Method Summary | |
---|---|
void
|
execRemoteScript(java.lang.String... commands)
|
java.lang.String
|
getJcloudsId()
|
NodeMetadata
|
getNode()
|
OsDetails
|
getOsDetails()
|
JcloudsLocation
|
getParent()
|
protected Optional
|
getPrivateAddress()
|
java.lang.String
|
getSubnetHostname()
returns the hostname (or sometimes IP) for use by peers in the same subnet, defaulting to public hostname if nothing special |
java.lang.String
|
getSubnetIp()
|
void
|
init()
|
ListenableFuture
|
submitRunScript(java.lang.String... statements)
executes the given statements on the server using jclouds ScriptBuilder, wrapping in a script which is polled periodically. |
ListenableFuture
|
submitRunScript(Statement script)
|
ListenableFuture
|
submitRunScript(Statement script, RunScriptOptions options)
uses submitRunScript to execute the commands, and throws error if it fails or returns non-zero |
java.util.Map
|
toMetadataRecord()
|
java.lang.String
|
toVerboseString()
|
java.lang.String
|
waitForPassword()
Retrieves the password for this VM, if one exists. |
Methods inherited from class SshMachineLocation | |
---|---|
acquireMutex, addConfig, close, configure, connectSsh, connectSsh, copyFrom, copyFrom, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, exec, exec, exec, exec, execCommands, execCommands, execCommands, execCommands, execScript, execScript, execScript, execScript, execSsh, execWithLogging, finalize, findKeyPair, findPassword, getAddress, getOsDetails, getPort, getSshHostAndPort, getUser, hasMutex, installTo, isSshable, newExecWithLoggingHelpers, newMutexSupport, obtainPort, obtainSpecificPort, releaseMutex, releasePort, run, run, run, run, run, run, run, run, toString, toVerboseString, tryAcquireMutex |
Constructor Detail |
---|
public JcloudsSshMachineLocation()
@Deprecated public JcloudsSshMachineLocation(java.util.Map flags, JcloudsLocation jcloudsParent, NodeMetadata node)
Method Detail |
---|
public void execRemoteScript(java.lang.String... commands)
public java.lang.String getJcloudsId()
public NodeMetadata getNode()
? node.getOperatingSystem().getName() : "linux", public OsDetails getOsDetails()
public JcloudsLocation getParent()
protected Optional getPrivateAddress()
@Override public java.lang.String getSubnetHostname()
for use e.g. in clouds like amazon where other machines in the same subnet need to use a different IP
OptionalprivateAddress = getPrivateAddress(); public java.lang.String getSubnetIp()
@Override public void init()
public ListenableFuture submitRunScript(java.lang.String... statements)
public ListenableFuture submitRunScript(Statement script)
public ListenableFuture submitRunScript(Statement script, RunScriptOptions options)
ImmutableMap.Builderbuilder = ImmutableMap.builder(); public java.util.Map toMetadataRecord()
@Override public java.lang.String toVerboseString()
public java.lang.String waitForPassword()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.