public class IdentityArchiveServiceImpl extends Object implements IdentityArchiveService, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
IdentityArchiveService| Modifier and Type | Class and Description |
|---|---|
protected static class |
IdentityArchiveServiceImpl.CallableAdapter
Adapts a Callable to be Runnable
|
protected 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
|
protected static class |
IdentityArchiveServiceImpl.PreLogCallableWrapper<A>
decorator for a callable to log a message before it is executed
|
protected static class |
IdentityArchiveServiceImpl.WriteQueue
A class encapsulating a
ConcurrentLinkedQueue and an AtomicInteger to
provide fast offer(enqueue)/poll(dequeue) and size checking. |
| Modifier and Type | Field and Description |
|---|---|
protected DataObjectService |
dataObjectService |
protected static String |
EXEC_INTERVAL_SECS |
protected static int |
EXECUTION_INTERVAL_SECONDS_DEFAULT |
protected ConfigurationService |
kualiConfigurationService |
protected static String |
MAX_WRITE_QUEUE_SIZE |
protected static int |
MAX_WRITE_QUEUE_SIZE_DEFAULT |
protected Runnable |
maxQueueSizeExceededWriter |
protected Runnable |
scheduledWriter |
protected Runnable |
shutdownWriter |
protected org.springframework.transaction.PlatformTransactionManager |
transactionManager |
protected IdentityArchiveServiceImpl.WriteQueue |
writeQueue |
protected IdentityArchiveServiceImpl.EntityArchiveWriter |
writer |
| Constructor and Description |
|---|
IdentityArchiveServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
schedule the writer on the KSB scheduled pool.
|
void |
destroy()
flush the write queue immediately.
|
void |
flushToArchive() |
org.kuali.rice.kim.api.identity.entity.EntityDefault |
getEntityDefaultFromArchive(String entityId) |
org.kuali.rice.kim.api.identity.entity.EntityDefault |
getEntityDefaultFromArchiveByEmployeeId(String employeeId) |
org.kuali.rice.kim.api.identity.entity.EntityDefault |
getEntityDefaultFromArchiveByPrincipalId(String principalId) |
org.kuali.rice.kim.api.identity.entity.EntityDefault |
getEntityDefaultFromArchiveByPrincipalName(String principalName) |
protected int |
getExecutionIntervalSeconds() |
protected int |
getMaxWriteQueueSize() |
void |
saveEntityDefaultToArchive(org.kuali.rice.kim.api.identity.entity.EntityDefault entity) |
void |
setDataObjectService(DataObjectService dataObjectService) |
void |
setKualiConfigurationService(ConfigurationService kualiConfigurationService) |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager txMgr) |
protected DataObjectService dataObjectService
protected ConfigurationService kualiConfigurationService
protected org.springframework.transaction.PlatformTransactionManager transactionManager
protected static final String EXEC_INTERVAL_SECS
protected static final String MAX_WRITE_QUEUE_SIZE
protected static final int EXECUTION_INTERVAL_SECONDS_DEFAULT
protected static final int MAX_WRITE_QUEUE_SIZE_DEFAULT
protected final IdentityArchiveServiceImpl.WriteQueue writeQueue
protected final IdentityArchiveServiceImpl.EntityArchiveWriter writer
protected final Runnable maxQueueSizeExceededWriter
protected final Runnable scheduledWriter
protected final Runnable shutdownWriter
public IdentityArchiveServiceImpl()
protected int getExecutionIntervalSeconds()
protected int getMaxWriteQueueSize()
public org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultFromArchive(String entityId)
getEntityDefaultFromArchive in interface IdentityArchiveServicepublic org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultFromArchiveByPrincipalId(String principalId)
getEntityDefaultFromArchiveByPrincipalId in interface IdentityArchiveServicepublic org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultFromArchiveByPrincipalName(String principalName)
getEntityDefaultFromArchiveByPrincipalName in interface IdentityArchiveServicepublic org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultFromArchiveByEmployeeId(String employeeId)
getEntityDefaultFromArchiveByEmployeeId in interface IdentityArchiveServicepublic void saveEntityDefaultToArchive(org.kuali.rice.kim.api.identity.entity.EntityDefault entity)
saveEntityDefaultToArchive in interface IdentityArchiveServicepublic void flushToArchive()
flushToArchive in interface IdentityArchiveServicepublic void setKualiConfigurationService(ConfigurationService kualiConfigurationService)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager txMgr)
public void afterPropertiesSet() throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy() throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void setDataObjectService(DataObjectService dataObjectService)
dataObjectService - the dataObjectService to setCopyright © 2005–2016 The Kuali Foundation. All rights reserved.