|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
@SASScope(value="ALL") @BinaryCompatibilityOnly public interface StoredProcessBaseInterface
This interface describes various common aspects of the stored process service object.
| Field Summary | |
|---|---|
static int |
SERVER_TYPE_STOREDPROCESS
Stored Process Server. |
static int |
SERVER_TYPE_WORKSPACE
Workspace Server. |
| Method Summary | |
|---|---|
abstract boolean |
addInputStream(java.lang.String streamKey)
Adds an input stream definition to the stored process. |
abstract boolean |
addOutputStream(java.lang.String streamKey,
boolean isMultiPass)
Adds an output stream definition to the stored process. |
abstract void |
destroy()
Free resources allocated by the service. |
abstract java.lang.String |
getDescription()
Get the description of the stored process. |
abstract java.lang.String |
getDirectory()
Get the name of the directory containing the stored process. |
abstract java.lang.String |
getFileName()
Get the name of the stored process file - the name of the instance within the directory. |
abstract java.lang.String[] |
getInputStreamNames()
Return an array of input stream names for this stored process. |
abstract java.lang.String |
getName()
Get the name of the stored process. |
abstract java.lang.String[] |
getOutputStreamNames()
Return an array of output stream names for this stored process. |
abstract LogicalServerInterface |
getServer()
Get the the logical server the stored process runs on. |
abstract int |
getServerType()
Get the type of server that the stored process runs on. |
abstract boolean |
hasParameters()
Does the stored process have parameters? |
abstract void |
setDescription(java.lang.String name)
Set the description of the stored process. |
abstract void |
setName(java.lang.String name)
Set the name of the stored process. |
abstract void |
setPrivilegedUser(java.lang.String privilegedUser)
Set the name or key of the privileged user. |
abstract void |
setSourceFromFile(java.lang.String directory,
java.lang.String fileName)
Set the name of the directory containing the stored process and the name of the file within the directory. |
| Field Detail |
|---|
static final int SERVER_TYPE_STOREDPROCESS
getServerType() and the
newStoredProcess(SessionContextInterface, int, int) method of StoredProcessServiceInterface.
static final int SERVER_TYPE_WORKSPACE
getServerType() and the
newStoredProcess(SessionContextInterface, int, int) method of StoredProcessServiceInterface.
| Method Detail |
|---|
void setSourceFromFile(java.lang.String directory,
java.lang.String fileName)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
java.rmi.RemoteException - if a network anomaly is encountered.
java.lang.IllegalStateException -
java.lang.String getDirectory()
throws java.rmi.RemoteException
java.lang.IllegalStateException - if destroy() has been called.
java.rmi.RemoteException - if a network anomaly is encountered.
int getServerType()
throws java.rmi.RemoteException
SERVER_TYPE_STOREDPROCESS or
SERVER_TYPE_WORKSPACE
java.lang.IllegalStateException - if destroy() has been called.
java.rmi.RemoteException - if a network anomaly is encountered.
LogicalServerInterface getServer()
throws java.rmi.RemoteException
java.lang.IllegalStateException - if destroy() has been called.
java.rmi.RemoteException - if a network anomaly is encountered.
java.lang.String getFileName()
throws java.rmi.RemoteException
getDirectory().
java.lang.IllegalStateException - if destroy() has been called.
java.rmi.RemoteException - if a network anomaly is encountered.
void setName(java.lang.String name)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
java.rmi.RemoteException - if a network anomaly is encountered.
java.lang.IllegalStateException -
java.lang.String getName()
throws java.rmi.RemoteException
java.lang.IllegalStateException - if destroy() has been called.
java.rmi.RemoteException - if a network anomaly is encountered.
void setDescription(java.lang.String name)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
java.rmi.RemoteException - if a network anomaly is encountered.
java.lang.IllegalStateException -
java.lang.String getDescription()
throws java.rmi.RemoteException
java.lang.IllegalStateException - if destroy() has been called.
java.rmi.RemoteException - if a network anomaly is encountered.
void setPrivilegedUser(java.lang.String privilegedUser)
throws java.rmi.RemoteException
java.lang.IllegalStateException - if destroy() has been called.
java.rmi.RemoteException - if a network anomaly is encountered.
boolean hasParameters()
throws java.rmi.RemoteException
java.lang.IllegalStateException - if destroy() has been called.
java.rmi.RemoteException - if a network anomaly is encountered.
boolean addInputStream(java.lang.String streamKey)
throws java.rmi.RemoteException,
java.lang.IllegalStateException
Input streams and output streams use the same fileref namespace.
streamKey - see sub-class for detailed information.
java.rmi.RemoteException
java.lang.IllegalStateException
java.lang.String[] getInputStreamNames()
throws java.rmi.RemoteException,
java.lang.IllegalStateException
java.rmi.RemoteException - if a network anomaly is encountered.
java.lang.IllegalStateException - if the stored process runs
on a WorkspaceServer or if destroy() has been called.
boolean addOutputStream(java.lang.String streamKey,
boolean isMultiPass)
throws java.rmi.RemoteException,
java.lang.IllegalStateException
Input streams and output streams use the same fileref namespace.
streamKey - name of the output stream (must be a valid SAS fileref
name)isMultiPass - whether the stream supports multi-pass reads.
Required when the stored process needs to make multiple passes over the
data.
java.rmi.RemoteException - if a network anomaly is encountered.
java.lang.IllegalStateException - SERVER_TYPE_STOREDPROCESS
java.lang.String[] getOutputStreamNames()
throws java.rmi.RemoteException,
java.lang.IllegalStateException
java.rmi.RemoteException - if a network anomaly is encountered.
java.lang.IllegalStateException - if the stored process runs
on a WorkspaceServer or if destroy() has been called.
void destroy()
throws java.rmi.RemoteException
IllegalStateException.
java.rmi.RemoteException - if a network anomaly is encountered.
java.lang.IllegalStateException - if this method is called a second time.
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||