public class RemotePlatform extends AbstractPlatform
Platform that is remote from the
current LocalPlatform.
Copyright (c) 2014. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Field and Description |
|---|---|
protected InetAddress |
address
The
InetAddress of the RemotePlatform. |
protected Authentication |
authentication
The
Authentication to use for the SSH-based session. |
static int |
DEFAULT_PORT
The default port for secure connection to a remote server (over SSH)
|
protected int |
port
The port of the remote host to connect for the SSH-based session.
|
protected String |
userName
The user name to use for the SSH-based session.
|
| Constructor and Description |
|---|
RemotePlatform(InetAddress address,
String userName,
Authentication authentication,
com.oracle.bedrock.Option... options)
Constructs a new
RemotePlatform, using the default ssh port
for connections, named according to the address provided. |
RemotePlatform(String name,
InetAddress address,
int port,
String userName,
Authentication authentication,
com.oracle.bedrock.Option... options)
Constructs a new
RemotePlatform. |
RemotePlatform(String name,
InetAddress address,
String userName,
Authentication authentication,
com.oracle.bedrock.Option... options)
Constructs a new
RemotePlatform, using the default ssh port
for connections. |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getAddress() |
protected <A extends Application,B extends ApplicationLauncher<A>> |
getApplicationLauncher(MetaClass<A> metaClass,
com.oracle.bedrock.OptionsByType optionsByType) |
Authentication |
getAuthentication()
Obtain the
Authentication to use to SSH to the remote host. |
int |
getPort()
Obtain the port to use with the
InetAddress
to use to SSH to the remote host. |
String |
getUserName()
Obtain the username to use to SSH to the remote host.
|
getName, getOptions, launchadd, add, get, getInstancesOf, has, remove, removeAllFeaturesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitany, getPlatform, is, launch, launch, namedlocal, of, usingpublic static final int DEFAULT_PORT
protected InetAddress address
InetAddress of the RemotePlatform.protected int port
protected Authentication authentication
Authentication to use for the SSH-based session.protected String userName
public RemotePlatform(InetAddress address, String userName, Authentication authentication, com.oracle.bedrock.Option... options)
RemotePlatform, using the default ssh port
for connections, named according to the address provided.address - the remote addressuserName - the user name on the remote hostauthentication - the Authentication for connecting to the hostoptions - the Options for the RemotePlatformpublic RemotePlatform(String name, InetAddress address, String userName, Authentication authentication, com.oracle.bedrock.Option... options)
RemotePlatform, using the default ssh port
for connections.name - the symbolic name of the RemotePlatformaddress - the remote addressuserName - the user name on the remote hostauthentication - the Authentication for connecting to the hostoptions - the Options for the RemotePlatformpublic RemotePlatform(String name, InetAddress address, int port, String userName, Authentication authentication, com.oracle.bedrock.Option... options)
RemotePlatform.name - the symbolic name of the RemotePlatformaddress - the remote addressport - the remote port (for ssh)userName - the user name on the remote hostauthentication - the Authentication for connecting to the hostoptions - the Options for the RemotePlatformpublic InetAddress getAddress()
protected <A extends Application,B extends ApplicationLauncher<A>> B getApplicationLauncher(MetaClass<A> metaClass, com.oracle.bedrock.OptionsByType optionsByType) throws UnsupportedOperationException
getApplicationLauncher in class AbstractPlatformUnsupportedOperationExceptionpublic int getPort()
InetAddress
to use to SSH to the remote host.InetAddress
to use to SSH to the remote host.public String getUserName()
public Authentication getAuthentication()
Authentication to use to SSH to the remote host.Authentication to SSH to the remote host.Copyright © 2017. All rights reserved.