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:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, HASessionStateServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class HASessionStateService
extends org.jboss.system.ServiceMBeanSupport
implements HASessionStateServiceMBean

Service class for HASessionState

Version:
$Revision: 1.8.6.4 $

Revisions:

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

Field Summary
protected  long beanCleaningDelay
           
protected  ClusterPartitionMBean clusterPartition
           
protected  String haPartitionName
           
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()
           
 ClusterPartitionMBean getClusterPartition()
          Get the underlying partition used by this service.
 String getJndiName()
           
 String getName()
           
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 String getPartitionName()
          Gets the name of the HAPartition used by this service.
 void setBeanCleaningDelay(long newDelay)
           
 void setClusterPartition(ClusterPartitionMBean clusterPartition)
          Sets the underlying partition used by this service.
 void setJndiName(String newName)
           
 void setPartitionName(String name)
          Sets the name of the HAPartition used by this service.
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, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
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

haPartitionName

protected String haPartitionName

clusterPartition

protected ClusterPartitionMBean 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 org.jboss.system.ServiceMBean
Overrides:
getName in class org.jboss.system.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 HAPartition used by this service.

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

setPartitionName

public void setPartitionName(String name)
Description copied from interface: HASessionStateServiceMBean
Sets the name of the HAPartition used by this service.

Specified by:
setPartitionName in interface HASessionStateServiceMBean
Parameters:
name - the name of the partition

getClusterPartition

public ClusterPartitionMBean getClusterPartition()
Description copied from interface: HASessionStateServiceMBean
Get the underlying partition used by this service.

Specified by:
getClusterPartition in interface HASessionStateServiceMBean
Returns:
the partition

setClusterPartition

public void setClusterPartition(ClusterPartitionMBean clusterPartition)
Description copied from interface: HASessionStateServiceMBean
Sets the underlying partition used by this service.

Specified by:
setClusterPartition 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 javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
Overrides:
getObjectName in class org.jboss.system.ServiceMBeanSupport
Throws:
javax.management.MalformedObjectNameException

createService

protected void createService()
                      throws Exception
Overrides:
createService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

startService

protected void startService()
                     throws Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

destroyService

protected void destroyService()
                       throws Exception
Overrides:
destroyService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.