*** This interface provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.storedprocess
Interface StoredProcessServiceInterface
- All Superinterfaces:
com.sas.entities.EntityKeyInterface,Remote,RemoteServiceInterface,ServiceNotificationBroadcasterInterface
- All Known Implementing Classes:
StoredProcessServiceProxy
@SASScope("ALL")
@BinaryCompatibilityOnly
public interface StoredProcessServiceInterface
extends RemoteServiceInterface
This interface describes a stored process service. It is used to create
various objects that are used to represent and run stored processes in the
Platform Services context.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the event created byStoredProcessAlertItemInterface.static final StringName of the name space used by the Stored Process service for alert/event creation.Fields inherited from interface com.sas.services.RemoteServiceInterface
CLASS_IDENTIFIER, CLASS_IDENTIFIER_1_1, CLASS_IDENTIFIER_1_2, CLASS_IDENTIFIER_SERVICE_TYPE, CLASS_IDENTIFIER_SERVICE_TYPE_1_1, CLASS_IDENTIFIER_SERVICE_TYPE_1_2 -
Method Summary
Modifier and TypeMethodDescriptionStringReturns the client name.ObjectnewStoredProcess(int serverType, StoredProcessOptions options) Create an instance of the current version of a Stored Process service object to be defined by the user.newStoredProcess(SessionContextInterface sessionContext, int serverType, int resultType) Deprecated.newStoredProcess(SessionContextInterface sessionContext, StoredProcessInterface storedProcessSmartObject) Deprecated.TheStoredProcessInterfaceservice object returned by this method cannot be used to avail of features introduced in 9.2 or later.ObjectnewStoredProcess(StoredProcessInterface smartObject, StoredProcessOptions options) Create an instance of a Stored Process service object from metadata using the provided smart object.voidsetClientName(String clientName) Sets the client name.Methods inherited from interface com.sas.entities.EntityKeyInterface
getEntityKey, sameEntity, setEntityKeyMethods inherited from interface com.sas.services.RemoteServiceInterface
configure, destroy, getCreationTime, getServiceConfiguration, getServiceConfiguration, getServiceProxy, getServiceState, isAccessibleToRemoteClients, isExported, reconfigure, setServiceStateMethods inherited from interface com.sas.services.mgmt.ServiceNotificationBroadcasterInterface
addServiceObserver, notifyServiceObservers, removeAllServiceObservers, removeServiceObserver
-
Field Details
-
NAMESPACE
static final String NAMESPACEName of the name space used by the Stored Process service for alert/event creation.- See Also:
-
EVENT_NAME
static final String EVENT_NAMEName of the event created byStoredProcessAlertItemInterface.- See Also:
-
-
Method Details
-
newStoredProcess
StoredProcessInterface newStoredProcess(SessionContextInterface sessionContext, StoredProcessInterface storedProcessSmartObject) throws InitializationException, TransportException, RemoteException Deprecated.TheStoredProcessInterfaceservice object returned by this method cannot be used to avail of features introduced in 9.2 or later. SeenewStoredProcess(com.sas.services.storedprocess.metadata.StoredProcessInterface, StoredProcessOptions).Create an instance of a Stored Process service object from metadata using the provided smart object.The typical client does not invoke this method, but uses the Information Service to find stored processes and invokes one of the newServiceObject methods of the
Stored Process smart objectto create new stored process service objects.- Parameters:
sessionContext- specifies theSessionContextInterfaceunder which the stored process will be exploitedstoredProcessSmartObject- specifies the stored process smart object which describes the stored process- Returns:
- a
StoredProcessInterfacerepresenting the created stored process object - Throws:
RemoteException- if a network anomaly is encountered.IllegalArgumentException- if the sessionContext is nullIllegalStateException- if the service has been destroyedTransportException- if the OMR layer encountered problemsInitializationException- if the metadata was ill-formed or is not the original version
-
newStoredProcess
Object newStoredProcess(StoredProcessInterface smartObject, StoredProcessOptions options) throws InitializationException, TransportException, RemoteException Create an instance of a Stored Process service object from metadata using the provided smart object.The typical client does not invoke this method, but uses the Information Service to find stored processes and invokes one of the newServiceObject methods of the
Stored Process smart objectto create a service object.The
StoredProcessOptionsoptions parameter controls behavior as follows:- SessionContext. If no SessionContext is set, the created service object will access the SessionContext from the smart object. SessionContext is typically set if it is desired that the service object use a SessionContext for execution which is different from that available from the smart object.
- UsageVersion. This setting is only valid
for manually created stored processes, that is for stored processes that are not
backed by an object in metadata. For compatibility reasons, the behavior for such
stored processes is that of a
9.2 (
StoredProcessInterface.NINETWO_VERSION) stored process based service object.
read compatiblefor a service object to be returned.- Parameters:
smartObject- the smart object from which the service object is createdoptions- controls behavior as described- Returns:
- a service object as described
- Throws:
InitializationException- if the metadata was ill-formed or the smart object was ill-formed or not read compatibleTransportExceptionRemoteException- Since:
- 9.2
-
newStoredProcess
StoredProcessInterface newStoredProcess(SessionContextInterface sessionContext, int serverType, int resultType) throws IllegalArgumentException, RemoteException Deprecated.TheStoredProcessInterfaceservice object returned by this method cannot be used with the Prompting Framework. SeenewStoredProcess(int, StoredProcessOptions).Create an instance of a pre-9.2 Stored Process service object to be defined by the user.- Parameters:
sessionContext- specifies theSessionContextInterfaceunder which the stored process will be exploited, can be nullserverType- specifies the server on which this stored process will execute. EitherresultType- specifies the type of result-
If the serverType is
StoredProcessBaseInterface.SERVER_TYPE_STOREDPROCESSvalid values for resultType are: -
If the serverType is
StoredProcessBaseInterface.SERVER_TYPE_WORKSPACEvalid values for resultType are:
-
If the serverType is
- Returns:
- a
StoredProcessInterfacerepresenting the created stored process object - Throws:
RemoteException- if a network anomaly is encountered.IllegalArgumentException- if an invalid value is specified for serverType or resultType.IllegalStateException- if the service has been destroyed
-
newStoredProcess
Object newStoredProcess(int serverType, StoredProcessOptions options) throws IllegalArgumentException, InitializationException, RemoteException Create an instance of the current version of a Stored Process service object to be defined by the user.The
StoredProcessOptionsoptions parameter controls behavior as follows:- SessionContext. If no SessionContext is set, the created service object will not have an associated SessionContext or UserContext.
- Parameters:
serverType- specifies the server on which this stored process will execute. EitherStoredProcessBaseInterface.SERVER_TYPE_STOREDPROCESSorStoredProcessBaseInterface.SERVER_TYPE_WORKSPACE
StoredProcessBaseInterface.SERVER_TYPE_STOREDPROCESSand with only package capability if the serverType isStoredProcessBaseInterface.SERVER_TYPE_WORKSPACE.options- as described above- Returns:
- a Stored Process service object; null otherwise
- Throws:
RemoteException- if a network anomaly is encounteredInitializationException- if there was an initialization exception of some kindIllegalStateException- if the service has been destroyedIllegalArgumentException- Since:
- 9.2
-
setClientName
void setClientName(String clientName) throws RemoteException Sets the client name. The client name should only be set via this method if the service is not being shared by multiple clients.- Parameters:
clientName- client name- Throws:
RemoteException
-
getClientName
String getClientName() throws RemoteExceptionReturns the client name. Will be null unless the most recent call tosetClientName(String)was with a non-null parameter.- Returns:
- the client name
- Throws:
RemoteException
-
StoredProcessInterfaceservice object returned by this method cannot be used with the Prompting Framework.