org.codehaus.wadi.core.session
Class AbstractReplicableSession

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
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Evictable, Motable, Session
Direct Known Subclasses:
AtomicallyReplicableSession

public abstract class AbstractReplicableSession
extends DistributableSession

A DistributableSession enhanced with functionality associated with replication - the frequent 'backing-up' of its content to provide against catastrophic failure.

Version:
$Revision: 1725 $
Author:
Jules Gosnell
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.wadi.core.session.StandardSession
StandardSession.StateMap
 
Field Summary
protected  ReplicationManager 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
AbstractReplicableSession(DistributableAttributes attributes, Manager manager, Streamer streamer, ReplicationManager replicationManager)
           
 
Method Summary
 void destroy()
           
protected  boolean isDirty()
           
 void onEndProcessing()
           
 
Methods inherited from class org.codehaus.wadi.core.session.DistributableSession
getBodyAsByteArray, getDistributableSessionMemento, newMemento, setBodyAsByteArray, 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
 

Field Detail

replicationManager

protected final transient ReplicationManager replicationManager
Constructor Detail

AbstractReplicableSession

public AbstractReplicableSession(DistributableAttributes attributes,
                                 Manager manager,
                                 Streamer streamer,
                                 ReplicationManager replicationManager)
Method Detail

onEndProcessing

public void onEndProcessing()
Specified by:
onEndProcessing in interface Session
Overrides:
onEndProcessing in class StandardSession

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface Evictable
Overrides:
destroy in class StandardSession
Throws:
java.lang.Exception

isDirty

protected boolean isDirty()


Copyright © 2011. All Rights Reserved.