public class ScriptIndexable extends ScriptRunner implements Indexable
Created: November 28 2011
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
java.lang.String |
PROMOTE_CONTENT_SCRIPT_NAME
Script name for promote content.
|
DEFAULT_SLEEP_TIME, PROVISIONING_SERVICE_SUFFIX, SERVICE_SUFFIXSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
ScriptIndexable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
baselineUpdate()
Execute the EAC script to perform a baseline update.
|
boolean |
cancel(IndexingTask pTask,
boolean pBaseline)
Cancel the currently in-process performBulkLoad or
processQueuedIncrementalUpdates.
|
protected boolean |
checkResult(StateType pResult,
java.lang.String pAppName,
java.lang.String pScriptName) |
java.lang.String |
getBaselineScriptName()
Returns property baselineScriptName.
|
java.lang.String |
getEACHost()
Returns property EACHost.
|
int |
getEACPort()
Returns property EACPort.
|
IndexingApplicationConfiguration |
getIndexingApplicationConfiguration()
Returns property indexingApplicationConfiguration.
|
java.util.Set<java.lang.String> |
getIndexingOutputConfigPaths()
Return the set of IndexingOutputConfigs associated with this Indexable.
|
java.lang.String |
getPartialScriptName()
Returns property partialScriptName.
|
java.lang.String |
getReleaseUpdateLockScriptName()
Sets property releaseUpdateLockScriptName.
|
java.lang.String[] |
getScriptsForDefaultApplication()
Return the script IDs for the default application.
|
boolean |
isEnabled()
Returns property enabled.
|
boolean |
isForceToBaseline()
The method is called before starting partial indexing job for all Indexable
to allow forcing the job to baseline indexing.
|
boolean |
isNeededForIncremental()
Whether this indexable is needed for an incremental update.
|
boolean |
isSupportsStatusCounts()
Whether this object supports returning/updating status counts.
|
boolean |
mayNeedCleanup()
Whether this task may need cleanup.
|
boolean |
partialUpdate()
Execute the EAC script to perform a partial update.
|
atg.repository.search.indexing.BulkLoaderResults |
performBaselineUpdate(IndexingTask pTask)
Do a full/bulk load.
|
atg.repository.search.indexing.LoaderResults |
performPartialUpdate(IndexingTask pTask)
Do an incremental load (that is, process any Queued incremental
updates.
|
void |
postIndexingCleanup(IndexingTask pTask,
boolean pSuccess,
atg.repository.search.indexing.LoaderResults pResults)
Perform any post indexing cleanup.
|
boolean |
promoteContent()
Run the promote context script.
|
boolean |
runUpdateScript(java.lang.String pScriptName)
Runs the update script with the given name.
|
void |
setBaselineScriptName(java.lang.String pBaselineScriptName)
Sets property baselineScriptName.
|
void |
setEnabled(boolean pEnabled)
Sets property enabled.
|
void |
setIndexingApplicationConfiguration(IndexingApplicationConfiguration pIndexingApplicationConfiguration)
Sets property indexingApplicationConfiguration.
|
void |
setPartialScriptName(java.lang.String pPartialScriptName)
Sets property partialScriptName.
|
void |
setReleaseUpdateLockScriptName(java.lang.String pReleaseUpdateLockScriptName)
Returns property releaseUpdateLockScriptName.
|
calculateEndpointAddress, calculateProvisioningEndpointAddress, doStartService, exec, externalExec, getApplication, getControlLocator, getControlPort, getEACScriptTimeout, getProvisioningLocator, getProvisioningPort, getScriptIdsForApplication, getServiceProtocol, getSleepTime, setEACHost, setEACPort, setEACScriptTimeout, setServiceProtocol, setSleepTime, startScript, stopScript, testExec, testStartWait, waitForScriptaddLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
public final java.lang.String PROMOTE_CONTENT_SCRIPT_NAME
public void setEnabled(boolean pEnabled)
public boolean isEnabled()
public void setIndexingApplicationConfiguration(IndexingApplicationConfiguration pIndexingApplicationConfiguration)
@NotNull public IndexingApplicationConfiguration getIndexingApplicationConfiguration()
public void setBaselineScriptName(java.lang.String pBaselineScriptName)
public java.lang.String getBaselineScriptName()
public void setPartialScriptName(java.lang.String pPartialScriptName)
public java.lang.String getPartialScriptName()
public java.lang.String getReleaseUpdateLockScriptName()
public void setReleaseUpdateLockScriptName(java.lang.String pReleaseUpdateLockScriptName)
public java.lang.String getEACHost()
ScriptRunnergetEACHost in class ScriptRunnerpublic int getEACPort()
ScriptRunnergetEACPort in class ScriptRunnerpublic atg.repository.search.indexing.BulkLoaderResults performBaselineUpdate(IndexingTask pTask) throws IndexingException
This is called "performBulkLoad" rather than "bulkLoad" so that MultiConfigLoader could implement it.
performBaselineUpdate in interface IndexablepTask - the current indexing task. May be null if notIndexingExceptionpublic atg.repository.search.indexing.LoaderResults performPartialUpdate(IndexingTask pTask) throws IndexingException
performPartialUpdate in interface IndexablepTask - the indexing task invoking the update. May be null
if called via another means.IndexingExceptionpublic boolean runUpdateScript(java.lang.String pScriptName)
throws IndexingException
true if script succeeded,
that is no essential errors occurred during script run.pScriptName - script name to runtrue if script succeeded.IndexingExceptionprotected boolean checkResult(StateType pResult,
java.lang.String pAppName,
java.lang.String pScriptName)
public boolean isNeededForIncremental()
isNeededForIncremental in interface Indexablepublic void postIndexingCleanup(IndexingTask pTask, boolean pSuccess, atg.repository.search.indexing.LoaderResults pResults) throws IndexingException
IndexablepostIndexingCleanup in interface IndexablepTask - the current indexing task, if any.pSuccess - true if we are cleaning up from a successful index,
false otherwise.pResults - the loader results (if any) returns from
performBaselineUpdate and performPartialUpdate.IndexingExceptionpublic boolean mayNeedCleanup()
mayNeedCleanup in interface Indexablepublic boolean cancel(IndexingTask pTask, boolean pBaseline) throws IndexingException
Indexablecancel in interface IndexablepBaseline - true if this is a baseline/full index, false if
this is an incremental/partial index.IndexingExceptionpublic boolean isSupportsStatusCounts()
isSupportsStatusCounts in interface Indexablepublic java.util.Set<java.lang.String> getIndexingOutputConfigPaths()
getIndexingOutputConfigPaths in interface Indexablepublic boolean isForceToBaseline()
isForceToBaseline in interface Indexabletrue if the job should be forced to baseline.public java.lang.String[] getScriptsForDefaultApplication()
throws java.rmi.RemoteException,
javax.xml.rpc.ServiceException
java.rmi.RemoteExceptionjavax.xml.rpc.ServiceExceptionpublic boolean promoteContent()
throws IndexingException
IndexingException - if there was a communication problem
or other unexpected issue invoking promote content.public boolean baselineUpdate()
throws IndexingException
IndexingExceptionpublic boolean partialUpdate()
throws IndexingException
IndexingException