|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.ChannelRenderer
@Deprecated public class ChannelRenderer
This class takes care of initiating channel rendering thread, monitoring it for timeouts, retreiving cache, and returning rendering results and status.
| Nested Class Summary | |
|---|---|
protected static interface |
ChannelRenderer.IWorker
Deprecated. |
protected class |
ChannelRenderer.Worker
Deprecated. |
| Field Summary | |
|---|---|
static boolean |
CACHE_CHANNELS
Deprecated. |
protected Map<IChannel,Map<String,ChannelCacheEntry>> |
cacheTables
Deprecated. |
protected boolean |
ccacheable
Deprecated. |
protected IChannel |
channel
Deprecated. |
protected Map<String,ChannelCacheEntry> |
channelCache
Deprecated. |
protected boolean |
donerendering
Deprecated. |
protected Object |
groupRenderingKey
Deprecated. |
protected SetCheckInSemaphore |
groupSemaphore
Deprecated. |
protected org.apache.commons.logging.Log |
log
Deprecated. |
protected ChannelRuntimeData |
rd
Deprecated. |
protected boolean |
rendering
Deprecated. |
static String[] |
renderingStatus
Deprecated. |
protected long |
startTime
Deprecated. |
static String |
SYSTEM_WIDE_CHANNEL_CACHE
Deprecated. |
protected long |
timeOut
Deprecated. |
protected static ExecutorService |
tp
Deprecated. |
protected ChannelRenderer.IWorker |
worker
Deprecated. |
protected Thread |
workerThread
Deprecated. |
protected Future<?> |
workTracker
Deprecated. |
| Fields inherited from interface org.jasig.portal.IChannelRenderer |
|---|
RENDERING_FAILED, RENDERING_SUCCESSFUL, RENDERING_TIMED_OUT |
| Constructor Summary | |
|---|---|
ChannelRenderer(IChannel chan,
ChannelRuntimeData runtimeData,
ExecutorService threadPool)
Deprecated. Default contstructor |
|
ChannelRenderer(IChannel chan,
ChannelRuntimeData runtimeData,
ExecutorService threadPool,
SetCheckInSemaphore groupSemaphore,
Object groupRenderingKey)
Deprecated. Default contstructor |
|
| Method Summary | |
|---|---|
void |
cancelRendering()
Deprecated. Cancels the rendering job. |
int |
completeRendering()
Deprecated. Requests renderer to complete rendering and return status. |
SAX2BufferImpl |
getBuffer()
Deprecated. Returns rendered buffer. |
String |
getChannelTitle()
Deprecated. Get the dynamic channel title, if any, for the channel that this renderer has rendered. |
String |
getCharacters()
Deprecated. Returns a character output of a channel rendering. |
long |
getRenderTime()
Deprecated. This may only be called after IChannelRenderer.outputRendering(ContentHandler) is called. |
boolean |
isRenderedFromCache()
Deprecated. This may only be called after IChannelRenderer.outputRendering(ContentHandler) is called. |
void |
kill()
Deprecated. This method suppose to take care of the runaway rendering threads. |
int |
outputRendering(ContentHandler out)
Deprecated. Output channel rendering through a given ContentHandler. |
void |
setCacheTables(Map<IChannel,Map<String,ChannelCacheEntry>> cacheTables)
Deprecated. Sets the cache tables for the channel renderer. |
void |
setCharacterCache(String chars)
Deprecated. Sets a character cache for the current rendering. |
void |
setCharacterCacheable(boolean setting)
Deprecated. Informs IChannelRenderer that a character caching scheme will be used for the current rendering. |
void |
setTimeout(long value)
Deprecated. Set the timeout value |
void |
startRendering()
Deprecated. Start rendering of the channel in a new thread. |
void |
startRendering(SetCheckInSemaphore groupSemaphore,
Object groupRenderingKey)
Deprecated. Starts the channel rendering process. |
String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
public static final boolean CACHE_CHANNELS
public static final String[] renderingStatus
public static final String SYSTEM_WIDE_CHANNEL_CACHE
protected final IChannel channel
protected final ChannelRuntimeData rd
protected Map<String,ChannelCacheEntry> channelCache
protected Map<IChannel,Map<String,ChannelCacheEntry>> cacheTables
protected boolean rendering
protected boolean donerendering
protected Thread workerThread
protected ChannelRenderer.IWorker worker
protected Future<?> workTracker
protected long startTime
protected long timeOut
protected boolean ccacheable
protected static ExecutorService tp
protected SetCheckInSemaphore groupSemaphore
protected Object groupRenderingKey
| Constructor Detail |
|---|
public ChannelRenderer(IChannel chan,
ChannelRuntimeData runtimeData,
ExecutorService threadPool)
chan - an IChannel valueruntimeData - a ChannelRuntimeData valuethreadPool - a ThreadPool value
public ChannelRenderer(IChannel chan,
ChannelRuntimeData runtimeData,
ExecutorService threadPool,
SetCheckInSemaphore groupSemaphore,
Object groupRenderingKey)
chan - an IChannel valueruntimeData - a ChannelRuntimeData valuethreadPool - a ThreadPool valuegroupSemaphore - a SetCheckInSemaphore for the current rendering groupgroupRenderingKey - an Object to be used for check ins with the group semaphore| Method Detail |
|---|
public void setTimeout(long value)
setTimeout in interface IChannelRenderervalue - timeout in millisecondspublic void setCacheTables(Map<IChannel,Map<String,ChannelCacheEntry>> cacheTables)
IChannelRendererSets the cache tables for the channel renderer.
setCacheTables in interface IChannelRenderercacheTables - cache table for the channel rendererpublic void setCharacterCacheable(boolean setting)
setCharacterCacheable in interface IChannelRenderersetting - a boolean valuepublic void startRendering()
startRendering in interface IChannelRenderer
public void startRendering(SetCheckInSemaphore groupSemaphore,
Object groupRenderingKey)
IChannelRendererStarts the channel rendering process.
startRendering in interface IChannelRenderergroupSemaphore - semaphore to use for a group of channelsgroupRenderingKey - group rendering keypublic void cancelRendering()
Cancels the rendering job.
cancelRendering in interface IChannelRenderer
public int outputRendering(ContentHandler out)
throws Throwable
outputRendering in interface IChannelRendererout - Document Handler that will receive information rendered by the channel.
Throwable - if an error occurs
public int completeRendering()
throws Throwable
completeRendering in interface IChannelRendererint return status value
Throwablepublic SAX2BufferImpl getBuffer()
getBuffer in interface IChannelRendererpublic String getCharacters()
getCharacters in interface IChannelRendererpublic long getRenderTime()
IChannelRendererIChannelRenderer.outputRendering(ContentHandler) is called.
getRenderTime in interface IChannelRendererpublic boolean isRenderedFromCache()
IChannelRendererIChannelRenderer.outputRendering(ContentHandler) is called.
isRenderedFromCache in interface IChannelRendererpublic void setCharacterCache(String chars)
setCharacterCache in interface IChannelRendererchars - character cache for the channel rendererpublic void kill()
kill in interface IChannelRendererpublic String toString()
toString in class Objectpublic String getChannelTitle()
IDynamicChannelTitleRenderer
getChannelTitle in interface IDynamicChannelTitleRenderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||