com.sibvisions.rad.server
Interface IDirectServer

All Superinterfaces:
IPushHandler, IServer
All Known Implementing Classes:
Server

public interface IDirectServer
extends IServer, IPushHandler

The IDirectServer interface defines a way to handle callbacks direct without callback-ID mapping. It's an extension of IServer because an IServer implementation is usable via EJB. This extension is only needed if the server and the client runs in the same VM.


Method Summary
 void afterLastCall(java.lang.Object pSessionId, boolean pCallError)
          Notifies the server that all calls were executed.
 void beforeFirstCall(java.lang.Object pSessionId)
          Notifies the server that at least one call will follow.
 void executeActionCallBack(java.lang.Object pSessionId, ICallBackListener pCallBackListener, java.lang.String pAction, java.lang.Object... pParams)
          Executes an asynchronous action call.
 void executeCallBack(java.lang.Object pSessionId, ICallBackListener pCallBackListener, java.lang.String pObjectName, java.lang.String pMethod, java.lang.Object... pParams)
          Executes an asynchronous method call.
 
Methods inherited from interface javax.rad.server.IServer
createSession, createSubSession, destroySession, execute, executeAction, executeActionCallBack, executeCallBack, getCallBackResults, getObjectProvider, getProperties, getProperty, getSessionManager, setAndCheckAlive, setNewPassword, setProperty
 
Methods inherited from interface javax.rad.server.push.IPushHandler
push, registerPushReceiver, unregisterPushReceiver
 

Method Detail

executeCallBack

void executeCallBack(java.lang.Object pSessionId,
                     ICallBackListener pCallBackListener,
                     java.lang.String pObjectName,
                     java.lang.String pMethod,
                     java.lang.Object... pParams)
                     throws java.lang.Throwable
Executes an asynchronous method call.

Parameters:
pSessionId - session identifier
pCallBackListener - the callback listener
pObjectName - server object name/alias
pMethod - method name which should be called
pParams - parameters for the method call
Throws:
java.lang.Throwable - if an error occurs during execution

executeActionCallBack

void executeActionCallBack(java.lang.Object pSessionId,
                           ICallBackListener pCallBackListener,
                           java.lang.String pAction,
                           java.lang.Object... pParams)
                           throws java.lang.Throwable
Executes an asynchronous action call.

Parameters:
pSessionId - session identifier
pCallBackListener - the callback listener
pAction - action which should be called
pParams - parameters for the action call
Throws:
java.lang.Throwable - if an error occurs during execution

beforeFirstCall

void beforeFirstCall(java.lang.Object pSessionId)
Notifies the server that at least one call will follow. It's possible that multiple calls will be executed in batch mode.

Parameters:
pSessionId - the session id which will execute at least one call

afterLastCall

void afterLastCall(java.lang.Object pSessionId,
                   boolean pCallError)
Notifies the server that all calls were executed. This method will be invoked even if one call throwed an exception.

Parameters:
pSessionId - the session id which executed at least one call
pCallError - true if at least one call throwed an exception


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.