org.codehaus.wadi.aop.replication
Class ClusteredStateSession

java.lang.Object
  extended by org.codehaus.wadi.core.eviction.SimpleEvictable
      extended by org.codehaus.wadi.core.motable.AbstractMotable
          extended by org.codehaus.wadi.core.session.StandardSession
              extended by org.codehaus.wadi.core.session.DistributableSession
                  extended by org.codehaus.wadi.core.session.AbstractReplicableSession
                      extended by org.codehaus.wadi.aop.replication.ClusteredStateSession
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, org.codehaus.wadi.core.eviction.Evictable, org.codehaus.wadi.core.motable.Motable, org.codehaus.wadi.core.session.Session

public class ClusteredStateSession
extends org.codehaus.wadi.core.session.AbstractReplicableSession

Version:
$Revision: 1538 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.wadi.core.session.StandardSession
org.codehaus.wadi.core.session.StandardSession.StateMap
 
Field Summary
 
Fields inherited from class org.codehaus.wadi.core.session.AbstractReplicableSession
replicationManager
 
Fields inherited from class org.codehaus.wadi.core.session.DistributableSession
streamer
 
Fields inherited from class org.codehaus.wadi.core.session.StandardSession
attributes, localStateMap, manager
 
Fields inherited from class org.codehaus.wadi.core.motable.AbstractMotable
readWriteLock
 
Fields inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable
memento
 
Constructor Summary
ClusteredStateSession(ClusteredStateAttributes attributes, org.codehaus.wadi.core.manager.Manager manager, org.codehaus.wadi.core.util.Streamer streamer, org.codehaus.wadi.replication.manager.ReplicationManager replicationManager, org.codehaus.wadi.replication.manager.basic.ObjectStateHandler stateHandler)
           
 
Method Summary
 byte[] getBodyAsByteArray()
           
 ClusteredStateSessionMemento getClusteredStateSessionMemento()
           
protected  org.codehaus.wadi.core.eviction.SimpleEvictableMemento newMemento()
           
 void setBodyAsByteArray(byte[] bytes)
           
 
Methods inherited from class org.codehaus.wadi.core.session.AbstractReplicableSession
destroy, isDirty, onEndProcessing
 
Methods inherited from class org.codehaus.wadi.core.session.DistributableSession
getDistributableSessionMemento, setDistributableSessionMemento
 
Methods inherited from class org.codehaus.wadi.core.session.StandardSession
addState, destroyForMotion, getLocalStateMap, getStandardSessionMemento, getState, getState, onAddSate, onDestroy, onRemoveState, removeState
 
Methods inherited from class org.codehaus.wadi.core.motable.AbstractMotable
copy, getAbstractMotableMemento, getName, getReadWriteLock, init, initExisting, isNew, mote, newReadWriteLock, onDeserialization, rehydrate, restore
 
Methods inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable
copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, onSerialization, readExternal, setLastAccessedTime, setMaxInactiveInterval, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.wadi.core.motable.Motable
copy, getName, getReadWriteLock, init, isNew, mote, rehydrate, restore
 
Methods inherited from interface org.codehaus.wadi.core.eviction.Evictable
copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, setLastAccessedTime, setMaxInactiveInterval
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Constructor Detail

ClusteredStateSession

public ClusteredStateSession(ClusteredStateAttributes attributes,
                             org.codehaus.wadi.core.manager.Manager manager,
                             org.codehaus.wadi.core.util.Streamer streamer,
                             org.codehaus.wadi.replication.manager.ReplicationManager replicationManager,
                             org.codehaus.wadi.replication.manager.basic.ObjectStateHandler stateHandler)
Method Detail

newMemento

protected org.codehaus.wadi.core.eviction.SimpleEvictableMemento newMemento()
Overrides:
newMemento in class org.codehaus.wadi.core.session.DistributableSession

getClusteredStateSessionMemento

public ClusteredStateSessionMemento getClusteredStateSessionMemento()

getBodyAsByteArray

public byte[] getBodyAsByteArray()
                          throws java.lang.Exception
Specified by:
getBodyAsByteArray in interface org.codehaus.wadi.core.motable.Motable
Overrides:
getBodyAsByteArray in class org.codehaus.wadi.core.session.DistributableSession
Throws:
java.lang.Exception

setBodyAsByteArray

public void setBodyAsByteArray(byte[] bytes)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
Specified by:
setBodyAsByteArray in interface org.codehaus.wadi.core.motable.Motable
Overrides:
setBodyAsByteArray in class org.codehaus.wadi.core.session.DistributableSession
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 2010. All Rights Reserved.