FileDocCategorySizeDatePackage
HASessionStateService.javaAPI DocJBoss 4.2.14044Fri Jul 13 20:52:38 BST 2007org.jboss.ha.hasessionstate.server

HASessionStateService

public class HASessionStateService extends org.jboss.system.ServiceMBeanSupport implements HASessionStateServiceMBean
Service class for HASessionState
see
org.jboss.ha.hasessionstate.interfaces.HASessionState
author
sacha.labourey@cogito-info.ch
version
$Revision: 57188 $

Revisions:

Fields Summary
protected String
jndiName
protected String
haPartitionName
protected org.jboss.ha.framework.server.ClusterPartitionMBean
clusterPartition
protected long
beanCleaningDelay
protected org.jboss.ha.hasessionstate.server.HASessionStateImpl
sessionState
Constructors Summary
Methods Summary
protected voidcreateService()

      if (this.clusterPartition == null)
      {
         this.sessionState = new HASessionStateImpl (this.jndiName, 
               this.haPartitionName, 
					this.beanCleaningDelay);
      }
      else
      {
         this.sessionState = new HASessionStateImpl (this.jndiName, 
               this.clusterPartition.getHAPartition(), 
               this.beanCleaningDelay);
      }
      this.sessionState.init ();
   
protected voiddestroyService()

      this.sessionState.destroy();
      this.sessionState = null;
   
public longgetBeanCleaningDelay()

      if (this.sessionState == null)
         return this.beanCleaningDelay;
      else
         return this.sessionState.beanCleaningDelay;
   
public org.jboss.ha.framework.server.ClusterPartitionMBeangetClusterPartition()

      return clusterPartition;
   
public java.lang.StringgetJndiName()

      return this.jndiName;
   
public java.lang.StringgetName()

   
      
   
      return this.getJndiName ();
   
protected javax.management.ObjectNamegetObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)

      return name == null ? OBJECT_NAME : name;
   
public java.lang.StringgetPartitionName()

      return this.haPartitionName;
   
public voidsetBeanCleaningDelay(long newDelay)

 this.beanCleaningDelay = newDelay; 
public voidsetClusterPartition(org.jboss.ha.framework.server.ClusterPartitionMBean clusterPartition)

      this.clusterPartition = clusterPartition;
   
public voidsetJndiName(java.lang.String newName)

      this.jndiName = newName;
   
public voidsetPartitionName(java.lang.String name)

      this.haPartitionName = name;
   
protected voidstartService()

      this.sessionState.start ();
   
protected voidstopService()

      this.sessionState.stop ();