1 7 package org.jboss.web.tomcat.tc5.session; 8 9 import org.apache.catalina.Context; 10 import org.apache.catalina.Session; 11 import org.jboss.logging.Logger; 12 13 20 public class InstantSnapshotManager extends SnapshotManager 21 { 22 static Logger log = Logger.getLogger(InstantSnapshotManager.class); 23 24 public InstantSnapshotManager(AbstractJBossManager manager, String path) 25 { 26 super(manager, path); 27 } 28 29 32 public void snapshot(String id) 33 { 34 try 35 { 36 Session session = (Session) manager.findSession(id); 38 manager.storeSession(session); 39 } 40 catch (Exception e) 41 { 42 log.warn("Failed to replicate sessionID:" + id, e); 43 } 44 } 45 46 public void start() 47 { 48 } 49 50 public void stop() 51 { 52 } 53 } 54 | Popular Tags |