org.codehaus.wadi.impl
Class AbstractMotable

java.lang.Object
  extended byorg.codehaus.wadi.impl.SimpleEvictable
      extended byorg.codehaus.wadi.impl.AbstractMotable
All Implemented Interfaces:
Evictable, Motable, Serializable
Direct Known Subclasses:
AbstractContext, DatabaseMotable, DiscMotable, SimpleMotable

public abstract class AbstractMotable
extends SimpleEvictable
implements Motable, Serializable

Implement all of Motable except for the Bytes field. This is the field most likely to have different representations.

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

Field Summary
protected static Log _log
           
protected  String _name
           
 
Fields inherited from class org.codehaus.wadi.impl.SimpleEvictable
_creationTime, _lastAccessedTime, _maxInactiveInterval
 
Constructor Summary
AbstractMotable()
           
 
Method Summary
 void copy(Motable motable)
           
 void destroy()
           
 String getName()
           
 void init(long creationTime, long lastAccessedTime, int maxInactiveInterval, String name)
           
 void mote(Motable recipient)
           
 void readContent(ObjectInput oi)
           
 void writeContent(ObjectOutput oo)
           
 
Methods inherited from class org.codehaus.wadi.impl.SimpleEvictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote, setLastAccessedTime, setMaxInactiveInterval
 
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.Motable
getBodyAsByteArray, getBodyAsByteBuffer, setBodyAsByteArray, setBodyAsByteBuffer
 
Methods inherited from interface org.codehaus.wadi.Evictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote, setLastAccessedTime, setMaxInactiveInterval
 

Field Detail

_log

protected static Log _log

_name

protected String _name
Constructor Detail

AbstractMotable

public AbstractMotable()
Method Detail

init

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

destroy

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

copy

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

mote

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

getName

public String getName()
Specified by:
getName in interface Motable

readContent

public void readContent(ObjectInput oi)
                 throws IOException,
                        ClassNotFoundException
Overrides:
readContent in class SimpleEvictable
Throws:
IOException
ClassNotFoundException

writeContent

public void writeContent(ObjectOutput oo)
                  throws IOException
Overrides:
writeContent in class SimpleEvictable
Throws:
IOException


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