Skip to content

Commit

Permalink
Merge pull request #3 from openscore/fix-build-ioan-removed-jcterm
Browse files Browse the repository at this point in the history
removed ScoreSSHShell, ScoreSSHShellLogOff and ScoreSSHShellLogon Action...
  • Loading branch information
orius123 committed Jan 8, 2015
2 parents e9329cf + ba445d2 commit 8dad166
Show file tree
Hide file tree
Showing 48 changed files with 25 additions and 3,146 deletions.
15 changes: 5 additions & 10 deletions score-ssh/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@

<developers>
<developer>
<name>Mihai David</name>
<email>mihai.david@hp.com</email>
<name>Octavian Hasna</name>
<email>octavian-lucian.hasna@hp.com</email>
<organization>HP Software</organization>
<organizationUrl>http://www8.hp.com/us/en/software/enterprise-software.html</organizationUrl>
</developer>
<developer>
<name>Adina Tusa</name>
<email>adina.tusa@hp.com</email>
<name>Ioan Vranau</name>
<email>ioan.vranau@hp.com</email>
<organization>HP Software</organization>
<organizationUrl>http://www8.hp.com/us/en/software/enterprise-software.html</organizationUrl>
</developer>
Expand Down Expand Up @@ -81,11 +81,6 @@
<artifactId>jsch</artifactId>
<version>0.1.50</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jcterm</artifactId>
<version>0.0.11</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
Expand All @@ -94,7 +89,7 @@
<dependency>
<groupId>bouncycastle</groupId>
<artifactId>bcprov-jdk15</artifactId>
<version>144</version>
<version>140</version>
</dependency>

<!-- testing dependencies -->
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package org.openscore.content.ssh.services;

import com.hp.oo.sdk.content.plugin.GlobalSessionObject;
import org.openscore.content.ssh.entities.CommandResult;
import org.openscore.content.ssh.entities.ExpectCommandResult;
import org.openscore.content.ssh.entities.SSHConnection;
import com.jcraft.jsch.Channel;
import com.jcraft.jsch.Session;
import org.openscore.content.ssh.entities.CommandResult;
import org.openscore.content.ssh.entities.SSHConnection;

import java.util.Map;

Expand Down Expand Up @@ -34,13 +33,6 @@ public interface SSHService extends AutoCloseable {
*/
boolean isConnected();

/**
* Checks the SSH channel for the Expect command.
*
* @return true if the SSH channel is opened, otherwise false.
*/
boolean isExpectChannelConnected();

/**
* Close the SSH session.
*/
Expand All @@ -60,19 +52,7 @@ public interface SSHService extends AutoCloseable {
* @param sessionParam The cache (Operation Orchestration session).
* @param sessionId The key of the Operation Orchestration session.
*/
void removeFromCache(GlobalSessionObject<Map<String, SSHConnection>> sessionParam, String sessionId);

/**
* Run a expect command through SSH protocol.
*
* @param command The list of commands (send and expect).
* @param characterSet The character set for the command and for the output of the command.
* @param newline The character(s) used to separate send and expect commands and also the enter key pressed.
* @param writeCharacterTimeout The write character delay.
* @param connectTimeout The channel connection timeout.
* @param commandTimeout The command timeout. @return the result of the expect commands
*/
ExpectCommandResult runExpectCommand(String command, String characterSet, String newline, int writeCharacterTimeout, int connectTimeout, int commandTimeout);
void removeFromCache(GlobalSessionObject<Map<String, SSHConnection>> sessionParam, String sessionId);

/**
* Create a local SSH tunnel (connect to a local port on the engine, which is then forwarded to the remote end of the tunnel.
Expand Down

This file was deleted.

Loading

0 comments on commit 8dad166

Please sign in to comment.