| java.lang.Object org.objectweb.jonas_ejb.container.JRepUtil
JRepUtil | class JRepUtil (Code) | | This class implements common function for SFSB replication.
author: Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es) author: Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es) |
Method Summary | |
public static void | addEntityBean(JEntityContext bctx, RequestId rootId) | static void | addModifiedBean(JStatefulSwitch bs, ObjectId clusterOId, RequestId rootId) | public static void | addRemovedBean(ObjectId clusterOId, RequestId rootId) | public static Remote | getHARemoteStub(Remote remote, BeanDesc dd) | public static ReplicationManager | getRepMgr() | static boolean | hasBackupResponse(RequestId requestId) | static void | injectState(ObjectId clusterOId, JStatefulSwitch bs) Injects the state of the bean if the cluster object id received in the
request is in the current node. | static void | postInvokeHook(RequestCtx rctx, ObjectId clusterOId, JSessionSwitch bs, boolean remove) | static void | preInvokeHook(JSessionSwitch bs, ObjectId clusterOId, RequestCtx rctx) |
addEntityBean | public static void addEntityBean(JEntityContext bctx, RequestId rootId)(Code) | | Adds an entity bean to the beans associated with rootId
Parameters: bctx - The entity context Parameters: rootId - the root request id |
addModifiedBean | static void addModifiedBean(JStatefulSwitch bs, ObjectId clusterOId, RequestId rootId)(Code) | | Adds a bean to the beans associated with rootId
Parameters: bs - the bean switch Parameters: clusterOId - the cluster object id Parameters: rootId - the root request id |
addRemovedBean | public static void addRemovedBean(ObjectId clusterOId, RequestId rootId)(Code) | | Adds a bean to the beans associated with rootId marked for remove
Parameters: clusterOId - the cluster object id Parameters: rootId - the root request id |
getHARemoteStub | public static Remote getHARemoteStub(Remote remote, BeanDesc dd) throws RemoteException(Code) | | Get the remote object as a stub object for HA remote object LB
Parameters: remote - remote object Parameters: dd - the deployment descriptor get remote object throws: RemoteException - throws: ServerConfigException - throws: NoSuchObjectException - if the clustered object is not found in theCMI registry |
getRepMgr | public static ReplicationManager getRepMgr() throws Exception(Code) | | Get the replication manager
replication manager throws: Exception - if the replication manager is not set |
hasBackupResponse | static boolean hasBackupResponse(RequestId requestId)(Code) | | |
injectState | static void injectState(ObjectId clusterOId, JStatefulSwitch bs)(Code) | | Injects the state of the bean if the cluster object id received in the
request is in the current node.
Only injects the state if we are on failover
|
preInvokeHook | static void preInvokeHook(JSessionSwitch bs, ObjectId clusterOId, RequestCtx rctx)(Code) | | Sets the clusterOId in the context, and if the bean does not implement
isModifiedMethod stores the state in the context
Parameters: bs - the session switch Parameters: clusterOId - the cluster object Id Parameters: rctx - the request context |
|
|