|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRemoteConnection
| Field Summary | |
|---|---|
static java.lang.String |
FILE_SERPARATOR_PROPERTY
|
static java.lang.String |
LINE_SERPARATOR_PROPERTY
|
static java.lang.String |
OS_ARCH_PROPERTY
|
static java.lang.String |
OS_NAME_PROPERTY
|
static java.lang.String |
OS_VERSION_PROPERTY
|
static java.lang.String |
PATH_SERPARATOR_PROPERTY
|
static java.lang.String |
USER_HOME_PROPERTY
|
| Method Summary | |
|---|---|
void |
addConnectionChangeListener(IRemoteConnectionChangeListener listener)
Register a listener that will be notified when this connection's status changes. |
void |
close()
Close the connection. |
void |
forwardLocalPort(int localPort,
java.lang.String fwdAddress,
int fwdPort)
Forward local port localPort to remote port fwdPort on remote machine fwdAddress. |
int |
forwardLocalPort(java.lang.String fwdAddress,
int fwdPort,
org.eclipse.core.runtime.IProgressMonitor monitor)
Forward a local port to remote port fwdPort on remote machine fwdAddress. |
void |
forwardRemotePort(int remotePort,
java.lang.String fwdAddress,
int fwdPort)
Forward remote port remotePort to port fwdPort on machine fwdAddress. |
int |
forwardRemotePort(java.lang.String fwdAddress,
int fwdPort,
org.eclipse.core.runtime.IProgressMonitor monitor)
Forward a remote port to port fwdPort on remote machine fwdAddress. |
java.lang.String |
getAddress()
Gets the implementation dependent address for this connection return address |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Get the implementation specific attributes for the connection. |
java.util.Map<java.lang.String,java.lang.String> |
getEnv()
Returns an unmodifiable string map view of the remote environment. |
java.lang.String |
getEnv(java.lang.String name)
Returns the value of an environment variable. |
java.lang.String |
getName()
Get unique name for this connection. |
int |
getPort()
Gets the port for this connection. |
java.lang.String |
getProperty(java.lang.String key)
Gets the remote system property indicated by the specified key. |
IRemoteServices |
getRemoteServices()
Get the remote services provider for this connection. |
java.lang.String |
getUsername()
Gets the username for this connection return username |
java.lang.String |
getWorkingDirectory()
Get the working directory. |
boolean |
isOpen()
Test if the connection is open. |
void |
open(org.eclipse.core.runtime.IProgressMonitor monitor)
Open the connection. |
void |
removeConnectionChangeListener(IRemoteConnectionChangeListener listener)
Remove a listener that will be notified when this connection's status changes. |
void |
removePortForwarding(int port)
Remove the port forwarding associated with the given port. |
void |
setAddress(java.lang.String address)
Set the address for this connection |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set an implementation dependent attribute for the connection. |
void |
setName(java.lang.String name)
Set the name for this connection |
void |
setPassword(java.lang.String password)
Set the password for this connection |
void |
setPort(int port)
Set the port used for this connection. |
void |
setUsername(java.lang.String username)
Set the username for this connection |
void |
setWorkingDirectory(java.lang.String path)
Set the working directory. |
boolean |
supportsTCPPortForwarding()
Test if this connection supports forwarding of TCP connections |
| Field Detail |
|---|
static final java.lang.String OS_NAME_PROPERTY
static final java.lang.String OS_VERSION_PROPERTY
static final java.lang.String OS_ARCH_PROPERTY
static final java.lang.String FILE_SERPARATOR_PROPERTY
static final java.lang.String PATH_SERPARATOR_PROPERTY
static final java.lang.String LINE_SERPARATOR_PROPERTY
static final java.lang.String USER_HOME_PROPERTY
| Method Detail |
|---|
void addConnectionChangeListener(IRemoteConnectionChangeListener listener)
listener - void close()
void forwardLocalPort(int localPort,
java.lang.String fwdAddress,
int fwdPort)
throws RemoteConnectionException
localPort - local port to forwardfwdAddress - address of remote machinefwdPort - remote port on remote machine
RemoteConnectionException
int forwardLocalPort(java.lang.String fwdAddress,
int fwdPort,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws RemoteConnectionException
fwdAddress - fwdPort - monitor -
RemoteConnectionException
void forwardRemotePort(int remotePort,
java.lang.String fwdAddress,
int fwdPort)
throws RemoteConnectionException
remotePort - remote port to forwardfwdAddress - address of recipient machinefwdPort - port on recipient machine
RemoteConnectionException
int forwardRemotePort(java.lang.String fwdAddress,
int fwdPort,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws RemoteConnectionException
fwdAddress - fwdPort - monitor -
RemoteConnectionExceptionjava.lang.String getAddress()
java.util.Map<java.lang.String,java.lang.String> getAttributes()
java.util.Map<java.lang.String,java.lang.String> getEnv()
java.lang.String getEnv(java.lang.String name)
name - name of the environment variable
java.lang.String getName()
int getPort()
java.lang.String getProperty(java.lang.String key)
os.name Operating system name
os.arch Operating system architecture
os.version Operating system version
file.separator File separator ("/" on UNIX)
path.separator Path separator (":" on UNIX)
line.separator Line separator ("\n" on UNIX)
user.home Home directory
key - the name of the property
IRemoteServices getRemoteServices()
java.lang.String getUsername()
java.lang.String getWorkingDirectory()
boolean isOpen()
void open(org.eclipse.core.runtime.IProgressMonitor monitor)
throws RemoteConnectionException
monitor - the progress monitor to use for reporting progress to the
user. It is the caller's responsibility to call done() on the
given monitor. Accepts null, indicating that no progress
should be reported and that the operation cannot be cancelled.
RemoteConnectionExceptionvoid removeConnectionChangeListener(IRemoteConnectionChangeListener listener)
listener -
void removePortForwarding(int port)
throws RemoteConnectionException
port - forwarded port
RemoteConnectionExceptionvoid setAddress(java.lang.String address)
address -
void setAttribute(java.lang.String key,
java.lang.String value)
getAttributes()
key - attribute keyvalue - attribute valuevoid setName(java.lang.String name)
name - void setPassword(java.lang.String password)
password - void setPort(int port)
port - port number for the connectionvoid setUsername(java.lang.String username)
username - void setWorkingDirectory(java.lang.String path)
path - String representing the current working directoryboolean supportsTCPPortForwarding()
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||