|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.aggregator.impl.PortletTrackingManagerImpl
public class PortletTrackingManagerImpl
Tracks out of service status for portlets
| 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 java.util.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 PortletWindowAccessor |
windowAccessor
|
| Constructor Summary | |
|---|---|
PortletTrackingManagerImpl(PortletWindowAccessor windowAccessor,
long defaultPortletTimeout,
int outOfServiceLimit)
|
|
| Method Summary | |
|---|---|
boolean |
exceededTimeout(long renderTime,
org.apache.pluto.om.window.PortletWindow window)
|
long |
getDefaultPortletTimeout()
Get the default timeout for rendering a portlet in milliseconds |
int |
getOutOfServiceLimit()
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 |
java.util.List |
getOutOfServiceList()
|
java.util.List |
getOutOfServiceList(java.lang.String fullPortletName)
|
void |
incrementRenderTimeoutCount(org.apache.pluto.om.window.PortletWindow window)
|
boolean |
isOutOfService(org.apache.pluto.om.window.PortletWindow window)
|
void |
putIntoService(java.util.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 |
|---|
protected java.util.Map outOfService
protected long defaultPortletTimeout
protected int outOfServiceLimit
protected PortletWindowAccessor windowAccessor
| Constructor Detail |
|---|
public PortletTrackingManagerImpl(PortletWindowAccessor windowAccessor,
long defaultPortletTimeout,
int outOfServiceLimit)
| Method Detail |
|---|
public long getDefaultPortletTimeout()
PortletTrackingManager
getDefaultPortletTimeout in interface PortletTrackingManager
public boolean exceededTimeout(long renderTime,
org.apache.pluto.om.window.PortletWindow window)
exceededTimeout in interface PortletTrackingManagerpublic boolean isOutOfService(org.apache.pluto.om.window.PortletWindow window)
isOutOfService in interface PortletTrackingManagerpublic int getOutOfServiceLimit()
PortletTrackingManager
getOutOfServiceLimit in interface PortletTrackingManagerpublic void incrementRenderTimeoutCount(org.apache.pluto.om.window.PortletWindow window)
incrementRenderTimeoutCount in interface PortletTrackingManagerpublic void success(org.apache.pluto.om.window.PortletWindow window)
success in interface PortletTrackingManager
public void setExpiration(org.apache.pluto.om.window.PortletWindow window,
long expiration)
setExpiration in interface PortletTrackingManagerpublic void takeOutOfService(org.apache.pluto.om.window.PortletWindow window)
takeOutOfService in interface PortletTrackingManagerpublic void putIntoService(org.apache.pluto.om.window.PortletWindow window)
putIntoService in interface PortletTrackingManagerpublic void putIntoService(java.util.List fullPortletNames)
putIntoService in interface PortletTrackingManagerfullPortletNames - a list of Strings of full portlet namespublic java.util.List getOutOfServiceList(java.lang.String fullPortletName)
getOutOfServiceList in interface PortletTrackingManagerpublic java.util.List getOutOfServiceList()
getOutOfServiceList in interface PortletTrackingManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||