com.plumtree.portalpages.admin.httpmemorydebugging
Class HTTPMemoryDebugModel

java.lang.Object
  extended by com.plumtree.portalpages.admin.httpmemorydebugging.HTTPMemoryDebugModel
All Implemented Interfaces:
IVarPackModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IRepostModel

public class HTTPMemoryDebugModel
extends java.lang.Object
implements IRepostModel, IVarPackModelRO

This is the Model class for the HTTPMemoryDebug AS. It replements the reload Var Pack feature.

Author:
Julie Fournier

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the activity space
 
Constructor Summary
HTTPMemoryDebugModel()
           
 
Method Summary
 void CleanupAllData()
          This method is called when an ActivitySpace is removed from the cache.
 void CleanupTempData()
          This method is called at the end of every HTTP request by the Interpreter.
 int ClearAdaptiveTagCache()
           
 void ClearCache()
          Method to clear the AS cache.
 void ClearMemory()
          Method to clear unused memory.
 void ClearMemoryAndCaches()
          Method to clear unused memory and caches.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 boolean GetAllowVarPackReload()
           
 java.lang.String GetCurrentVarPackID()
          Returns the ID of the current Var Pack being viewed by the user.
 java.lang.String GetName()
          Return the name of the MVC object.
 Redirect GetRedirectAfterFinish()
          Returns the Redirect object (this is were we need to go at the end of the Editor).
 void Init(AActivitySpace parent)
          This method initializes the model.
 void ReloadCurrentViewedVarPack()
          Method reloading the current viewed var pack.
 void ReloadDynamicLoads(IXPRequest request)
          Method to reload custom.
 void ReloadVarPack()
          Method reloading the var pack.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
Class name for the activity space

See Also:
Constant Field Values
Constructor Detail

HTTPMemoryDebugModel

public HTTPMemoryDebugModel()
Method Detail

CleanupTempData

public void CleanupTempData()
Description copied from interface: IModel
This method is called at the end of every HTTP request by the Interpreter. The Interpreter calls AActivitySpace.CleanupTempData(), which calls this method on all IModels registered using AActivitySpace.RegisterModel(). This method is intended for cleaning up temporary data that is only used for the lifetime of a single request, like DB query results.

Specified by:
CleanupTempData in interface IModel
See Also:
IModel.CleanupTempData()

CleanupAllData

public void CleanupAllData()
Description copied from interface: IModel
This method is called when an ActivitySpace is removed from the cache. The Interpreter calls AActivitySpace.CleanupAllData(), which calls this method on all IModels registered using AActivitySpace.RegisterModel(). This method is intended for releasing data stored in the server when the activity space is no longer needed, such as search objects that need to be maintained as long as the user is clicking through the search, but should be freed when the space can no longer be used. This can be used to prevent Java references to COM memory from hanging around in the long lived Java heap without cleaning up the underlying COM memory. The Java reference will still stay in the long lived heap until it gets garbage collected (which could be a while), but the COM memory should get released here. This method will not be called if an HTTPSession times out. CleanupTempData will be called before CleanupAllData.

Specified by:
CleanupAllData in interface IModel
See Also:
IModel.CleanupAllData()

GetCurrentVarPackID

public java.lang.String GetCurrentVarPackID()
Description copied from interface: IVarPackModelRO
Returns the ID of the current Var Pack being viewed by the user.

Specified by:
GetCurrentVarPackID in interface IVarPackModelRO
Returns:
String The ID of the current Var Pack being viewed by the user.
See Also:
com.plumtree.portalpages.admin.ptutilities.diagnostic.varpack.IVarPackModelRO#GetCurrentVarPackID()

GetAllowVarPackReload

public boolean GetAllowVarPackReload()
Specified by:
GetAllowVarPackReload in interface IVarPackModelRO
Returns:
See Also:
com.plumtree.portalpages.admin.ptutilities.diagnostic.varpack.IVarPackModelRO#GetAllowVarPackReload()

ReloadVarPack

public void ReloadVarPack()
Method reloading the var pack.


ClearCache

public void ClearCache()
Method to clear the AS cache.


ReloadDynamicLoads

public void ReloadDynamicLoads(IXPRequest request)
Method to reload custom.


ClearMemory

public void ClearMemory()
Method to clear unused memory.


ClearMemoryAndCaches

public void ClearMemoryAndCaches()
Method to clear unused memory and caches.


ReloadCurrentViewedVarPack

public void ReloadCurrentViewedVarPack()
Method reloading the current viewed var pack.


Create

public java.lang.Object Create()
Description copied from interface: IManagedObject
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Finish

public void Finish()
Description copied from interface: IRepostModel
Implement some code to execute when the user clicks on "Finish".

Specified by:
Finish in interface IRepostModel
See Also:
IRepostModel.Finish()

GetName

public java.lang.String GetName()
Description copied from interface: IMVCObject
Return the name of the MVC object.

Specified by:
GetName in interface IMVCObject
Returns:
the name of the object.
See Also:
IMVCObject.GetName()

GetRedirectAfterFinish

public Redirect GetRedirectAfterFinish()
Description copied from interface: IRepostModel
Returns the Redirect object (this is were we need to go at the end of the Editor).

Specified by:
GetRedirectAfterFinish in interface IRepostModel
Returns:
Redirect
See Also:
IRepostModel.GetRedirectAfterFinish()

Init

public void Init(AActivitySpace parent)
Description copied from interface: IModel
This method initializes the model. This is called automatically when AActivitySpace.RegisterModel() is called.

Specified by:
Init in interface IModel
Parameters:
parent - the parent Activity Space
See Also:
IModel.Init(AActivitySpace)

SavePage

public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
Description copied from interface: IRepostModel
Calls the right save function according to the page name passed in argument.

Specified by:
SavePage in interface IRepostModel
Returns:
int Page status for server side validation
See Also:
IRepostModel.SavePage(String, XPHashtable)

ClearAdaptiveTagCache

public int ClearAdaptiveTagCache()



Copyright 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.