|
|||||||||
| Home >> All >> com >> yaftp >> ftp >> [ mvsjobs overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.yaftp.ftp.mvsjobs
Class JobSubmission

java.lang.Objectcom.yaftp.ftp.mvsjobs.JobSubmission
- public class JobSubmission
- extends java.lang.Object
This class is the main entry point to MVS job subissions through IBM documented FTP JES semantics this class is based on the basic RFC ftp implemented by the com.yaftp.ftp package. Let's say that you should use this class whenever you need to implement a JOB SUBMISSION without any graphical interface because your JRE do not implement AWT SWING or just because you want to implement your own customized GUI. this class is also used of course by the FTP GUI bean and mainly
| Field Summary | |
private static boolean |
_DEBUG_
|
private com.yaftp.ftp.FtpClientSession |
_ftpSession
|
private static java.lang.String |
_MVS_
|
private MvsFtpNode |
_mvsFtpNode
defines the associated MVS Ftp infos |
private static java.lang.String |
_NO_JOBS_
|
private static java.lang.String |
_SITE_OK_
nothing standard here but let's assume that when something strange happens we observe following behavior : a "200-blah blah blah..." with continuation is issued first if the site command is acceptable |
private static java.lang.String |
_TMP_SUBMIT_MVS_FILE_NAME_
|
| Constructor Summary | |
JobSubmission()
|
|
JobSubmission(com.yaftp.ftp.FtpClientSession session)
|
|
| Method Summary | |
private com.yaftp.ftp.FtpVectorListener |
buildPutVector(java.lang.String fileName)
|
boolean |
deleteJob(java.lang.String jobID)
delete given jobId from JOBQUEUE |
com.yaftp.ftp.FtpClientSession |
get_ftpSession()
|
void |
init(boolean debug)
establish Ftp connection with site |
private void |
isSiteOK(java.lang.String message)
check the site command acceptance by FTP server, this is not part of FTP STANDARD and is subject to providers idiosynchrasies. |
java.util.Hashtable |
listQueue()
basic rough jes 2 OUTPUT queue reading |
static void |
main(java.lang.String[] args)
testing basic MVS job Submission through FTP |
void |
set_mvsIpNode(MvsFtpNode node)
|
void |
startJesMode()
turn FTP session in JES2 mode |
void |
stopJesMode()
turn FTP session in SEQ standard filetransfert mode |
com.yaftp.ftp.FtpVectorListener |
submitFromHost(java.lang.String hostFileName)
submit a job to MVS just waiting for its completion |
com.yaftp.ftp.FtpVectorListener |
submitFromLocal(java.lang.String jclFileName)
we first transfert the local file to MVS user space using the default _TMP_SUBMIT_MVS_FILE_NAME_ as tmp work file then we request submission using the submitFromHost semantics |
void |
terminate()
just terminate the FTP JES session |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
_DEBUG_
private static final boolean _DEBUG_
- See Also:
- Constant Field Values
_MVS_
private static final java.lang.String _MVS_
- See Also:
- Constant Field Values
_NO_JOBS_
private static final java.lang.String _NO_JOBS_
- See Also:
- Constant Field Values
_TMP_SUBMIT_MVS_FILE_NAME_
private static final java.lang.String _TMP_SUBMIT_MVS_FILE_NAME_
- See Also:
- Constant Field Values
_SITE_OK_
private static final java.lang.String _SITE_OK_
- nothing standard here but let's assume that when something strange
happens we observe following behavior :
a "200-blah blah blah..." with continuation is issued first
if the site command is acceptable
- See Also:
- Constant Field Values
_mvsFtpNode
private MvsFtpNode _mvsFtpNode
- defines the associated MVS Ftp infos
_ftpSession
private com.yaftp.ftp.FtpClientSession _ftpSession
| Constructor Detail |
JobSubmission
public JobSubmission(com.yaftp.ftp.FtpClientSession session)
JobSubmission
public JobSubmission()
| Method Detail |
set_mvsIpNode
public void set_mvsIpNode(MvsFtpNode node)
get_ftpSession
public com.yaftp.ftp.FtpClientSession get_ftpSession()
isSiteOK
private void isSiteOK(java.lang.String message) throws com.yaftp.ftp.ClientFtpError
- check the site command acceptance by FTP server, this is not part
of FTP STANDARD and is subject to providers idiosynchrasies.
buildPutVector
private com.yaftp.ftp.FtpVectorListener buildPutVector(java.lang.String fileName) throws com.yaftp.ftp.ClientFtpError
submitFromHost
public com.yaftp.ftp.FtpVectorListener submitFromHost(java.lang.String hostFileName) throws com.yaftp.ftp.ClientFtpError
- submit a job to MVS just waiting for its completion
submitFromLocal
public com.yaftp.ftp.FtpVectorListener submitFromLocal(java.lang.String jclFileName) throws com.yaftp.ftp.ClientFtpError
- we first transfert the local file to MVS user space using
the default _TMP_SUBMIT_MVS_FILE_NAME_ as tmp work file
then we request submission using the submitFromHost semantics
init
public void init(boolean debug)
throws com.yaftp.ftp.ClientFtpError
- establish Ftp connection with site
startJesMode
public void startJesMode()
throws com.yaftp.ftp.ClientFtpError
- turn FTP session in JES2 mode
stopJesMode
public void stopJesMode()
throws com.yaftp.ftp.ClientFtpError
- turn FTP session in SEQ standard filetransfert mode
listQueue
public java.util.Hashtable listQueue() throws com.yaftp.ftp.ClientFtpError
- basic rough jes 2 OUTPUT queue reading
deleteJob
public boolean deleteJob(java.lang.String jobID) throws com.yaftp.ftp.ClientFtpError
- delete given jobId from JOBQUEUE
terminate
public void terminate()
throws com.yaftp.ftp.ClientFtpError
- just terminate the FTP JES session
main
public static void main(java.lang.String[] args)
- testing basic MVS job Submission through FTP
|
|||||||||
| Home >> All >> com >> yaftp >> ftp >> [ mvsjobs overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.yaftp.ftp.mvsjobs.JobSubmission