org.jboss.ha.hasessionstate.server
Class HASessionStateService

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.ha.hasessionstate.server.HASessionStateService
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, HASessionStateServiceMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean

public class HASessionStateService
extends ServiceMBeanSupport
implements HASessionStateServiceMBean

Service class for HASessionState

Version:
$Revision: 81001 $

Revisions:

Author:
sacha.labourey@cogito-info.ch
See Also:
HASessionState

Field Summary
protected  long beanCleaningDelay
           
protected  org.jboss.ha.framework.interfaces.HAPartition clusterPartition
           
protected  String jndiName
           
protected  HASessionStateImpl sessionState
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.ha.hasessionstate.server.HASessionStateServiceMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
HASessionStateService()
           
 
Method Summary
protected  void createService()
           
protected  void destroyService()
           
 long getBeanCleaningDelay()
           
 org.jboss.ha.framework.interfaces.HAPartition getHAPartition()
          Get the underlying partition used by this service.
 String getJndiName()
           
 String getName()
           
protected  ObjectName getObjectName(MBeanServer server, ObjectName name)
           
 String getPartitionName()
          Gets the name of the partition used by this service.
 void setBeanCleaningDelay(long newDelay)
           
 void setHAPartition(org.jboss.ha.framework.interfaces.HAPartition clusterPartition)
          Sets the underlying partition used by this service.
 void setJndiName(String newName)
           
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

jndiName

protected String jndiName

clusterPartition

protected org.jboss.ha.framework.interfaces.HAPartition clusterPartition

beanCleaningDelay

protected long beanCleaningDelay

sessionState

protected HASessionStateImpl sessionState
Constructor Detail

HASessionStateService

public HASessionStateService()
Method Detail

getName

public String getName()
Specified by:
getName in interface ServiceMBean
Overrides:
getName in class ServiceMBeanSupport

getJndiName

public String getJndiName()
Specified by:
getJndiName in interface HASessionStateServiceMBean

setJndiName

public void setJndiName(String newName)
Specified by:
setJndiName in interface HASessionStateServiceMBean

getPartitionName

public String getPartitionName()
Description copied from interface: HASessionStateServiceMBean
Gets the name of the partition used by this service. This is a convenience method as the partition name is an attribute of HAPartition.

Specified by:
getPartitionName in interface HASessionStateServiceMBean
Returns:
the name of the partition

getHAPartition

public org.jboss.ha.framework.interfaces.HAPartition getHAPartition()
Description copied from interface: HASessionStateServiceMBean
Get the underlying partition used by this service.

Specified by:
getHAPartition in interface HASessionStateServiceMBean
Returns:
the partition

setHAPartition

public void setHAPartition(org.jboss.ha.framework.interfaces.HAPartition clusterPartition)
Description copied from interface: HASessionStateServiceMBean
Sets the underlying partition used by this service.

Specified by:
setHAPartition in interface HASessionStateServiceMBean
Parameters:
clusterPartition - the partition

getBeanCleaningDelay

public long getBeanCleaningDelay()
Specified by:
getBeanCleaningDelay in interface HASessionStateServiceMBean

setBeanCleaningDelay

public void setBeanCleaningDelay(long newDelay)
Specified by:
setBeanCleaningDelay in interface HASessionStateServiceMBean

getObjectName

protected ObjectName getObjectName(MBeanServer server,
                                   ObjectName name)
                            throws MalformedObjectNameException
Overrides:
getObjectName in class ServiceMBeanSupport
Throws:
MalformedObjectNameException

createService

protected void createService()
                      throws Exception
Overrides:
createService in class ServiceMBeanSupport
Throws:
Exception

startService

protected void startService()
                     throws Exception
Overrides:
startService in class ServiceMBeanSupport
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Overrides:
stopService in class ServiceMBeanSupport
Throws:
Exception

destroyService

protected void destroyService()
                       throws Exception
Overrides:
destroyService in class ServiceMBeanSupport
Throws:
Exception


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