|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.storedprocess.StoredProcessServiceProxy
public class StoredProcessServiceProxy
Stored Process service proxy.
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.
Field Summary |
---|
Fields inherited from interface com.sas.services.storedprocess.StoredProcessServiceInterface |
---|
EVENT_NAME, NAMESPACE |
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 |
Constructor Summary | |
---|---|
StoredProcessServiceProxy(StoredProcessServiceInterface storedProcessService)
Constructs a proxy to the specified stored process service. |
Method Summary | |
---|---|
java.lang.String |
getClientName()
Returns the client name. |
java.lang.Object |
newStoredProcess(int serverType,
StoredProcessOptions options)
Create an instance of the current version of a Stored Process service object to be defined by the user. |
StoredProcessInterface |
newStoredProcess(SessionContextInterface sessionContext,
int serverType,
int resultType)
Deprecated. This method has been deprecated since it is a pass through call to the deprecated StoredProcessServiceInterface.newStoredProcess(SessionContextInterface, int, int) . |
StoredProcessInterface |
newStoredProcess(SessionContextInterface sessionContext,
StoredProcessInterface storedProcessSmartObject)
Deprecated. This method has been deprecated since it is a pass through call to the deprecated StoredProcessServiceInterface.newStoredProcess(SessionContextInterface, com.sas.services.storedprocess.metadata.StoredProcessInterface) . |
java.lang.Object |
newStoredProcess(StoredProcessInterface storedProcessSmartObject,
StoredProcessOptions options)
Create an instance of a Stored Process service object from metadata using the provided smart object. |
void |
setClientName(java.lang.String clientName)
Sets the client name. |
Methods inherited from interface com.sas.services.RemoteServiceInterface |
---|
configure, destroy, getCreationTime, getServiceConfiguration, getServiceConfiguration, getServiceProxy, getServiceState, isAccessibleToRemoteClients, isExported, reconfigure, setServiceState |
Methods inherited from interface com.sas.services.mgmt.ServiceNotificationBroadcasterInterface |
---|
addServiceObserver, notifyServiceObservers, removeAllServiceObservers, removeServiceObserver |
Constructor Detail |
---|
public StoredProcessServiceProxy(StoredProcessServiceInterface storedProcessService) throws InitializationException
storedProcessService
- Stored process service to be proxied.
InitializationException
- if unable to create a
proxy for the service.Method Detail |
---|
public final StoredProcessInterface newStoredProcess(SessionContextInterface sessionContext, StoredProcessInterface storedProcessSmartObject) throws InitializationException, TransportException, java.rmi.RemoteException
StoredProcessServiceInterface.newStoredProcess(SessionContextInterface, com.sas.services.storedprocess.metadata.StoredProcessInterface)
.
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 object
to create new stored process service objects.
newStoredProcess
in interface StoredProcessServiceInterface
sessionContext
- specifies the SessionContextInterface
under which the stored process will be exploitedstoredProcessSmartObject
- specifies the stored
process smart object which describes the stored process
StoredProcessInterface
representing the created stored
process object
InitializationException
- if the metadata was ill-formed or is not the original version
TransportException
- if the OMR layer encountered problems
java.rmi.RemoteException
- if a network anomaly is encountered.public final java.lang.Object newStoredProcess(StoredProcessInterface storedProcessSmartObject, StoredProcessOptions options) throws InitializationException, TransportException, java.rmi.RemoteException
StoredProcessServiceInterface
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 object
to create a service object.
The StoredProcessOptions
options parameter controls
behavior as follows:
StoredProcessInterface.NINETWO_VERSION
) stored process based
service object.
read compatible
for a service
object to be returned.
newStoredProcess
in interface StoredProcessServiceInterface
storedProcessSmartObject
- the smart object from which the service object is createdoptions
- controls behavior as described
InitializationException
- if the metadata was ill-formed or the smart object was ill-formed or not read compatible
TransportException
java.rmi.RemoteException
public final StoredProcessInterface newStoredProcess(SessionContextInterface sessionContext, int serverType, int resultType) throws java.lang.IllegalArgumentException, java.rmi.RemoteException
StoredProcessServiceInterface.newStoredProcess(SessionContextInterface, int, int)
.
newStoredProcess
in interface StoredProcessServiceInterface
sessionContext
- specifies the SessionContextInterface
under which the stored process will be exploited, can be nullserverType
- specifies the server on which this stored process will execute.
Either
resultType
- specifies the type of result.
If the serverType is StoredProcessInterface.
SERVER_TYPE_STOREDPROCESS
valid values for resultType are
StoredProcessInterface.RESULT_TYPE_NONE
StoredProcessInterface.RESULT_TYPE_STREAM
StoredProcessInterface.RESULT_TYPE_PERMANENT_WEBDAV_PACKAGE
StoredProcessInterface.SERVER_TYPE_WORKSPACE
valid values for resultType
are
StoredProcessInterface
representing the created stored
process object
java.rmi.RemoteException
- if a network anomaly is encountered.
java.lang.IllegalArgumentException
- if an invalid value is specified for serverType or resultType.public final java.lang.Object newStoredProcess(int serverType, StoredProcessOptions options) throws java.lang.IllegalArgumentException, InitializationException, java.rmi.RemoteException
StoredProcessServiceInterface
The StoredProcessOptions
options parameter controls behavior as follows:
newStoredProcess
in interface StoredProcessServiceInterface
serverType
- specifies the server on which this stored process will execute.
Either
StoredProcessBaseInterface.SERVER_TYPE_STOREDPROCESS
orStoredProcessBaseInterface.SERVER_TYPE_WORKSPACE
StoredProcessBaseInterface.SERVER_TYPE_STOREDPROCESS
and with only
package capability if the serverType is
StoredProcessBaseInterface.SERVER_TYPE_WORKSPACE
.options
- as described above
InitializationException
- if there was an initialization exception of some kind
java.rmi.RemoteException
- if a network anomaly is encountered
java.lang.IllegalArgumentException
public java.lang.String getClientName() throws java.rmi.RemoteException
StoredProcessServiceInterface
StoredProcessServiceInterface.setClientName(String)
was with a non-null parameter.
getClientName
in interface StoredProcessServiceInterface
java.rmi.RemoteException
public void setClientName(java.lang.String clientName) throws java.rmi.RemoteException
StoredProcessServiceInterface
setClientName
in interface StoredProcessServiceInterface
clientName
- client name
java.rmi.RemoteException
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |