net.sf.jameleon
Interface Storable

All Known Implementing Classes:
AbstractAssertTag, AbstractSqlTag, AssertEqualsTag, AssertNotNullTag, AssertNullTag, AssertTrueTag, ExecuteJameleonScriptTag, FunctionDocTag, FunctionTag, JUnitFunctionTag, JUnitSessionTag, SessionTag, SqlUpdateTag, WaitTag

public interface Storable

Used to represent an object that needs to store it's state. This is intended to store the state that an function point was in at a certain moment.


Method Summary
 String getStoreToFileName(int event)
          Gets the filename to store the state of the application to.
 void store(String filename, int event)
          Stores the current state of the object to a given File.
 

Method Detail

store

void store(String filename,
           int event)
           throws IOException
Stores the current state of the object to a given File.

Parameters:
filename - - the name of file to store the state to
event - - The even that occured (error, state change ...)
Throws:
IOException - - If the state of the object could not be stored in File f.

getStoreToFileName

String getStoreToFileName(int event)
Gets the filename to store the state of the application to. The default implementation is to simply use timestamps. If this is not the desired behavior, override this method.

Parameters:
event - - the StateStorer Event
Returns:
the appropriate filename which starts with ERROR- if the StateStorer Event was an Error


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.