org.jboss.ha.hasessionstate.server
Class HASessionStateService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
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
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jndiName
protected String jndiName
clusterPartition
protected org.jboss.ha.framework.interfaces.HAPartition clusterPartition
beanCleaningDelay
protected long beanCleaningDelay
sessionState
protected HASessionStateImpl sessionState
HASessionStateService
public HASessionStateService()
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.