Package repast.simphony.batch.ssh
Class SessionBuilder
- java.lang.Object
-
- repast.simphony.batch.ssh.SessionBuilder
-
public class SessionBuilder extends Object
Builds Session objects.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description SessionBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHost(int id, String host)
void
addInstancesToLocal(int id, int instances)
void
addInstancesToRemote(int id, int instances)
void
addKeyFile(int id, String keyFile)
void
addUser(int id, String user)
void
addWorkingDirectory(int id, String workingDirectory)
List<? extends Session>
getSessions()
-
-
-
Method Detail
-
addHost
public void addHost(int id, String host) throws IOException
- Throws:
IOException
-
addKeyFile
public void addKeyFile(int id, String keyFile)
-
addInstancesToRemote
public void addInstancesToRemote(int id, int instances) throws IOException
- Throws:
IOException
-
addInstancesToLocal
public void addInstancesToLocal(int id, int instances) throws IOException
- Throws:
IOException
-
addWorkingDirectory
public void addWorkingDirectory(int id, String workingDirectory) throws IOException
- Throws:
IOException
-
addUser
public void addUser(int id, String user) throws IOException
- Throws:
IOException
-
getSessions
public List<? extends Session> getSessions() throws IOException
- Throws:
IOException
-
-