Methods
The Java submission interface includes the following methods.
- setProgressListener
public void setProgressListener(ProgressListener audience)
This method enables ProgressListener for this KCM Core job. ProgressListener receives all progress events.
The method has one parameter:
- audience. Object implementing the ProgressListener interface.
- setAdvancedCapabilities
public void setAdvancedCapabilities(ITPDSDataSender sender,ITPDSDataReceiver receiver)
This method tells the server that this client implements advanced capabilities.
It has two parameters:
- sender. Object implementing the ITPDSDataSender interface.
- receiver. Object implementing the ITPDSDataReceiver.
- setAdvancedCapabilities
public void setAdvancedCapabilities(ITPDSDataSender sender,ITPDSDataReceiver receiver,ITPDSExchangeData
exchange_data)
This method tells the server which advanced capabilities this client implements.
It has three parameters:
- sender. Object implementing the ITPDSDataSender interface.
- receiver. Object implementing the ITPDSDataReceiver interface.
- exchange_data. Object implementing the ITPDSExchangeData interface.
- setConfirmDisconnect
public void setConfirmDisconnect(boolean confirm_disconnect)
This method configures whether the disconnect from the server is confirmed.
- addParameter
public void addParameter(java.lang.String parameter)
This method adds a single parameter string to the parameter list for this job.
It has one parameter:
- parameter. Job parameter.
- setParameters
public void setParameters(java.lang.String[] parameters)
This method sets the list of job parameters.
It has one parameter:
- parameters. An array of job parameters (strings).
- clearParameters
public void clearParameters()
This method clears the parameter list.
- setHost
public void setHost(java.lang.String host)
This method sets the KCM Core server for this job.
It has one parameter:
- host. IP address or host name of the KCM Core server.
- setPort
public void setPort(java.lang.String port)
This method sets the KCM Core instance port for this job.
It has one parameter:
- port. Port using which the KCM Core instance is configured on the server.
- setServer
public void setServer(java.lang.String host, java.lang.String port)
This method sets the KCM Core server and instance for this job.
It has two parameters:
- host. IP address or host name of the KCM Core server.
- port. Port using which the KCM Core instance is configured on the server.
- setJobID
public void setJobID(java.lang.String jobID)
This method sets the KCM Core job identifier for this job.
It has one parameter:
- jobID. Job identifier.
- setSessionID
public void setSessionID(java.lang.String sessionID)
This method sets the KCM Core session identifier for this job.
It has one parameter:
- sessionID. Session identifier.
- getParameters
public java.lang.String[] getParameters()
This method returns the current parameter list for this job.
- getHost
public java.lang.String getHost()
This method returns KCM Core server for this job.
- getPort
public java.lang.String getPort()
This method returns KCM Core instance port for this job.
- getJobID
public java.lang.String getJobID()
This method returns KCM Core job identifier for this job.
- getSessionID
public java.lang.String getSessionID()
This method returns KCM Core session identifier for this job.
- getLastError
public java.lang.String getLastError()
This method returns the last known error if there is one.
- submit
public boolean submit(boolean sync)
It throws java.lang.Exception.
You can use this method to submit a job to KCM Core using the properties and parameters specified in the job. This method returns TRUE if the job was asynchronous and the job was queued, or if the job was synchronous and successfully finished processing. If the job was synchronous and did not complete successfully, the method returns FALSE. If the job is asynchronous, the connection is closed after the job is queued, denying all possibilities for progress information and data transfers.
It has one parameter:
- sync. Specifies whether the job is submitted synchronously or asynchronously.
- submit
public boolean submit(boolean sync, java.lang.String user)
It throws
java.lang.Exception.
This method is used to submit a job to KCM Core using the properties and parameters specified in the job. This method returns TRUE if the job was asynchronous and the job was queued, or if the job was synchronous and successfully finished processing. If the job was synchronous and did not complete successfully, the method returns FALSE. If the job is asynchronous, the connection is closed after the job is queued, denying all possibilities for feedback and other transfers, such as that of files.
It has two parameters:
- sync. Specifies whether the job is submitted synchronously or asynchronously.
- user. Submits the job with this userid. The userid does not have to exist.
- submit
public boolean submit(boolean sync, int ByteCoding)
It throws
java.lang.Exception.
This method is used to submit a job to KCM Core using the properties and parameters specified in the job. This method returns TRUE if the job was asynchronous and the job was queued, or if the job was synchronous and successfully finished processing. If the job was synchronous and not completed successfully, false will be returned instead. If the job is asynchronous, the connection is closed after the job is queued, denying all possibilities for feedback and other transfers, such as that of files.
It has two parameters:
- sync. Specifies whether the job is submitted synchronously or asynchronously.
- ByteCoding. Submits the job using this byte coding. ByteCoding can be either ITPDS.RQST_IN_ASCII or ITPDS.RQST_IN_UNICODE.
- submit
public boolean submit(boolean sync, java.lang.String user, int
byteCoding)
It throws
java.lang.Exception.
This method is used to submit a job to KCM Core, using the properties and parameters specified in the job. This method returns true if the job was asynchronous and the job was queued, or if the job was synchronous and successfully finished processing. If the job was synchronous and did not complete successfully, the method returns FALSE. If the job is asynchronous, the connection is closed after the job is queued, denying all possibilities for feedback and other transfers, such as that of files.
It has three parameters:
- sync. Specifies whether the job is submitted synchronously or asynchronously.
- user. Submits the job with this userid. The userid does not have to exist.
- ByteCoding. Submits the job using this byte coding. ByteCoding can be either ITPDS.RQST_IN_ASCII or ITPDS.RQST_IN_UNICODE.