org.codehaus.wadi.impl
Class AbstractReplicableSession

java.lang.Object
  extended byorg.codehaus.wadi.impl.SimpleEvictable
      extended byorg.codehaus.wadi.impl.AbstractMotable
          extended byorg.codehaus.wadi.impl.AbstractContext
              extended byorg.codehaus.wadi.impl.StandardSession
                  extended byorg.codehaus.wadi.impl.DistributableSession
                      extended byorg.codehaus.wadi.impl.AbstractReplicableSession
All Implemented Interfaces:
AttributesConfig, Config, Context, DistributableAttributesConfig, Evictable, Motable, RWLockListener, Serializable, SerializableContent, Session, WADIHttpSession
Direct Known Subclasses:
AtomicallyReplicableSession, PartiallyReplicableSession

public abstract class AbstractReplicableSession
extends DistributableSession
implements RWLockListener

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

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

Field Summary
 
Fields inherited from class org.codehaus.wadi.impl.StandardSession
_attributes, _config, _emptyEnumeration, _emptyStringArray, _httpSessionEvent, _log, _wrapper
 
Fields inherited from class org.codehaus.wadi.impl.AbstractContext
_lock
 
Fields inherited from class org.codehaus.wadi.impl.AbstractMotable
_name
 
Fields inherited from class org.codehaus.wadi.impl.SimpleEvictable
_creationTime, _lastAccessedTime, _maxInactiveInterval
 
Constructor Summary
AbstractReplicableSession(ReplicableSessionConfig config)
           
 
Method Summary
 void copy(Motable motable)
           
 void destroy()
           
 void destroy(Motable recipient)
           
 void init(long creationTime, long lastAccessedTime, int maxInactiveInterval, String name)
           
 void init2(long creationTime, long lastAccessedTime, int maxInactiveInterval, String name)
           
 void mote(Motable recipient)
           
abstract  void readEnded()
           
 
Methods inherited from class org.codehaus.wadi.impl.DistributableSession
findHelper, getBodyAsByteArray, getHttpSessionAttributeListenersRegistered, getListenerNames, getStreamer, readContent, setBodyAsByteArray, writeContent
 
Methods inherited from class org.codehaus.wadi.impl.StandardSession
getAttribute, getAttributeNameEnumeration, getAttributeNameSet, getAttributeNameStringArray, getConfig, getHttpSessionEvent, getId, getValuePool, getWrapper, notifyAttributeListeners, notifyBindingListeners, removeAttribute, setAttribute, setLastAccessedTime, setMaxInactiveInterval
 
Methods inherited from class org.codehaus.wadi.impl.AbstractContext
getBodyAsByteBuffer, getExclusiveLock, getSharedLock, setBodyAsByteBuffer
 
Methods inherited from class org.codehaus.wadi.impl.AbstractMotable
getName
 
Methods inherited from class org.codehaus.wadi.impl.SimpleEvictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote
 
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.DistributableAttributesConfig
getHttpSessionEvent
 
Methods inherited from interface org.codehaus.wadi.AttributesConfig
getValuePool
 
Methods inherited from interface org.codehaus.wadi.Context
getExclusiveLock, getSharedLock
 
Methods inherited from interface org.codehaus.wadi.Motable
getBodyAsByteBuffer, getName, setBodyAsByteBuffer
 
Methods inherited from interface org.codehaus.wadi.Evictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote
 

Constructor Detail

AbstractReplicableSession

public AbstractReplicableSession(ReplicableSessionConfig config)
Method Detail

readEnded

public abstract void readEnded()
Specified by:
readEnded in interface RWLockListener

init

public void init(long creationTime,
                 long lastAccessedTime,
                 int maxInactiveInterval,
                 String name)
Specified by:
init in interface Motable
Overrides:
init in class AbstractMotable

init2

public void init2(long creationTime,
                  long lastAccessedTime,
                  int maxInactiveInterval,
                  String name)

copy

public void copy(Motable motable)
          throws Exception
Specified by:
copy in interface Motable
Overrides:
copy in class AbstractMotable
Throws:
Exception

mote

public void mote(Motable recipient)
          throws Exception
Specified by:
mote in interface Motable
Overrides:
mote in class AbstractMotable
Throws:
Exception

destroy

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

destroy

public void destroy(Motable recipient)
             throws Exception
Throws:
Exception


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.