|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kim.service.impl.IdentityArchiveServiceImpl
public class IdentityArchiveServiceImpl
This is the default implementation for the IdentityArchiveService.
IdentityArchiveService| Nested Class Summary | |
|---|---|
private static class |
IdentityArchiveServiceImpl.CallableAdapter
Adapts a Callable to be Runnable |
private class |
IdentityArchiveServiceImpl.EntityArchiveWriter
store the person to the database, but do this an alternate thread to prevent transaction issues since this service is non-transactional |
private static class |
IdentityArchiveServiceImpl.PreLogCallableWrapper<A>
decorator for a callable to log a message before it is executed |
private static class |
IdentityArchiveServiceImpl.WriteQueue
A class encapsulating a ConcurrentLinkedQueue and an AtomicInteger to
provide fast offer(enqueue)/poll(dequeue) and size checking. |
| Field Summary | |
|---|---|
private BusinessObjectService |
businessObjectService
|
private static String |
EXEC_INTERVAL_SECS
|
private int |
executionIntervalSeconds
|
private static org.apache.log4j.Logger |
LOG
|
private static String |
MAX_WRITE_QUEUE_SIZE
|
private Runnable |
maxQueueSizeExceededWriter
|
private int |
maxWriteQueueSize
|
private Runnable |
scheduledWriter
|
private Runnable |
shutdownWriter
|
private IdentityArchiveServiceImpl.WriteQueue |
writeQueue
|
private IdentityArchiveServiceImpl.EntityArchiveWriter |
writer
|
| Constructor Summary | |
|---|---|
IdentityArchiveServiceImpl(Integer executionIntervalSeconds,
Integer maxWriteQueueSize)
|
|
| Method Summary | |
|---|---|
protected BusinessObjectService |
getBusinessObjectService()
|
KimEntityDefaultInfo |
getEntityDefaultInfoFromArchive(String entityId)
Gets the KimEntityDefaultInfo from the cache for the given entityId. |
KimEntityDefaultInfo |
getEntityDefaultInfoFromArchiveByPrincipalId(String principalId)
Gets the KimEntityDefaultInfo from the cache for the entity with the given principalId. |
KimEntityDefaultInfo |
getEntityDefaultInfoFromArchiveByPrincipalName(String principalName)
Gets the KimEntityDefaultInfo from the cache for the entity with the given principalName. |
void |
onEvent(RiceConfigEvent event)
On events: |
void |
saveDefaultInfoToArchive(KimEntityDefaultInfo entity)
Saves the given KimEntityDefaultInfo into the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger LOG
private BusinessObjectService businessObjectService
private static final String EXEC_INTERVAL_SECS
private static final String MAX_WRITE_QUEUE_SIZE
private int executionIntervalSeconds
private int maxWriteQueueSize
private final IdentityArchiveServiceImpl.WriteQueue writeQueue
private final IdentityArchiveServiceImpl.EntityArchiveWriter writer
private final Runnable maxQueueSizeExceededWriter
private final Runnable scheduledWriter
private final Runnable shutdownWriter
| Constructor Detail |
|---|
public IdentityArchiveServiceImpl(Integer executionIntervalSeconds,
Integer maxWriteQueueSize)
| Method Detail |
|---|
protected BusinessObjectService getBusinessObjectService()
public KimEntityDefaultInfo getEntityDefaultInfoFromArchive(String entityId)
IdentityArchiveService
getEntityDefaultInfoFromArchive in interface IdentityArchiveServicepublic KimEntityDefaultInfo getEntityDefaultInfoFromArchiveByPrincipalId(String principalId)
IdentityArchiveService
getEntityDefaultInfoFromArchiveByPrincipalId in interface IdentityArchiveServicepublic KimEntityDefaultInfo getEntityDefaultInfoFromArchiveByPrincipalName(String principalName)
IdentityArchiveService
getEntityDefaultInfoFromArchiveByPrincipalName in interface IdentityArchiveServicepublic void saveDefaultInfoToArchive(KimEntityDefaultInfo entity)
IdentityArchiveService
saveDefaultInfoToArchive in interface IdentityArchiveServicepublic void onEvent(RiceConfigEvent event)
AfterStartEvent: schedule the writer on the KSB scheduled pool
BeforeStopEvent: flush the write queue immediately
onEvent in interface RiceConfigEventListenerApplicationListener.onApplicationEvent(org.springframework.context.ApplicationEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||