|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.ha.httpsession.server.ClusteredHTTPSessionService
JMX Service implementation for ClusteredHTTPSessionServiceMBean
ClusteredHTTPSessionServiceMBean
(src) Nested Class Summary | |
protected class |
ClusteredHTTPSessionService.CleanupDaemon (src)
|
Field Summary | |
protected ClusteredHTTPSessionService.CleanupDaemon (src) |
cleanup
|
protected static long |
CLEANUP_FREQUENCY
|
protected java.security.MessageDigest |
digest
|
protected ClusteredHTTPSessionHome (src) |
httpSessionHome
|
protected LocalClusteredHTTPSessionHome (src) |
localHttpSessionHome
|
protected java.util.Random |
random
|
protected static int |
SESSION_ID_BYTES
|
protected static java.lang.String |
SESSION_ID_HASH_ALGORITHM
|
protected static java.lang.String |
SESSION_ID_RANDOM_ALGORITHM
|
protected static java.lang.String |
SESSION_ID_RANDOM_ALGORITHM_ALT
|
protected long |
sessionTimeout
|
protected boolean |
useLocalBean
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
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 | |
ClusteredHTTPSessionService()
|
Method Summary | |
protected ClusteredHTTPSessionBusiness (src) |
createSession(java.lang.String id,
SerializableHttpSession (src) session)
|
protected java.lang.String |
encode(byte[] data)
Encode the bytes into a String with a slightly modified Base64-algorithm This code was written by Kevin Kelley |
protected java.lang.String |
generateSessionId()
Generate a session-id that is not guessable |
protected java.security.MessageDigest |
getDigest()
get a MessageDigest hash-generator |
SerializableHttpSession (src) |
getHttpSession(java.lang.String sessionId,
java.lang.ClassLoader tcl)
Return the HttpSession associated to a session id. |
protected java.util.Random |
getRandom()
get a random-number generator |
java.lang.String |
getSessionId()
Generates a new session id available cluster-wide |
long |
getSessionTimeout()
Indicate the duration, in ms, after which the session can be cleaned if no access occurs. |
boolean |
getUseLocalBean()
|
protected void |
initRefToBean()
|
void |
removeHttpSession(java.lang.String sessionId)
Remove an HttpSession from the cluster (log off for example) |
void |
setHttpSession(java.lang.String sessionId,
SerializableHttpSession (src) session)
Associate a new session with the session id. |
void |
setSessionTimeout(long miliseconds)
Indicate the duration, in ms, after which the session can be cleaned if no access occurs. |
void |
setUseLocalBean(boolean useLocal)
Indicates whether the service should use the local and home interfaces of the entity bean or the remote and remote home interfaces (depending if they are in the same JVM). |
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, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, 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) |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Field Detail |
protected static final long CLEANUP_FREQUENCY
protected static final int SESSION_ID_BYTES
protected static final java.lang.String SESSION_ID_HASH_ALGORITHM
protected static final java.lang.String SESSION_ID_RANDOM_ALGORITHM
protected static final java.lang.String SESSION_ID_RANDOM_ALGORITHM_ALT
protected ClusteredHTTPSessionHome (src) httpSessionHome
protected LocalClusteredHTTPSessionHome (src) localHttpSessionHome
protected ClusteredHTTPSessionService.CleanupDaemon (src) cleanup
protected long sessionTimeout
protected boolean useLocalBean
protected java.security.MessageDigest digest
protected java.util.Random random
Constructor Detail |
public ClusteredHTTPSessionService()
Method Detail |
public void setHttpSession(java.lang.String sessionId, SerializableHttpSession (src) session) throws EJBException (src)
ClusteredHTTPSessionServiceMBean (src)
setHttpSession
in interface ClusteredHTTPSessionServiceMBean (src)
EJBException (src)
public SerializableHttpSession (src) getHttpSession(java.lang.String sessionId, java.lang.ClassLoader tcl) throws EJBException (src)
ClusteredHTTPSessionServiceMBean (src)
getHttpSession
in interface ClusteredHTTPSessionServiceMBean (src)
EJBException (src)
public void removeHttpSession(java.lang.String sessionId) throws EJBException (src)
ClusteredHTTPSessionServiceMBean (src)
removeHttpSession
in interface ClusteredHTTPSessionServiceMBean (src)
EJBException (src)
public long getSessionTimeout()
ClusteredHTTPSessionServiceMBean (src)
getSessionTimeout
in interface ClusteredHTTPSessionServiceMBean (src)
public void setSessionTimeout(long miliseconds)
ClusteredHTTPSessionServiceMBean (src)
setSessionTimeout
in interface ClusteredHTTPSessionServiceMBean (src)
public java.lang.String getSessionId()
ClusteredHTTPSessionServiceMBean (src)
getSessionId
in interface ClusteredHTTPSessionServiceMBean (src)
public void setUseLocalBean(boolean useLocal)
ClusteredHTTPSessionServiceMBean (src)
setUseLocalBean
in interface ClusteredHTTPSessionServiceMBean (src)
public boolean getUseLocalBean()
getUseLocalBean
in interface ClusteredHTTPSessionServiceMBean (src)
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void initRefToBean() throws java.lang.Exception
java.lang.Exception
protected ClusteredHTTPSessionBusiness (src) createSession(java.lang.String id, SerializableHttpSession (src) session) throws java.lang.Exception
java.lang.Exception
protected java.lang.String generateSessionId()
protected java.lang.String encode(byte[] data)
data
- The bytes you want to encode
protected java.util.Random getRandom()
protected java.security.MessageDigest getDigest()
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |