org.jboss.web.tomcat.service.session
Class IntervalConvergedSnapshotManager

java.lang.Object
  extended by org.jboss.web.tomcat.service.session.SnapshotManager
      extended by org.jboss.web.tomcat.service.session.IntervalSnapshotManager
          extended by org.jboss.web.tomcat.service.session.IntervalConvergedSnapshotManager
All Implemented Interfaces:
java.lang.Runnable, SnapshotSipManager

public class IntervalConvergedSnapshotManager
extends org.jboss.web.tomcat.service.session.IntervalSnapshotManager
implements SnapshotSipManager

Author:
Jean Deruelle

Field Summary
protected  java.util.Set sipApplicationSessions
           
protected  java.util.Set sipSessions
           
 
Fields inherited from class org.jboss.web.tomcat.service.session.IntervalSnapshotManager
interval, processingAllowed, sessions, thread, threadDone
 
Fields inherited from class org.jboss.web.tomcat.service.session.SnapshotManager
contextPath, manager
 
Constructor Summary
IntervalConvergedSnapshotManager(org.jboss.web.tomcat.service.session.AbstractJBossManager manager, java.lang.String path)
           
IntervalConvergedSnapshotManager(org.jboss.web.tomcat.service.session.AbstractJBossManager manager, java.lang.String path, int interval)
           
 
Method Summary
protected  void processSipApplicationSessions()
          Distribute all modified sessions
protected  void processSipSessions()
          Distribute all modified sessions
 void run()
          Thread-loop
 void snapshot(ClusteredSipApplicationSession session)
          Store the modified session in a hashmap for the distributor thread
 void snapshot(ClusteredSipSession session)
          Store the modified session in a hashmap for the distributor thread
 void start()
          Start the snapshot manager
protected  void startThread()
          Start the distributor thread
 void stop()
          Stop the snapshot manager
protected  void stopThread()
          Stop the distributor thread
 
Methods inherited from class org.jboss.web.tomcat.service.session.IntervalSnapshotManager
processSessions, snapshot
 
Methods inherited from class org.jboss.web.tomcat.service.session.SnapshotManager
getContextPath, getLog, getManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sipSessions

protected java.util.Set sipSessions

sipApplicationSessions

protected java.util.Set sipApplicationSessions
Constructor Detail

IntervalConvergedSnapshotManager

public IntervalConvergedSnapshotManager(org.jboss.web.tomcat.service.session.AbstractJBossManager manager,
                                        java.lang.String path)
Parameters:
manager -
path -

IntervalConvergedSnapshotManager

public IntervalConvergedSnapshotManager(org.jboss.web.tomcat.service.session.AbstractJBossManager manager,
                                        java.lang.String path,
                                        int interval)
Parameters:
manager -
path -
interval -
Method Detail

snapshot

public void snapshot(ClusteredSipSession session)
Store the modified session in a hashmap for the distributor thread

Specified by:
snapshot in interface SnapshotSipManager

snapshot

public void snapshot(ClusteredSipApplicationSession session)
Store the modified session in a hashmap for the distributor thread

Specified by:
snapshot in interface SnapshotSipManager

processSipSessions

protected void processSipSessions()
Distribute all modified sessions


processSipApplicationSessions

protected void processSipApplicationSessions()
Distribute all modified sessions


start

public void start()
Start the snapshot manager

Overrides:
start in class org.jboss.web.tomcat.service.session.IntervalSnapshotManager

stop

public void stop()
Stop the snapshot manager

Overrides:
stop in class org.jboss.web.tomcat.service.session.IntervalSnapshotManager

startThread

protected void startThread()
Start the distributor thread

Overrides:
startThread in class org.jboss.web.tomcat.service.session.IntervalSnapshotManager

stopThread

protected void stopThread()
Stop the distributor thread

Overrides:
stopThread in class org.jboss.web.tomcat.service.session.IntervalSnapshotManager

run

public void run()
Thread-loop

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class org.jboss.web.tomcat.service.session.IntervalSnapshotManager


Copyright © 2009. All Rights Reserved.