org.exoplatform.frameworks.portletcontainer.portalframework.replication
Class SessionReplicator

java.lang.Object
  extended by org.exoplatform.frameworks.portletcontainer.portalframework.replication.SessionReplicator
All Implemented Interfaces:
org.jgroups.blocks.RequestHandler, org.picocontainer.Startable

public class SessionReplicator
extends Object
implements org.jgroups.blocks.RequestHandler, org.picocontainer.Startable

Session replicator class.


Field Summary
static String PORTAL_IDENTIFIER
          Portal identifier.
static String REPLICATOR_IDENTIFIER
          Portal identifier.
static String SESSION_IDENTIFIER
          Session identifier.
 
Constructor Summary
SessionReplicator(org.exoplatform.container.xml.InitParams params)
          Sends session info to other nodes.
 
Method Summary
 Object handle(org.jgroups.Message msg)
          Receives remote session infos and updates local data.
 void init()
           
 void send(String sessionId, String portalContainerName, Map<String,Object> sessionInfo)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_IDENTIFIER

public static final String SESSION_IDENTIFIER
Session identifier.

See Also:
Constant Field Values

PORTAL_IDENTIFIER

public static final String PORTAL_IDENTIFIER
Portal identifier.

See Also:
Constant Field Values

REPLICATOR_IDENTIFIER

public static final String REPLICATOR_IDENTIFIER
Portal identifier.

See Also:
Constant Field Values
Constructor Detail

SessionReplicator

public SessionReplicator(org.exoplatform.container.xml.InitParams params)
Sends session info to other nodes.

Parameters:
sessionId - http session id
portalContainerName - portal container name
sessionInfo - session info
Throws:
Exception - something may go wrong
Method Detail

send

public final void send(String sessionId,
                       String portalContainerName,
                       Map<String,Object> sessionInfo)
                throws Exception
Throws:
Exception

handle

public final Object handle(org.jgroups.Message msg)
Receives remote session infos and updates local data.

Specified by:
handle in interface org.jgroups.blocks.RequestHandler
Parameters:
msg - message received
Returns:
reply

init

public void init()

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable


Copyright © 2009 eXo Platform SAS. All Rights Reserved.