public class zFTPConnector extends Object
| Constructor and Description |
|---|
zFTPConnector(String server,
int port,
String userID,
String password,
String logPrefix)
Basic constructor with minimal parameters required.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getJobCC()
Get JobCC.
|
String |
getJobID()
Get JobID.
|
boolean |
submit(InputStream inputStream,
boolean wait,
int waitTime,
OutputStream outputStream,
boolean deleteLogFromSpool)
Submit job for execution.
|
public zFTPConnector(String server, int port, String userID, String password, String logPrefix)
server - LPAR name or IP address to connect to.port - LPAR password.userID - UserID.password - User password.logPrefix - Log prefix.public boolean submit(InputStream inputStream, boolean wait, int waitTime, OutputStream outputStream, boolean deleteLogFromSpool)
inputStream - JCL text of the job.wait - Whether we need for the job to complete.waitTime - Maximum wait time in minutes. If set to 0, will wait forever.outputStream - Stream to put job log. Can be Null.deleteLogFromSpool - Whether the job log should be deleted fro spool upon job end.jobCC holds the response of the operation (including errors).connect(),
logon(),
waitForCompletion(OutputStream),
deleteJobLog()public String getJobID()
jobID.public String getJobCC()
jobCC.Copyright © 2004-2015. All Rights Reserved.