org.jboss.web.tomcat.service.session.distributedcache.impl.jbc
Class CacheListenerBase

java.lang.Object
  extended by org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.CacheListenerBase
Direct Known Subclasses:
CacheListener, PassivationListener

public class CacheListenerBase
extends Object

Base class for JBC cache listener impls.

Author:
Brian Stansberry

Field Summary
protected static int BUDDY_BACKUP_ROOT_OWNER_SIZE
           
protected  org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager manager_
           
protected static int SESSION_ID_FQN_INDEX
           
 
Method Summary
static String getBuddyOwner(org.jboss.cache.Fqn<String> fqn)
          Extracts the owner portion of an buddy subtree Fqn.
static String getIdFromFqn(org.jboss.cache.Fqn<String> fqn, boolean isBuddy)
           
static boolean isBuddyFqn(org.jboss.cache.Fqn<String> fqn)
           
protected  boolean isFqnForOurWebapp(org.jboss.cache.Fqn<String> fqn, boolean isBuddy)
           
static boolean isFqnSessionRootSized(org.jboss.cache.Fqn<String> fqn, boolean isBuddy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_ID_FQN_INDEX

protected static final int SESSION_ID_FQN_INDEX
See Also:
Constant Field Values

BUDDY_BACKUP_ROOT_OWNER_SIZE

protected static final int BUDDY_BACKUP_ROOT_OWNER_SIZE

manager_

protected org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager manager_
Method Detail

isFqnForOurWebapp

protected boolean isFqnForOurWebapp(org.jboss.cache.Fqn<String> fqn,
                                    boolean isBuddy)

isFqnSessionRootSized

public static boolean isFqnSessionRootSized(org.jboss.cache.Fqn<String> fqn,
                                            boolean isBuddy)

getIdFromFqn

public static String getIdFromFqn(org.jboss.cache.Fqn<String> fqn,
                                  boolean isBuddy)

isBuddyFqn

public static boolean isBuddyFqn(org.jboss.cache.Fqn<String> fqn)

getBuddyOwner

public static String getBuddyOwner(org.jboss.cache.Fqn<String> fqn)
Extracts the owner portion of an buddy subtree Fqn.

Parameters:
fqn - An Fqn that is a child of the buddy backup root node.


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.