|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ContentDispatcherCtrl |
dispatcher
|
protected int |
expirationCache
|
protected ContentFragment |
fragment
|
protected static org.apache.commons.logging.Log |
log
Commons logging |
protected PortletContent |
portletContent
|
protected org.apache.pluto.om.portlet.PortletDefinition |
portletDefinition
|
protected PortletTrackingManager |
portletTracking
|
protected PortletRenderer |
renderer
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected RequestContext |
requestContext
|
protected javax.servlet.http.HttpServletResponse |
response
|
protected long |
startTimeMillis
|
protected PortalStatistics |
statistics
|
protected long |
timeout
|
protected org.apache.pluto.om.window.PortletWindow |
window
WorkerMonitor used to flush the queue |
protected java.util.Map |
workerAttributes
|
| Constructor Summary | |
|---|---|
RenderingJobImpl(org.apache.pluto.PortletContainer container,
PortletRenderer renderer,
org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
PortletContent portletContent,
ContentFragment fragment,
ContentDispatcherCtrl dispatcher,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestContext requestContext,
org.apache.pluto.om.window.PortletWindow window,
PortalStatistics statistics,
int expirationCache,
boolean contentIsCached)
|
|
RenderingJobImpl(org.apache.pluto.PortletContainer container,
PortletRenderer renderer,
org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
PortletContent portletContent,
ContentFragment fragment,
ContentDispatcherCtrl dispatcher,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestContext requestContext,
org.apache.pluto.om.window.PortletWindow window,
PortalStatistics statistics,
int expirationCache,
boolean contentIsCached,
java.util.Map workerAttrs)
|
|
| Method Summary | |
|---|---|
void |
execute()
execute |
ContentDispatcherCtrl |
getDispatcher()
|
int |
getExpirationCache()
|
ContentFragment |
getFragment()
|
PortletContent |
getPortletContent()
getPortletContent |
org.apache.pluto.om.portlet.PortletDefinition |
getPortletDefinition()
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
RequestContext |
getRequestContext()
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
long |
getTimeout()
Gets portlet timout in milliseconds. |
org.apache.pluto.om.window.PortletWindow |
getWindow()
getWindow |
java.lang.Object |
getWorkerAttribute(java.lang.String name)
|
boolean |
isContentCached()
|
boolean |
isTimeout()
Checks if the portlet rendering is timeout |
void |
removeWorkerAttribute(java.lang.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(java.lang.String name,
java.lang.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 PortletRenderer renderer
protected ContentFragment fragment
protected RequestContext requestContext
protected PortletTrackingManager portletTracking
protected org.apache.pluto.om.portlet.PortletDefinition portletDefinition
protected PortletContent portletContent
protected PortalStatistics statistics
protected ContentDispatcherCtrl dispatcher
protected boolean contentIsCached
protected int expirationCache
protected java.util.Map workerAttributes
protected long startTimeMillis
protected long timeout
| Constructor Detail |
|---|
public RenderingJobImpl(org.apache.pluto.PortletContainer container,
PortletRenderer renderer,
org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
PortletContent portletContent,
ContentFragment fragment,
ContentDispatcherCtrl dispatcher,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestContext requestContext,
org.apache.pluto.om.window.PortletWindow window,
PortalStatistics statistics,
int expirationCache,
boolean contentIsCached)
public RenderingJobImpl(org.apache.pluto.PortletContainer container,
PortletRenderer renderer,
org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
PortletContent portletContent,
ContentFragment fragment,
ContentDispatcherCtrl dispatcher,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestContext requestContext,
org.apache.pluto.om.window.PortletWindow window,
PortalStatistics statistics,
int expirationCache,
boolean contentIsCached,
java.util.Map workerAttrs)
| Method Detail |
|---|
public void setTimeout(long timeout)
setTimeout in interface RenderingJobpublic long getTimeout()
getTimeout in interface RenderingJobpublic boolean isTimeout()
isTimeout in interface RenderingJobpublic void run()
run in interface java.lang.Runnablepublic void execute()
execute
execute in interface RenderingJobpublic org.apache.pluto.om.window.PortletWindow getWindow()
getWindow
getWindow in interface RenderingJobpublic PortletContent getPortletContent()
getPortletContent
getPortletContent in interface RenderingJobpublic org.apache.pluto.om.portlet.PortletDefinition getPortletDefinition()
getPortletDefinition in interface RenderingJobpublic javax.servlet.http.HttpServletRequest getRequest()
getRequest in interface RenderingJobpublic javax.servlet.http.HttpServletResponse getResponse()
getResponse in interface RenderingJobpublic ContentFragment getFragment()
getFragment in interface RenderingJobpublic RequestContext getRequestContext()
getRequestContext in interface RenderingJobpublic int getExpirationCache()
getExpirationCache in interface RenderingJobpublic ContentDispatcherCtrl getDispatcher()
getDispatcher in interface RenderingJobpublic boolean isContentCached()
isContentCached in interface RenderingJob
public void setWorkerAttribute(java.lang.String name,
java.lang.Object value)
setWorkerAttribute in interface RenderingJobpublic java.lang.Object getWorkerAttribute(java.lang.String name)
getWorkerAttribute in interface RenderingJobpublic void removeWorkerAttribute(java.lang.String name)
removeWorkerAttribute in interface RenderingJob
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||