Skip to content
Snippets Groups Projects
Commit 4dbdfa50 authored by buczekp's avatar buczekp
Browse files

[LMS-1352] missing commit

SVN: 14603
parent c0d61a17
No related branches found
No related tags found
No related merge requests found
/*
* Copyright 2010 ETH Zuerich, CISD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ch.systemsx.cisd.common.filesystem.ssh;
import java.io.File;
import ch.systemsx.cisd.common.filesystem.BooleanStatus;
import ch.systemsx.cisd.common.process.ProcessResult;
/**
* @author Piotr Buczek
*/
public interface ISshCommandExecutor
{
public abstract BooleanStatus exists(File file, final long timeOutMillis);
public abstract BooleanStatus checkDirectoryAccessible(final String pathString,
final long timeOutMillis);
public abstract ProcessResult tryExecuteCommandRemotely(final String localCmd,
final long timeOutMillis);
public abstract ProcessResult tryExecuteCommandRemotely(final String localCmd,
final long timeOutMillis, final boolean logResult);
}
\ No newline at end of file
...@@ -37,7 +37,7 @@ import ch.systemsx.cisd.common.process.ProcessExecutionHelper.OutputReadingStrat ...@@ -37,7 +37,7 @@ import ch.systemsx.cisd.common.process.ProcessExecutionHelper.OutputReadingStrat
* *
* @author Piotr Buczek * @author Piotr Buczek
*/ */
public class SshCommandExecutor implements Serializable public class SshCommandExecutor implements ISshCommandExecutor, Serializable
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -62,7 +62,7 @@ public class SshCommandExecutor implements Serializable ...@@ -62,7 +62,7 @@ public class SshCommandExecutor implements Serializable
this.sshCommandBuilder = sshCommandBuilder; this.sshCommandBuilder = sshCommandBuilder;
} }
public String getHost() private String getHost()
{ {
assert host != null : "host cannot be null"; assert host != null : "host cannot be null";
return host; return host;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment