bitel.billing.server.util.ssh

## Class SSHSessionExec

- java.lang.Object
- - bitel.billing.server.util.ssh.SSHSessionExec

-     public class SSHSessionExec
      extends java.lang.Object

  Класс запускающий отдельную сессию ssh для каждой команды. Устарел. Лучше использовать SSHSession.
  Author:
    stark

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SSHSessionExec(java.lang.String host, int port, java.lang.String login, java.lang.String pswd)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `command(java.lang.String command)`
    `void` | `connect()`
    `void` | `disconnect()`
    `int` | `getTimeout()`
    `void` | `setTimeout(int timeout)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SSHSessionExec

          public SSHSessionExec(java.lang.String host,
                                int port,
                                java.lang.String login,
                                java.lang.String pswd)

  - ### Method Detail

    - #### connect

          public void connect()
                       throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### command

          public java.lang.String command(java.lang.String command)
                                   throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### disconnect

          public void disconnect()

    - #### getTimeout

          public int getTimeout()

    - #### setTimeout

          public void setTimeout(int timeout)