Class SolrDatabaseResyncCli
- java.lang.Object
-
- org.dspace.scripts.DSpaceRunnable<SolrDatabaseResyncCliScriptConfiguration>
-
- org.dspace.app.solrdatabaseresync.SolrDatabaseResyncCli
-
- All Implemented Interfaces:
Runnable
public class SolrDatabaseResyncCli extends DSpaceRunnable<SolrDatabaseResyncCliScriptConfiguration>
DSpaceRunnableimplementation to update solr items with "predb" status to either: - Delete them from solr if they're not present in the database - Remove their status if they're present in the database
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.dspace.scripts.DSpaceRunnable
DSpaceRunnable.StepResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringTIME_UNTIL_REINDEX_PROPERTY-
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine
-
-
Constructor Summary
Constructors Constructor Description SolrDatabaseResyncCli()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrDatabaseResyncCliScriptConfigurationgetScriptConfiguration()This method will return the Configuration that the implementing DSpaceRunnable usesvoidinternalRun()This method has to be included in every script and this will be the main execution block for the script that'll contain all the logic neededstatic voidrunScheduled()voidsetup()This method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variables-
Methods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
-
-
-
Field Detail
-
TIME_UNTIL_REINDEX_PROPERTY
public static final String TIME_UNTIL_REINDEX_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScriptConfiguration
public SolrDatabaseResyncCliScriptConfiguration getScriptConfiguration()
Description copied from class:DSpaceRunnableThis method will return the Configuration that the implementing DSpaceRunnable uses- Specified by:
getScriptConfigurationin classDSpaceRunnable<SolrDatabaseResyncCliScriptConfiguration>- Returns:
- The
ScriptConfigurationthat this implementing DspaceRunnable uses
-
setup
public void setup() throws org.apache.commons.cli.ParseExceptionDescription copied from class:DSpaceRunnableThis method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variables- Specified by:
setupin classDSpaceRunnable<SolrDatabaseResyncCliScriptConfiguration>- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-
internalRun
public void internalRun() throws ExceptionDescription copied from class:DSpaceRunnableThis method has to be included in every script and this will be the main execution block for the script that'll contain all the logic needed- Specified by:
internalRunin classDSpaceRunnable<SolrDatabaseResyncCliScriptConfiguration>- Throws:
Exception- If something goes wrong
-
-