*** This class provides Binary Compatibility only, not Source Compatibility ***
Class StoredProcessServiceProxy
- All Implemented Interfaces:
com.sas.entities.EntityKeyInterface,ServiceNotificationBroadcasterInterface,RemoteServiceInterface,StoredProcessServiceInterface,Serializable,Remote
If this proxy is serialized to a remote process then the proxy will optimize calls to ensure that a local object reference is used where appropriate and that static data is cached locally to minimize remote calls.
- Since:
- 1.1
- See Also:
-
Field Summary
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_2Fields inherited from interface com.sas.services.storedprocess.StoredProcessServiceInterface
EVENT_NAME, NAMESPACE -
Constructor Summary
ConstructorsConstructorDescriptionStoredProcessServiceProxy(StoredProcessServiceInterface storedProcessService) Constructs a proxy to the specified stored process service. -
Method Summary
Modifier and TypeMethodDescriptionStringReturns the client name.final ObjectnewStoredProcess(int serverType, StoredProcessOptions options) Create an instance of the current version of a Stored Process service object to be defined by the user.final StoredProcessInterfacenewStoredProcess(SessionContextInterface sessionContext, int serverType, int resultType) Deprecated.final StoredProcessInterfacenewStoredProcess(SessionContextInterface sessionContext, StoredProcessInterface storedProcessSmartObject) Deprecated.This method has been deprecated since it is a pass through call to the deprecatedStoredProcessServiceInterface.newStoredProcess(SessionContextInterface, com.sas.services.storedprocess.metadata.StoredProcessInterface).final ObjectnewStoredProcess(StoredProcessInterface storedProcessSmartObject, 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 class com.sas.services.ServiceProxy
addServiceObserver, configure, destroy, findRemoteService, getCreationTime, getEntityKey, getService, getServiceConfiguration, getServiceConfiguration, getServiceProxy, getServiceState, isAccessibleToRemoteClients, isExported, isLocalService, isProxyToRemoteService, notifyServiceObservers, reconfigure, removeAllServiceObservers, removeServiceObserver, sameEnitityKey, sameEntity, setEntityKey, setServiceStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
StoredProcessServiceProxy
public StoredProcessServiceProxy(StoredProcessServiceInterface storedProcessService) throws InitializationException Constructs a proxy to the specified stored process service.- Parameters:
storedProcessService- Stored process service to be proxied.- Throws:
InitializationException- if unable to create a proxy for the service.
-
-
Method Details
-
newStoredProcess
public final StoredProcessInterface newStoredProcess(SessionContextInterface sessionContext, StoredProcessInterface storedProcessSmartObject) throws InitializationException, TransportException, RemoteException Deprecated.This method has been deprecated since it is a pass through call to the deprecatedStoredProcessServiceInterface.newStoredProcess(SessionContextInterface, com.sas.services.storedprocess.metadata.StoredProcessInterface).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.- Specified by:
newStoredProcessin interfaceStoredProcessServiceInterface- 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:
InitializationException- if the metadata was ill-formed or is not the original versionTransportException- if the OMR layer encountered problemsRemoteException- if a network anomaly is encountered.
-
newStoredProcess
public final Object newStoredProcess(StoredProcessInterface storedProcessSmartObject, StoredProcessOptions options) throws InitializationException, TransportException, RemoteException Description copied from interface:StoredProcessServiceInterfaceCreate 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.- Specified by:
newStoredProcessin interfaceStoredProcessServiceInterface- Parameters:
storedProcessSmartObject- 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
-
newStoredProcess
public final StoredProcessInterface newStoredProcess(SessionContextInterface sessionContext, int serverType, int resultType) throws IllegalArgumentException, RemoteException Deprecated.This method has been deprecated since it is a pass through call to the deprecatedStoredProcessServiceInterface.newStoredProcess(SessionContextInterface, int, int).Create an instance of a Stored Process to be defined by the user- Specified by:
newStoredProcessin interfaceStoredProcessServiceInterface- 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 isStoredProcessInterface. SERVER_TYPE_STOREDPROCESSvalid values for resultType are-
StoredProcessInterface.RESULT_TYPE_NONE -
StoredProcessInterface.RESULT_TYPE_STREAM -
StoredProcessInterface.RESULT_TYPE_PERMANENT_WEBDAV_PACKAGE
StoredProcessInterface.SERVER_TYPE_WORKSPACEvalid values for resultType are-
- 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.
-
newStoredProcess
public final Object newStoredProcess(int serverType, StoredProcessOptions options) throws IllegalArgumentException, InitializationException, RemoteException Description copied from interface:StoredProcessServiceInterfaceCreate 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.
- Specified by:
newStoredProcessin interfaceStoredProcessServiceInterface- 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:
InitializationException- if there was an initialization exception of some kindRemoteException- if a network anomaly is encounteredIllegalArgumentException
-
getClientName
public String getClientName() throws RemoteExceptionDescription copied from interface:StoredProcessServiceInterfaceReturns the client name. Will be null unless the most recent call toStoredProcessServiceInterface.setClientName(String)was with a non-null parameter.- Specified by:
getClientNamein interfaceStoredProcessServiceInterface- Returns:
- the client name
- Throws:
RemoteException
-
setClientName
public void setClientName(String clientName) throws RemoteException Description copied from interface:StoredProcessServiceInterfaceSets the client name. The client name should only be set via this method if the service is not being shared by multiple clients.- Specified by:
setClientNamein interfaceStoredProcessServiceInterface- Parameters:
clientName- client name- Throws:
RemoteException
-
StoredProcessServiceInterface.newStoredProcess(SessionContextInterface, int, int).