public class ApplicationPresentationPoolManager extends AbstractPresentationPoolManager implements UpdatePresentationObject.Callback
PresentationPool
objectsGenericService.StartCommand, GenericService.StopCommand
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
LOGGER
Deprecated.
|
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
ApplicationPresentationPoolManager()
Deprecated.
Creates an instance of PresentationPoolManager.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createPresentationObject(int sectionId)
Deprecated.
|
void |
drop(int sectionId)
Deprecated.
Will drop the PresentationPool specified from the cache.
|
void |
expirePool(int sectionId)
Deprecated.
PresentationPoolCache uses sectionId as key.
|
PresentationPool |
getActivePool(int sectionId)
Deprecated.
Gets the active PresentationPool.
|
PresentationPool |
getActivePool(int sectionId,
boolean stale)
Deprecated.
Gets the active PresentationPool.
|
Cache<Integer,PresentationPool> |
getCache()
Deprecated.
|
boolean |
getExpireCache()
Deprecated.
|
ObjectLoader |
getObjectLoader()
Deprecated.
|
PresentationPool |
getPool(int poolId,
int publicationId)
Deprecated.
gets the PresentationPool specified by poolId and publicationId
|
PresentationPool |
getPool(int poolId,
int publicationId,
Date now)
Deprecated.
gets the PresentationPool specified by poolId and publicationId
|
PresentationPool |
getPoolFromCache(int sectionId)
Deprecated.
Gets a PresentationPool from the cache.
|
int |
getPrefetchPresentationArticles()
Deprecated.
|
int |
getTimeout()
Deprecated.
|
UpdatePresentationObject |
getUpdater()
Deprecated.
|
void |
refresh(int pObjectId)
Deprecated.
|
void |
setCache(Cache<Integer,PresentationPool> pCache)
Deprecated.
sets the cache to be used by the PresentationPoolManager
|
void |
setExpireCache(boolean pExpireCache)
Deprecated.
|
void |
setObjectLoader(ObjectLoader pObjectLoader)
Deprecated.
|
void |
setPrefetchPresentationArticles(int newValue)
Deprecated.
|
void |
setPresentationLoader(PresentationLoader pPresentationLoader)
Deprecated.
|
void |
setTimeout(int pTimeout)
Deprecated.
|
void |
setUpdater(UpdatePresentationObject upo)
Deprecated.
sets the updater to be used in this manager
|
protected void |
startService()
Deprecated.
Is called by
AbstractNurseryService.doStartService() when the NurseryService is being started. |
protected void |
stopService()
Deprecated.
Is called by
AbstractNurseryService.doStopService() when the service is being shut down. |
addDecoratorFactory, decorate, getDecoratorFactories, getLayoutGroupDefinitionManager, setLayoutGroupDefinitionManager
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public ApplicationPresentationPoolManager()
public void setExpireCache(boolean pExpireCache)
public boolean getExpireCache()
public void setTimeout(int pTimeout)
public int getTimeout()
public ObjectLoader getObjectLoader()
public void setObjectLoader(ObjectLoader pObjectLoader)
protected void startService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStartService()
when the NurseryService
is being started. Exceptions thrown by this
method are logged by AbstractNurseryService.doStartService()
.
Subclasses must implement this method to bootstrap the service.
startService
in class AbstractPresentationPoolManager
Exception
- when something goes wrong during startup. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalArgumentException
- when the configuration of the service
is invalid. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalStateException
- when this service is in the wrong state for startup. Used to signal to AbstractNurseryService.doStartService()
that it is OK to try to starting
this service
later. GenericService.isServiceRunning()
returns false
and GenericService.isServiceIdle()
returns true
.AbstractNurseryService.doStartService()
protected void stopService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStopService()
when the service
is being shut down. Exceptions thrown by this
method are logged by AbstractNurseryService.doStopService()
.
Subclasses must implement this method to shut down the service.
stopService
in class AbstractNurseryService
IllegalStateException
- when this service is in the wrong state for shutdown. Used to signal to AbstractNurseryService.doStopService()
that
it is OK to try stopping this service
later. GenericService.isServiceRunning()
returns true
.Exception
- when something goes during shutdown. GenericService.isServiceRunning()
returns false
and
GenericService.isServiceShutdownFailed()
returns true
.AbstractNurseryService.doStopService()
public void setPrefetchPresentationArticles(int newValue)
public int getPrefetchPresentationArticles()
public void setUpdater(UpdatePresentationObject upo)
upo
- the new updater to be usedpublic UpdatePresentationObject getUpdater()
public Cache<Integer,PresentationPool> getCache()
public void setCache(Cache<Integer,PresentationPool> pCache)
pCache
- the cache to usepublic PresentationPool getPoolFromCache(int sectionId)
sectionId
- id of the section we will get the cache active
PresentationPoolpublic PresentationPool getPool(int poolId, int publicationId)
getPool
in interface PresentationPoolManager
poolId
- id of the requested poolpublicationId
- id of the publication to the requested poolpublic PresentationPool getPool(int poolId, int publicationId, Date now)
poolId
- id of the requested poolpublicationId
- id of the publication to the requested poolpublic PresentationPool getActivePool(int sectionId)
getActivePool
in interface PresentationPoolManager
sectionId
- the id of the section we will get the cache active
PresentationPoolpublic PresentationPool getActivePool(int sectionId, boolean stale)
getActivePool
in interface PresentationPoolManager
sectionId
- the id of the section we will get the cache active
PresentationPoolprotected void createPresentationObject(int sectionId)
public void expirePool(int sectionId)
sectionId
- the key used in the cachepublic void drop(int sectionId)
expirePool(int sectionId)
.sectionId
- the key used in the cachepublic void refresh(int pObjectId)
refresh
in interface UpdatePresentationObject.Callback
public void setPresentationLoader(PresentationLoader pPresentationLoader)
© 1998- 2021 Escenic AS