com.filenet.wcm.toolkit.server.base
Class ControllerUtilities.WindowIDManager

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.base.ControllerUtilities.WindowIDManager
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
com.filenet.wcm.toolkit.server.base.ControllerUtilities

protected static class ControllerUtilities.WindowIDManager
extends java.lang.Object
implements java.io.Serializable

WindowIDManager takes care of aging out window ID's that have not been accessed for longer than a defined timeout limit.

See Also:
Serialized Form

Field Summary
protected  java.lang.String baseURL
           
protected  long checkInterval
           
protected  long lastCheck
           
protected  java.util.HashMap map
           
protected  long sequenceNumber
           
protected  long timeout
           
 
Constructor Summary
protected ControllerUtilities.WindowIDManager(WcmController controller, long checkInterval, long timeout)
           
 
Method Summary
protected  void expire(WcmDataStore dataStore)
           
protected  WindowID getNextStackedWindowID()
           
protected  void initialize(WindowID windowId, WcmDataStore dataStore, boolean isStacked)
           
protected  void release(ControllerUtilities.WindowIdInfo widi, WcmDataStore dataStore, long timeout)
           
protected  void release(java.lang.String windowId, WcmDataStore dataStore, long timeout)
           
protected  void setWindowSignedIn(WindowID oWindowId, boolean isSignedIn)
           
protected  ControllerUtilities.WindowIdInfo update(java.lang.String windowId, WcmDataStore dataStore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checkInterval

protected long checkInterval

timeout

protected long timeout

lastCheck

protected long lastCheck

baseURL

protected java.lang.String baseURL

sequenceNumber

protected long sequenceNumber

map

protected java.util.HashMap map
Constructor Detail

ControllerUtilities.WindowIDManager

protected ControllerUtilities.WindowIDManager(WcmController controller,
                                              long checkInterval,
                                              long timeout)
Method Detail

getNextStackedWindowID

protected WindowID getNextStackedWindowID()

initialize

protected void initialize(WindowID windowId,
                          WcmDataStore dataStore,
                          boolean isStacked)
                   throws FrameworkException,
                          WcmException
Throws:
FrameworkException
WcmException

setWindowSignedIn

protected void setWindowSignedIn(WindowID oWindowId,
                                 boolean isSignedIn)

update

protected ControllerUtilities.WindowIdInfo update(java.lang.String windowId,
                                                  WcmDataStore dataStore)
                                           throws FrameworkException,
                                                  WcmException
Throws:
FrameworkException
WcmException

release

protected void release(java.lang.String windowId,
                       WcmDataStore dataStore,
                       long timeout)

release

protected void release(ControllerUtilities.WindowIdInfo widi,
                       WcmDataStore dataStore,
                       long timeout)

expire

protected void expire(WcmDataStore dataStore)
               throws WcmException
Throws:
WcmException


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.