|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Execution2Interface
instead.
public interface ExecutionInterface
This interface describes various aspects associated with the execution of a stored process. See the package description documentation for usage information.
Field Summary |
---|
Fields inherited from interface com.sas.services.storedprocess.ExecutionBaseInterface |
---|
LOG_ALL_LINES, LOG_FORMAT_HTML, LOG_FORMAT_TEXT, STATUS_COMPLETED_WITHOUT_EXCEPTION, STATUS_DESTROYED, STATUS_EXCEPTION_OCCURRED, STATUS_EXECUTING, STATUS_SAS_EXCEPTION_OCCURRED |
Method Summary | |
---|---|
java.io.InputStream |
getInputStream(java.lang.Object streamKey)
Deprecated. Get an input stream. |
java.lang.String |
getOutputParameter(java.lang.String name)
Deprecated. Get the value of the output parameter (SAS macro variable). |
ResultHints |
getResultHints()
Deprecated. Get the ResultHints object used to describe the destination
of the results. |
ResultPackageInterface |
getResultPackage()
Deprecated. Get the package produced by the execution of the stored process. |
java.lang.String |
getSessionID()
Deprecated. Get the session id associated with this execution. |
int |
getStatus()
Deprecated. Get the status of this execution. |
Methods inherited from interface com.sas.services.storedprocess.ExecutionBaseInterface |
---|
destroy, getExceptions, getInputStreamHeader, getOutputStream, getOutputStreamHeader, getSASConditionCode, getStoredProcessAlert, isSynchronous, readSASLog, waitForCompletion, waitForCompletion |
Method Detail |
---|
java.io.InputStream getInputStream(java.lang.Object streamKey) throws java.lang.IllegalStateException, java.rmi.RemoteException
StoredProcessBaseInterface.SERVER_TYPE_STOREDPROCESS
and result type
StoredProcessInterface.RESULT_TYPE_STREAM
.
getInputStream
in interface ExecutionBaseInterface
streamKey
- an object whose toString method provides the stream name.
java.lang.IllegalStateException
- if destroy() has been called.
java.rmi.RemoteException
- if a network anomaly is encountered.java.lang.String getOutputParameter(java.lang.String name) throws TransportException, java.rmi.RemoteException
name
- the name of the output parameter whose value is desired.
java.lang.IllegalStateException
- if the status is ExecutionBaseInterface.STATUS_EXECUTING
or
ExecutionBaseInterface.STATUS_SAS_EXCEPTION_OCCURRED
, or if destroy() has been called.
TransportException
- if there is a problem communicating with the SAS server.
java.rmi.RemoteException
- if a network anomaly is encountered.ResultHints getResultHints() throws java.rmi.RemoteException
ResultHints
object used to describe the destination
of the results. The destination
to which the results are written can be obtained by calling the
ResultHints.getResultLocation()
.
StoredProcessInterface.getResultHintsInstance(int)
lists the result types for which a ResultHints
object
will be returned; for other types a null is returned.
java.rmi.RemoteException
- if a network anomaly is encountered.
java.lang.IllegalStateException
- if the status is ExecutionBaseInterface.STATUS_EXECUTING
or
ExecutionBaseInterface.STATUS_SAS_EXCEPTION_OCCURRED
, or if destroy() has been called.ResultPackageInterface getResultPackage() throws java.lang.IllegalStateException, java.rmi.RemoteException
StoredProcessInterface.RESULT_TYPE_TRANSIENT_PACKAGE
, StoredProcessInterface.RESULT_TYPE_PERMANENT_FILE_PACKAGE
or StoredProcessInterface.RESULT_TYPE_PERMANENT_WEBDAV_PACKAGE
getResultPackage
in interface ExecutionBaseInterface
java.rmi.RemoteException
- if a network anomaly is encountered.
java.lang.IllegalStateException
- if the status is ExecutionBaseInterface.STATUS_EXECUTING
or
ExecutionBaseInterface.STATUS_SAS_EXCEPTION_OCCURRED
, or if destroy() has been called.int getStatus() throws java.rmi.RemoteException
If the stored process is executing
STATUS_EXECUTING
is returned. If it has completed,
one of STATUS_COMPLETED_WITHOUT_EXCEPTION
,
STATUS_SAS_EXCEPTION_OCCURRED
or
STATUS_EXCEPTION_OCCURRED
is
returned depending on how execution terminated.
Note: if the exception is due to the more specific reasons
specified in STATUS_SAS_EXCEPTION_OCCURRED
then STATUS_SAS_EXCEPTION_OCCURRED
is returned
over the more generic STATUS_EXCEPTION_OCCURRED
.
getStatus
in interface ExecutionBaseInterface
java.lang.IllegalStateException
- if destroy() has been called.
java.rmi.RemoteException
- if a network anomaly is encountered.java.lang.String getSessionID() throws java.lang.IllegalStateException, java.rmi.RemoteException
getSessionID
in interface ExecutionBaseInterface
java.rmi.RemoteException
- if a network anomaly is encountered.
java.lang.IllegalStateException
- if the status is ExecutionBaseInterface.STATUS_EXECUTING
or
ExecutionBaseInterface.STATUS_SAS_EXCEPTION_OCCURRED
, or if destroy() has been called.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |