org.lexgrid.loader.listener
Class CleanupListener

java.lang.Object
  extended by org.lexgrid.loader.logging.LoggingBean
      extended by org.lexgrid.loader.listener.CleanupListener
All Implemented Interfaces:
org.springframework.batch.core.JobExecutionListener

public class CleanupListener
extends LoggingBean
implements org.springframework.batch.core.JobExecutionListener

The listener interface for receiving cleanup events. The class that is interested in processing a cleanup event implements this interface, and the object created with that class is registered with a component using the component's addCleanupListener method. When the cleanup event occurs, that object's appropriate method is invoked.

See Also:
CleanupEvent

Constructor Summary
CleanupListener()
           
 
Method Summary
 void afterJob(org.springframework.batch.core.JobExecution jobExecution)
           
 void beforeJob(org.springframework.batch.core.JobExecution arg0)
           
 CodingSchemeIdSetter getCodingSchemeIdSetter()
           
protected  java.lang.String getCurrentCodingSchemeUri()
          Gets the current coding scheme uri.
protected  java.lang.String getCurrentCodingSchemeVersion()
          Gets the current coding scheme version.
 java.lang.String getDatabase()
           
 JobRepositoryManager getJobRepositoryManager()
          Gets the job repository manager.
 java.lang.String getPrefix()
           
 StagingManager getStagingManager()
          Gets the staging manager.
 void setCodingSchemeIdSetter(CodingSchemeIdSetter codingSchemeIdSetter)
           
 void setDatabase(java.lang.String database)
           
 void setJobRepositoryManager(JobRepositoryManager jobRepositoryManager)
          Sets the job repository manager.
 void setPrefix(java.lang.String prefix)
           
 void setStagingManager(StagingManager stagingManager)
          Sets the staging manager.
 
Methods inherited from class org.lexgrid.loader.logging.LoggingBean
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanupListener

public CleanupListener()
Method Detail

afterJob

public void afterJob(org.springframework.batch.core.JobExecution jobExecution)
Specified by:
afterJob in interface org.springframework.batch.core.JobExecutionListener

beforeJob

public void beforeJob(org.springframework.batch.core.JobExecution arg0)
Specified by:
beforeJob in interface org.springframework.batch.core.JobExecutionListener

getStagingManager

public StagingManager getStagingManager()
Gets the staging manager.

Returns:
the staging manager

setStagingManager

public void setStagingManager(StagingManager stagingManager)
Sets the staging manager.

Parameters:
stagingManager - the new staging manager

getCurrentCodingSchemeUri

protected java.lang.String getCurrentCodingSchemeUri()
                                              throws java.lang.Exception
Gets the current coding scheme uri.

Returns:
the current coding scheme uri
Throws:
java.lang.Exception - the exception

getCurrentCodingSchemeVersion

protected java.lang.String getCurrentCodingSchemeVersion()
                                                  throws java.lang.Exception
Gets the current coding scheme version.

Returns:
the current coding scheme version
Throws:
java.lang.Exception - the exception

getJobRepositoryManager

public JobRepositoryManager getJobRepositoryManager()
Gets the job repository manager.

Returns:
the job repository manager

setJobRepositoryManager

public void setJobRepositoryManager(JobRepositoryManager jobRepositoryManager)
Sets the job repository manager.

Parameters:
jobRepositoryManager - the new job repository manager

getPrefix

public java.lang.String getPrefix()

setPrefix

public void setPrefix(java.lang.String prefix)

getDatabase

public java.lang.String getDatabase()

setDatabase

public void setDatabase(java.lang.String database)

getCodingSchemeIdSetter

public CodingSchemeIdSetter getCodingSchemeIdSetter()

setCodingSchemeIdSetter

public void setCodingSchemeIdSetter(CodingSchemeIdSetter codingSchemeIdSetter)

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.