org.jboss.ha.hasessionstate.server
Class HASessionStateService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.ha.hasessionstate.server.HASessionStateService
All Implemented Interfaces:
HASessionStateServiceMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class HASessionStateService
extends ServiceMBeanSupport (src)
implements HASessionStateServiceMBean (src)

Service class for HASessionState

See Also:
HASessionState (src)

Field Summary
protected  long beanCleaningDelay
           
protected  java.lang.String haPartitionName
           
protected  java.lang.String jndiName
           
protected  HASessionStateImpl (src) sessionState
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.ha.hasessionstate.server.HASessionStateServiceMBean (src)
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
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()
          Sub-classes should override this method to provide custum 'create' logic.
 long getBeanCleaningDelay()
           
 java.lang.String getJndiName()
           
 java.lang.String getName()
          Use the short class name as the default for the service name.
protected  ObjectName (src) getObjectName(MBeanServer (src)  server, ObjectName (src)  name)
          Sub-classes should override this method if they only need to set their object name during MBean pre-registration.
 java.lang.String getPartitionName()
           
 void setBeanCleaningDelay(long newDelay)
           
 void setJndiName(java.lang.String newName)
           
 void setPartitionName(java.lang.String name)
           
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, destroy, destroyService, 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 (src)
addNotificationListener, getNotificationInfo, handleNotification, 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 (src)
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Field Detail

jndiName

protected java.lang.String jndiName

haPartitionName

protected java.lang.String haPartitionName

beanCleaningDelay

protected long beanCleaningDelay

sessionState

protected HASessionStateImpl (src)  sessionState
Constructor Detail

HASessionStateService

public HASessionStateService()
Method Detail

getName

public java.lang.String getName()
Description copied from class: ServiceMBeanSupport (src)
Use the short class name as the default for the service name.

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

getJndiName

public java.lang.String getJndiName()
Specified by:
getJndiName in interface HASessionStateServiceMBean (src)

setJndiName

public void setJndiName(java.lang.String newName)
Specified by:
setJndiName in interface HASessionStateServiceMBean (src)

getPartitionName

public java.lang.String getPartitionName()
Specified by:
getPartitionName in interface HASessionStateServiceMBean (src)

setPartitionName

public void setPartitionName(java.lang.String name)
Specified by:
setPartitionName in interface HASessionStateServiceMBean (src)

getBeanCleaningDelay

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

setBeanCleaningDelay

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

getObjectName

protected ObjectName (src)  getObjectName(MBeanServer (src)  server,
                                   ObjectName (src)  name)
                            throws MalformedObjectNameException (src) 
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration.

Overrides:
getObjectName in class ServiceMBeanSupport (src)
Throws:
MalformedObjectNameException (src)

createService

protected void createService()
                      throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'create' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
createService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

startService

protected void startService()
                     throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception