test_class.file: utils/src/test/java/com/cloud/utils/ssh/SshHelperTest.java
test_class.identifier: SshHelperTest
test_case.body: @Test
      public void doNotThrowSshExceptionIfConditionsClosed() throws SshException {
          SshHelper.throwSshExceptionIfConditionsTimeout(ChannelCondition.CLOSED);
      }
test_case.class_method_signature: SshHelperTest.doNotThrowSshExceptionIfConditionsClosed()
test_case.full_signature: @Test public void doNotThrowSshExceptionIfConditionsClosed()
test_case.identifier: doNotThrowSshExceptionIfConditionsClosed
test_case.invocations: throwSshExceptionIfConditionsTimeout
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void doNotThrowSshExceptionIfConditionsClosed()
focal_class.declarator: DEFAULT_CONNECT_TIMEOUT = 180000
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_CONNECT_TIMEOUT = 180000;
focal_class.type: int
focal_class.var_name: DEFAULT_CONNECT_TIMEOUT
focal_class.declarator: DEFAULT_KEX_TIMEOUT = 60000
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_KEX_TIMEOUT = 60000;
focal_class.type: int
focal_class.var_name: DEFAULT_KEX_TIMEOUT
focal_class.declarator: WAITING_OPEN_SSH_SESSION = 1000
focal_class.modifier: private static final
focal_class.original_string: private static final long WAITING_OPEN_SSH_SESSION = 1000;
focal_class.type: long
focal_class.var_name: WAITING_OPEN_SSH_SESSION
focal_class.declarator: s_logger = LoggerFactory.getLogger(SshHelper.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger s_logger = LoggerFactory.getLogger(SshHelper.class);
focal_class.type: Logger
focal_class.var_name: s_logger
focal_class.file: utils/src/main/java/com/cloud/utils/ssh/SshHelper.java
focal_class.identifier: SshHelper
focal_class.class_method_signature: SshHelper.sshExecute(String host, int port, String user, File pemKeyFile, String password, String command)
focal_class.full_signature: public static Pair<Boolean, String> sshExecute(String host, int port, String user, File pemKeyFile, String password, String command)
focal_class.identifier: sshExecute
focal_class.modifiers: public static
focal_class.parameters: (String host, int port, String user, File pemKeyFile, String password, String command)
focal_class.return: Pair<Boolean, String>
focal_class.signature: Pair<Boolean, String> sshExecute(String host, int port, String user, File pemKeyFile, String password, String command)
focal_class.class_method_signature: SshHelper.scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode)
focal_class.full_signature: public static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode)
focal_class.identifier: scpTo
focal_class.modifiers: public static
focal_class.parameters: (String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode)
focal_class.return: void
focal_class.signature: void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode)
focal_class.class_method_signature: SshHelper.scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
              String fileMode)
focal_class.full_signature: public static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
              String fileMode)
focal_class.identifier: scpTo
focal_class.modifiers: public static
focal_class.parameters: (String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
              String fileMode)
focal_class.return: void
focal_class.signature: void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
              String fileMode)
focal_class.class_method_signature: SshHelper.scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode,
              int connectTimeoutInMs, int kexTimeoutInMs)
focal_class.full_signature: public static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode,
              int connectTimeoutInMs, int kexTimeoutInMs)
focal_class.identifier: scpTo
focal_class.modifiers: public static
focal_class.parameters: (String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode,
              int connectTimeoutInMs, int kexTimeoutInMs)
focal_class.return: void
focal_class.signature: void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode,
              int connectTimeoutInMs, int kexTimeoutInMs)
focal_class.class_method_signature: SshHelper.scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
              String fileMode, int connectTimeoutInMs, int kexTimeoutInMs)
focal_class.full_signature: public static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
              String fileMode, int connectTimeoutInMs, int kexTimeoutInMs)
focal_class.identifier: scpTo
focal_class.modifiers: public static
focal_class.parameters: (String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
              String fileMode, int connectTimeoutInMs, int kexTimeoutInMs)
focal_class.return: void
focal_class.signature: void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
              String fileMode, int connectTimeoutInMs, int kexTimeoutInMs)
focal_class.class_method_signature: SshHelper.sshExecute(String host, int port, String user, File pemKeyFile, String password, String command, int connectTimeoutInMs,
              int kexTimeoutInMs,
              int waitResultTimeoutInMs)
focal_class.full_signature: public static Pair<Boolean, String> sshExecute(String host, int port, String user, File pemKeyFile, String password, String command, int connectTimeoutInMs,
              int kexTimeoutInMs,
              int waitResultTimeoutInMs)
focal_class.identifier: sshExecute
focal_class.modifiers: public static
focal_class.parameters: (String host, int port, String user, File pemKeyFile, String password, String command, int connectTimeoutInMs,
              int kexTimeoutInMs,
              int waitResultTimeoutInMs)
focal_class.return: Pair<Boolean, String>
focal_class.signature: Pair<Boolean, String> sshExecute(String host, int port, String user, File pemKeyFile, String password, String command, int connectTimeoutInMs,
              int kexTimeoutInMs,
              int waitResultTimeoutInMs)
focal_class.class_method_signature: SshHelper.openConnectionSession(Connection conn)
focal_class.full_signature: protected static Session openConnectionSession(Connection conn)
focal_class.identifier: openConnectionSession
focal_class.modifiers: protected static
focal_class.parameters: (Connection conn)
focal_class.return: Session
focal_class.signature: Session openConnectionSession(Connection conn)
focal_class.class_method_signature: SshHelper.canEndTheSshConnection(int waitResultTimeoutInMs, com.trilead.ssh2.Session sess, int conditions)
focal_class.full_signature: protected static boolean canEndTheSshConnection(int waitResultTimeoutInMs, com.trilead.ssh2.Session sess, int conditions)
focal_class.identifier: canEndTheSshConnection
focal_class.modifiers: protected static
focal_class.parameters: (int waitResultTimeoutInMs, com.trilead.ssh2.Session sess, int conditions)
focal_class.return: boolean
focal_class.signature: boolean canEndTheSshConnection(int waitResultTimeoutInMs, com.trilead.ssh2.Session sess, int conditions)
focal_class.class_method_signature: SshHelper.throwSshExceptionIfConditionsTimeout(int conditions)
focal_class.full_signature: protected static void throwSshExceptionIfConditionsTimeout(int conditions)
focal_class.identifier: throwSshExceptionIfConditionsTimeout
focal_class.modifiers: protected static
focal_class.parameters: (int conditions)
focal_class.return: void
focal_class.signature: void throwSshExceptionIfConditionsTimeout(int conditions)
focal_class.class_method_signature: SshHelper.isChannelConditionEof(int conditions)
focal_class.full_signature: protected static boolean isChannelConditionEof(int conditions)
focal_class.identifier: isChannelConditionEof
focal_class.modifiers: protected static
focal_class.parameters: (int conditions)
focal_class.return: boolean
focal_class.signature: boolean isChannelConditionEof(int conditions)
focal_class.class_method_signature: SshHelper.throwSshExceptionIfStdoutOrStdeerIsNull(InputStream stdout, InputStream stderr)
focal_class.full_signature: protected static void throwSshExceptionIfStdoutOrStdeerIsNull(InputStream stdout, InputStream stderr)
focal_class.identifier: throwSshExceptionIfStdoutOrStdeerIsNull
focal_class.modifiers: protected static
focal_class.parameters: (InputStream stdout, InputStream stderr)
focal_class.return: void
focal_class.signature: void throwSshExceptionIfStdoutOrStdeerIsNull(InputStream stdout, InputStream stderr)
focal_method.body: protected static void throwSshExceptionIfConditionsTimeout(int conditions) throws SshException {
          if ((conditions & ChannelCondition.TIMEOUT) != 0) {
              String msg = "Timed out in waiting for SSH execution exit status";
              s_logger.error(msg);
              throw new SshException(msg);
          }
      }
focal_method.class_method_signature: SshHelper.throwSshExceptionIfConditionsTimeout(int conditions)
focal_method.full_signature: protected static void throwSshExceptionIfConditionsTimeout(int conditions)
focal_method.identifier: throwSshExceptionIfConditionsTimeout
focal_method.invocations: error
focal_method.modifiers: protected static
focal_method.parameters: (int conditions)
focal_method.return: void
focal_method.signature: void throwSshExceptionIfConditionsTimeout(int conditions)