org.codehaus.wadi.core.store
Class BasicStoreMotable

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.store.BasicStoreMotable
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Evictable, Motable

public class BasicStoreMotable
extends AbstractMotable

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

Field Summary
 
Fields inherited from class org.codehaus.wadi.core.motable.AbstractMotable
readWriteLock
 
Fields inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable
memento
 
Constructor Summary
BasicStoreMotable(Store store)
           
 
Method Summary
 void destroy()
           
 void destroyForMotion()
           
 byte[] getBodyAsByteArray()
           
 void readExternal(java.io.ObjectInput oi)
           
 void setBodyAsByteArray(byte[] body)
           
 void writeExternal(java.io.ObjectOutput oo)
           
 
Methods inherited from class org.codehaus.wadi.core.motable.AbstractMotable
copy, getAbstractMotableMemento, getName, getReadWriteLock, init, initExisting, isNew, mote, newMemento, newReadWriteLock, onDeserialization, rehydrate, restore
 
Methods inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable
copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, onSerialization, 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.core.eviction.Evictable
copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, setLastAccessedTime, setMaxInactiveInterval
 

Constructor Detail

BasicStoreMotable

public BasicStoreMotable(Store store)
Method Detail

getBodyAsByteArray

public byte[] getBodyAsByteArray()
                          throws java.lang.Exception
Throws:
java.lang.Exception

setBodyAsByteArray

public void setBodyAsByteArray(byte[] body)
                        throws java.lang.Exception
Throws:
java.lang.Exception

destroy

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

destroyForMotion

public void destroyForMotion()
                      throws java.lang.Exception
Overrides:
destroyForMotion in class AbstractMotable
Throws:
java.lang.Exception

writeExternal

public void writeExternal(java.io.ObjectOutput oo)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class SimpleEvictable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput oi)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class SimpleEvictable
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 2008. All Rights Reserved.