org.apache.jetspeed.aggregator.impl
Class PortletTrackingManagerImpl

java.lang.Object
  extended by org.apache.jetspeed.aggregator.impl.PortletTrackingManagerImpl
All Implemented Interfaces:
org.apache.jetspeed.aggregator.PortletTrackingManager

public class PortletTrackingManagerImpl
extends Object
implements org.apache.jetspeed.aggregator.PortletTrackingManager

Tracks out of service status for portlets

Version:
$Id: $
Author:
David Sean Taylor

Field Summary
protected  long defaultPortletTimeout
          when rendering a portlet, the default timeout period in milliseconds setting to zero will disable (no timeout) the timeout
protected  Map outOfService
           
protected  int outOfServiceLimit
          Out of service limit, if a portlet entity times out past its limit (or default limit) n consecutive times, it is taken out of service
protected  org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor
           
 
Constructor Summary
PortletTrackingManagerImpl(org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, long defaultPortletTimeout, int outOfServiceLimit)
           
 
Method Summary
 boolean exceededTimeout(long renderTime, org.apache.pluto.om.window.PortletWindow window)
           
 long getDefaultPortletTimeout()
           
 int getOutOfServiceLimit()
           
 List getOutOfServiceList()
           
 List getOutOfServiceList(String fullPortletName)
           
 void incrementRenderTimeoutCount(org.apache.pluto.om.window.PortletWindow window)
           
 boolean isOutOfService(org.apache.pluto.om.window.PortletWindow window)
           
 void putIntoService(List fullPortletNames)
           
 void putIntoService(org.apache.pluto.om.window.PortletWindow window)
           
 void setExpiration(org.apache.pluto.om.window.PortletWindow window, long expiration)
           
 void success(org.apache.pluto.om.window.PortletWindow window)
           
 void takeOutOfService(org.apache.pluto.om.window.PortletWindow window)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outOfService

protected Map outOfService

defaultPortletTimeout

protected long defaultPortletTimeout
when rendering a portlet, the default timeout period in milliseconds setting to zero will disable (no timeout) the timeout


outOfServiceLimit

protected int outOfServiceLimit
Out of service limit, if a portlet entity times out past its limit (or default limit) n consecutive times, it is taken out of service


windowAccessor

protected org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor
Constructor Detail

PortletTrackingManagerImpl

public PortletTrackingManagerImpl(org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
                                  long defaultPortletTimeout,
                                  int outOfServiceLimit)
Method Detail

getDefaultPortletTimeout

public long getDefaultPortletTimeout()
Specified by:
getDefaultPortletTimeout in interface org.apache.jetspeed.aggregator.PortletTrackingManager

exceededTimeout

public boolean exceededTimeout(long renderTime,
                               org.apache.pluto.om.window.PortletWindow window)
Specified by:
exceededTimeout in interface org.apache.jetspeed.aggregator.PortletTrackingManager

isOutOfService

public boolean isOutOfService(org.apache.pluto.om.window.PortletWindow window)
Specified by:
isOutOfService in interface org.apache.jetspeed.aggregator.PortletTrackingManager

getOutOfServiceLimit

public int getOutOfServiceLimit()
Specified by:
getOutOfServiceLimit in interface org.apache.jetspeed.aggregator.PortletTrackingManager

incrementRenderTimeoutCount

public void incrementRenderTimeoutCount(org.apache.pluto.om.window.PortletWindow window)
Specified by:
incrementRenderTimeoutCount in interface org.apache.jetspeed.aggregator.PortletTrackingManager

success

public void success(org.apache.pluto.om.window.PortletWindow window)
Specified by:
success in interface org.apache.jetspeed.aggregator.PortletTrackingManager

setExpiration

public void setExpiration(org.apache.pluto.om.window.PortletWindow window,
                          long expiration)
Specified by:
setExpiration in interface org.apache.jetspeed.aggregator.PortletTrackingManager

takeOutOfService

public void takeOutOfService(org.apache.pluto.om.window.PortletWindow window)
Specified by:
takeOutOfService in interface org.apache.jetspeed.aggregator.PortletTrackingManager

putIntoService

public void putIntoService(org.apache.pluto.om.window.PortletWindow window)
Specified by:
putIntoService in interface org.apache.jetspeed.aggregator.PortletTrackingManager

putIntoService

public void putIntoService(List fullPortletNames)
Specified by:
putIntoService in interface org.apache.jetspeed.aggregator.PortletTrackingManager

getOutOfServiceList

public List getOutOfServiceList(String fullPortletName)
Specified by:
getOutOfServiceList in interface org.apache.jetspeed.aggregator.PortletTrackingManager

getOutOfServiceList

public List getOutOfServiceList()
Specified by:
getOutOfServiceList in interface org.apache.jetspeed.aggregator.PortletTrackingManager


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.