|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.component.Component
at.spardat.xma.component.ComponentServer
Representation of a server side component
| Field Summary |
| Fields inherited from class at.spardat.xma.component.Component |
session_ |
| Constructor Summary | |
ComponentServer()
This constructor is for test-purpose. |
|
ComponentServer(XMASessionServer session,
boolean isStateless,
short id)
Constructor. |
|
| Method Summary | |
void |
cleanUpAfterServerEvent()
Removes all stateless pages from this component. |
java.lang.Throwable |
convertToBaseException(java.lang.Throwable detail)
This method is always called when an Exception occurred in a server side RPC implementation. |
void |
dispose()
Destroys this component and deregisters it with the session. |
int |
estimateMemory()
Estimates the number of bytes this object consumes in memory. |
void |
executeRemoteCall(RemoteCall call,
RemoteReply reply,
PageServer targetPage,
java.lang.reflect.Method targetMethod)
This method is called for every server side event on a page in this component or on the component itself. |
protected void |
executeRemoteCallImpl(RemoteCall call,
RemoteReply reply,
PageServer targetPage,
java.lang.reflect.Method targetMethod)
See executeRemoteCall(at.spardat.xma.rpc.RemoteCall, at.spardat.xma.rpc.RemoteReply, at.spardat.xma.page.PageServer, java.lang.reflect.Method). |
void |
externalize(XmaOutput xo,
boolean forceFull)
This method produces the delta of the server model changes cumulated in the course of executing a server side event. |
XMASessionServer |
getSession()
Returns the Session this belongs to (you can rely on the returned object not to be null). |
void |
internalize(XmaInput in)
This is the partner operation of ComponentClient.externalize(at.spardat.xma.serializer.XmaOutput, boolean). |
PageServer |
newPageModel(short typeId)
Constructs a page for a given type id |
void |
registerServerPage(PageServer page,
short id)
Registers a Page with the Component where the caller provides an id. |
protected boolean |
removePageModel(short idPageModel)
Removes a page model with a given id. |
| Methods inherited from class at.spardat.xma.component.Component |
commit, describe, externalizePageSet, externalizeProperties, getId, getModelClass, getName, getNumPageModels, getPageModel, getPageModels, getPropDes, getPropDes, getSCN, incrementSCN, internalizePageSet, internalizeProperties, isPageModelAlive, isStateless, model2props, props2model, registerPageModel, rollback, setId, setSCN, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ComponentServer(XMASessionServer session,
boolean isStateless,
short id)
session - the session this component will belong to.isStateless - defines whether this component is stateless or not.id - the id of the component as transmitted from the client.public ComponentServer()
| Method Detail |
public void dispose()
public void externalize(XmaOutput xo,
boolean forceFull)
throws java.io.IOException
ComponentClient.internalize(at.spardat.xma.serializer.XmaInput). The forceFull parameter is ignored since we always produce deltas.
xo - the serialization destinationforceFull - if true, the complete state is written
and deltas are ignored.
java.io.IOException - on serialization errorsSynchronization.externalize(at.spardat.xma.serializer.XmaOutput, boolean)
public void internalize(XmaInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
ComponentClient.externalize(at.spardat.xma.serializer.XmaOutput, boolean). The output stream
produces in externalize is processed and applied here to make this server side component look like
the client side component.
in - the XMAObjectInput. If a XMAObjectInputChangeListener is
set in the object in, it will be notified after applying
changes read from in.
java.lang.ClassNotFoundException - on serialization errors
java.io.IOException - on serialization errorsSynchronization.internalize(at.spardat.xma.serializer.XmaInput)public XMASessionServer getSession()
public void executeRemoteCall(RemoteCall call,
RemoteReply reply,
PageServer targetPage,
java.lang.reflect.Method targetMethod)
Warning: This method must not be called from outside the framework. It may just be overwritten.
call - the RemoteCall objects as sent from the client.reply - the RemoteReply object that will sent back to the client.targetPage - if the RemoteCall has been launched in a page, this
page is the server page, that will execute the call.
If the RemoteCall has been launched from a component,
targetPage is null.targetMethod - the executing method of the page or component.
protected void executeRemoteCallImpl(RemoteCall call,
RemoteReply reply,
PageServer targetPage,
java.lang.reflect.Method targetMethod)
executeRemoteCall(at.spardat.xma.rpc.RemoteCall, at.spardat.xma.rpc.RemoteReply, at.spardat.xma.page.PageServer, java.lang.reflect.Method). This method must not be called or overwritten
outside the framework.
public java.lang.Throwable convertToBaseException(java.lang.Throwable detail)
detail - the Exception to convert
public void cleanUpAfterServerEvent()
This method must not be called from outside the framework. It also must not be overwritten.
public int estimateMemory()
public PageServer newPageModel(short typeId)
public void registerServerPage(PageServer page,
short id)
page - the Page to register.id - the id to assign
java.lang.IllegalStateException - a page with the given id is already registered.protected boolean removePageModel(short idPageModel)
removePageModel in class ComponentidPageModel - the id of the model to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||