|
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.basic.jclouds.JcloudsLocation.JcloudsSshMachineLocation
public static class JcloudsLocation.JcloudsSshMachineLocation extends SshMachineLocation
Field Summary |
---|
Fields inherited from class SshMachineLocation | |
---|---|
LOG, NON_SSH_PROPS, SSHCONFIG_PREFIX, SSH_PROPS, logSsh, previouslyConnected |
Fields inherited from class AbstractLocation | |
---|---|
LOG, hostGeoInfo, leftoverProperties, name |
Constructor Summary | |
JcloudsLocation.JcloudsSshMachineLocation(java.util.Map flags, JcloudsLocation parent, NodeMetadata node)
|
Method Summary | |
---|---|
void
|
execRemoteScript(java.lang.String... commands)
uses submitRunScript to execute the commands, and throws error if it fails or returns non-zero |
java.lang.String
|
getJcloudsId()
|
NodeMetadata
|
getNode()
|
OsDetails
|
getOsDetails()
|
JcloudsLocation
|
getParent()
|
java.lang.String
|
getSubnetHostname()
returns the hostname for use by peers in the same subnet, defaulting to public hostname if nothing special |
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)
|
java.lang.String
|
waitForPassword()
Retrieves the password for this VM, if one exists. |
Methods inherited from class SshMachineLocation | |
---|---|
acquireMutex, configure, 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, execWithLogging, execWithLogging, getAddress, getConfig, getOsDetails, getUser, hasMutex, installTo, isSshable, newMutexSupport, obtainPort, obtainSpecificPort, releaseMutex, releasePort, run, run, run, run, run, run, run, run, toString, tryAcquireMutex |
Methods inherited from class AbstractLocation | |
---|---|
addChildLocation, configure, configure, containsLocation, equals, findLocationProperty, getChildLocations, getHostGeoInfo, getId, getLocationProperty, getName, getParentLocation, hasLocationProperty, hashCode, removeChildLocation, setHostGeoInfo, setParentLocation, string, toString |
Constructor Detail |
---|
public JcloudsLocation.JcloudsSshMachineLocation(java.util.Map flags, JcloudsLocation parent, NodeMetadata node)
Method Detail |
---|
public void execRemoteScript(java.lang.String... commands)
public java.lang.String getJcloudsId()
public NodeMetadata getNode()
@Override public OsDetails getOsDetails()
public JcloudsLocation getParent()
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
public ListenableFuture submitRunScript(java.lang.String... statements)
public ListenableFuture submitRunScript(Statement script)
public ListenableFuture submitRunScript(Statement script, RunScriptOptions options)
public java.lang.String waitForPassword()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.