public interface PortletTrackingManager
This service is used primarily by the rendering engine to determine whether to take a portlet window out of service to avoid long 'timeouts' when rendering a portlet. The service also provides functions to put the portlet windows back into service.
Modifier and Type | Method and Description |
---|---|
boolean |
exceededTimeout(long renderTime,
PortletWindow window)
Given a render time, ask if the given portlet window has exceeded the timeout threshold
|
long |
getDefaultPortletTimeout()
Returns the default timeout threshold for rendering a portlet in milliseconds.
|
int |
getOutOfServiceLimit()
The number of times a portlet window can timeout before it is taken out of service
|
List<PortletTrackingInfo> |
getOutOfServiceList()
Retrieve the list of out of service portlet windows for the entire system
|
PortletTrackingInfo |
getOutOfServiceList(String fullPortletName)
Retrieve the list of out of service portlet windows for a given portlet, or an empty
PortletTrackingInfo
if none are found |
void |
incrementRenderTimeoutCount(PortletWindow window)
Increment the render timeout count for a given portlet window
|
boolean |
isEnabled()
Returns true if this service is enabled, otherwise false.
|
boolean |
isOutOfService(PortletWindow window)
Ask if a given window is out of service or not
|
void |
putIntoService(List<String> fullPortletNames)
Given a list of full portlet names in format of portletApp::portletName, put all windows back
into service for each of the portlet names given.
|
void |
putIntoService(PortletWindow window)
Put a given portlet window that is out of service back into service and re-enable rendering of the window
|
void |
setExpiration(PortletWindow window,
long expiration)
Set a specific caching expiration timeout for a given portlet window
|
void |
success(PortletWindow window)
Reset this portlet window as successfully rendered, clearing all expiration counts
|
void |
takeOutOfService(PortletWindow window)
Take a given portlet window out of service.
|
long getDefaultPortletTimeout()
getOutOfServiceLimit
int getOutOfServiceLimit()
boolean isOutOfService(PortletWindow window)
window
- this window will be checkedboolean exceededTimeout(long renderTime, PortletWindow window)
renderTime
- the time it took to render a portletwindow
- this window will be checkedvoid incrementRenderTimeoutCount(PortletWindow window)
window
- the portlet window to be incrementedvoid setExpiration(PortletWindow window, long expiration)
window
- this window will have a new expiration timeout valueexpiration
- the value of the timeout expirationvoid success(PortletWindow window)
window
- this window will have its expiration status resetvoid takeOutOfService(PortletWindow window)
window
- this window will be taken out of servicevoid putIntoService(PortletWindow window)
window
- this window will be put back into servicevoid putIntoService(List<String> fullPortletNames)
fullPortletNames
- a list of strings of full portlet names in format portletApp::portletNamePortletTrackingInfo getOutOfServiceList(String fullPortletName)
PortletTrackingInfo
if none are foundfullPortletName
- a full portlet names in format portletApp::portletNamePortletTrackingInfo
which includes a list of window idsList<PortletTrackingInfo> getOutOfServiceList()
PortletTrackingInfo
boolean isEnabled()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.