1 22 package org.jboss.web.tomcat.tc6.session; 23 24 import org.jboss.logging.Logger; 25 26 32 public abstract class SnapshotManager 33 { 34 private AbstractJBossManager manager; 36 37 private String contextPath; 39 40 private Logger log; 41 42 public SnapshotManager(AbstractJBossManager manager, String path) 43 { 44 this.manager = manager; 45 contextPath = path; 46 47 String suffix = path; 48 if (suffix == null || "".equals(suffix)) 49 suffix = "ROOT"; 50 log = Logger.getLogger(getClass().getName() + "." + suffix); 51 } 52 53 57 public abstract void snapshot(ClusteredSession session); 58 59 62 public abstract void start(); 63 64 67 public abstract void stop(); 68 69 protected String getContextPath() 70 { 71 return contextPath; 72 } 73 74 protected Logger getLog() 75 { 76 return log; 77 } 78 79 protected AbstractJBossManager getManager() 80 { 81 return manager; 82 } 83 84 85 } 86 | Popular Tags |