cloudrmpi
Class PortForwardingServer
java.lang.Object
cloudrmpi.PortForwardingServer
public class PortForwardingServer
- extends java.lang.Object
This class manages ssh port forwarding. It is implemented as a server
that responds to text commands from R, send via socket.
It is used to start and stop ssh port forwarding.
This server accepts an unlimited number of connections, which remain
open until the client explicitly closes them, or the app is shutdown.
Method Summary |
void |
launch()
|
static void |
main(java.lang.String[] argv)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLIENT_PORT_DEFAULT
public static final int CLIENT_PORT_DEFAULT
- See Also:
- Constant Field Values
SSH_WAIT_TIME
public static long SSH_WAIT_TIME
ARGV_PORT
public static final java.lang.String ARGV_PORT
- See Also:
- Constant Field Values
ARGV_PEMFILE
public static final java.lang.String ARGV_PEMFILE
- See Also:
- Constant Field Values
CMD_LABEL_PORT_LOCAL
public static final java.lang.String CMD_LABEL_PORT_LOCAL
- See Also:
- Constant Field Values
CMD_LABEL_PORT_REMOTE
public static final java.lang.String CMD_LABEL_PORT_REMOTE
- See Also:
- Constant Field Values
CMD_LABEL_PEMFILE
public static final java.lang.String CMD_LABEL_PEMFILE
- See Also:
- Constant Field Values
CMD_LABEL_HOST
public static final java.lang.String CMD_LABEL_HOST
- See Also:
- Constant Field Values
CMD_LABEL_USER_NAME
public static final java.lang.String CMD_LABEL_USER_NAME
- See Also:
- Constant Field Values
PortForwardingServer
public PortForwardingServer(int port)
main
public static void main(java.lang.String[] argv)
- Parameters:
argv
-
launch
public void launch()