|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.aggregator.impl.RenderingJobImpl
public class RenderingJobImpl
The RenderingJob is responsible for storing all necessary objets for asynchronous portlet rendering as well as implementing the rendering logic in its Runnable method.
Field Summary | |
---|---|
protected org.apache.pluto.PortletContainer |
container
|
protected boolean |
contentIsCached
|
protected org.apache.jetspeed.aggregator.ContentDispatcherCtrl |
dispatcher
|
protected int |
expirationCache
|
protected org.apache.jetspeed.om.page.ContentFragment |
fragment
|
protected static org.apache.commons.logging.Log |
log
Commons logging |
protected org.apache.jetspeed.aggregator.PortletContent |
portletContent
|
protected org.apache.pluto.om.portlet.PortletDefinition |
portletDefinition
|
protected org.apache.jetspeed.aggregator.PortletTrackingManager |
portletTracking
|
protected org.apache.jetspeed.aggregator.PortletRenderer |
renderer
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected org.apache.jetspeed.request.RequestContext |
requestContext
|
protected javax.servlet.http.HttpServletResponse |
response
|
protected long |
startTimeMillis
|
protected org.apache.jetspeed.statistics.PortalStatistics |
statistics
|
protected long |
timeout
|
protected org.apache.pluto.om.window.PortletWindow |
window
WorkerMonitor used to flush the queue |
protected Map |
workerAttributes
|
Constructor Summary | |
---|---|
RenderingJobImpl(org.apache.pluto.PortletContainer container,
org.apache.jetspeed.aggregator.PortletRenderer renderer,
org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
org.apache.jetspeed.aggregator.PortletContent portletContent,
org.apache.jetspeed.om.page.ContentFragment fragment,
org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.jetspeed.request.RequestContext requestContext,
org.apache.pluto.om.window.PortletWindow window,
org.apache.jetspeed.statistics.PortalStatistics statistics,
int expirationCache,
boolean contentIsCached)
|
|
RenderingJobImpl(org.apache.pluto.PortletContainer container,
org.apache.jetspeed.aggregator.PortletRenderer renderer,
org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
org.apache.jetspeed.aggregator.PortletContent portletContent,
org.apache.jetspeed.om.page.ContentFragment fragment,
org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.jetspeed.request.RequestContext requestContext,
org.apache.pluto.om.window.PortletWindow window,
org.apache.jetspeed.statistics.PortalStatistics statistics,
int expirationCache,
boolean contentIsCached,
Map workerAttrs)
|
Method Summary | |
---|---|
void |
execute()
execute |
org.apache.jetspeed.aggregator.ContentDispatcherCtrl |
getDispatcher()
|
int |
getExpirationCache()
|
org.apache.jetspeed.om.page.ContentFragment |
getFragment()
|
org.apache.jetspeed.aggregator.PortletContent |
getPortletContent()
getPortletContent |
org.apache.pluto.om.portlet.PortletDefinition |
getPortletDefinition()
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
org.apache.jetspeed.request.RequestContext |
getRequestContext()
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
long |
getTimeout()
Gets portlet timout in milliseconds. |
org.apache.pluto.om.window.PortletWindow |
getWindow()
getWindow |
Object |
getWorkerAttribute(String name)
|
boolean |
isContentCached()
|
boolean |
isTimeout()
Checks if the portlet rendering is timeout |
void |
removeWorkerAttribute(String name)
|
void |
run()
Checks if queue is empty, if not try to empty it by calling the WorkerMonitor. |
void |
setTimeout(long timeout)
Sets portlet timout in milliseconds. |
void |
setWorkerAttribute(String name,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
protected org.apache.pluto.om.window.PortletWindow window
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected org.apache.pluto.PortletContainer container
protected org.apache.jetspeed.aggregator.PortletRenderer renderer
protected org.apache.jetspeed.om.page.ContentFragment fragment
protected org.apache.jetspeed.request.RequestContext requestContext
protected org.apache.jetspeed.aggregator.PortletTrackingManager portletTracking
protected org.apache.pluto.om.portlet.PortletDefinition portletDefinition
protected org.apache.jetspeed.aggregator.PortletContent portletContent
protected org.apache.jetspeed.statistics.PortalStatistics statistics
protected org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher
protected boolean contentIsCached
protected int expirationCache
protected Map workerAttributes
protected long startTimeMillis
protected long timeout
Constructor Detail |
---|
public RenderingJobImpl(org.apache.pluto.PortletContainer container, org.apache.jetspeed.aggregator.PortletRenderer renderer, org.apache.pluto.om.portlet.PortletDefinition portletDefinition, org.apache.jetspeed.aggregator.PortletContent portletContent, org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.jetspeed.request.RequestContext requestContext, org.apache.pluto.om.window.PortletWindow window, org.apache.jetspeed.statistics.PortalStatistics statistics, int expirationCache, boolean contentIsCached)
public RenderingJobImpl(org.apache.pluto.PortletContainer container, org.apache.jetspeed.aggregator.PortletRenderer renderer, org.apache.pluto.om.portlet.PortletDefinition portletDefinition, org.apache.jetspeed.aggregator.PortletContent portletContent, org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.jetspeed.aggregator.ContentDispatcherCtrl dispatcher, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.jetspeed.request.RequestContext requestContext, org.apache.pluto.om.window.PortletWindow window, org.apache.jetspeed.statistics.PortalStatistics statistics, int expirationCache, boolean contentIsCached, Map workerAttrs)
Method Detail |
---|
public void setTimeout(long timeout)
setTimeout
in interface org.apache.jetspeed.aggregator.RenderingJob
public long getTimeout()
getTimeout
in interface org.apache.jetspeed.aggregator.RenderingJob
public boolean isTimeout()
isTimeout
in interface org.apache.jetspeed.aggregator.RenderingJob
public void run()
run
in interface Runnable
public void execute()
execute
execute
in interface org.apache.jetspeed.aggregator.RenderingJob
public org.apache.pluto.om.window.PortletWindow getWindow()
getWindow
getWindow
in interface org.apache.jetspeed.aggregator.RenderingJob
public org.apache.jetspeed.aggregator.PortletContent getPortletContent()
getPortletContent
getPortletContent
in interface org.apache.jetspeed.aggregator.RenderingJob
public org.apache.pluto.om.portlet.PortletDefinition getPortletDefinition()
getPortletDefinition
in interface org.apache.jetspeed.aggregator.RenderingJob
public javax.servlet.http.HttpServletRequest getRequest()
getRequest
in interface org.apache.jetspeed.aggregator.RenderingJob
public javax.servlet.http.HttpServletResponse getResponse()
getResponse
in interface org.apache.jetspeed.aggregator.RenderingJob
public org.apache.jetspeed.om.page.ContentFragment getFragment()
getFragment
in interface org.apache.jetspeed.aggregator.RenderingJob
public org.apache.jetspeed.request.RequestContext getRequestContext()
getRequestContext
in interface org.apache.jetspeed.aggregator.RenderingJob
public int getExpirationCache()
getExpirationCache
in interface org.apache.jetspeed.aggregator.RenderingJob
public org.apache.jetspeed.aggregator.ContentDispatcherCtrl getDispatcher()
getDispatcher
in interface org.apache.jetspeed.aggregator.RenderingJob
public boolean isContentCached()
isContentCached
in interface org.apache.jetspeed.aggregator.RenderingJob
public void setWorkerAttribute(String name, Object value)
setWorkerAttribute
in interface org.apache.jetspeed.aggregator.RenderingJob
public Object getWorkerAttribute(String name)
getWorkerAttribute
in interface org.apache.jetspeed.aggregator.RenderingJob
public void removeWorkerAttribute(String name)
removeWorkerAttribute
in interface org.apache.jetspeed.aggregator.RenderingJob
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |