|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.endeca.eacclient.ScriptRunner
atg.endeca.eacclient.ScriptIndexable
public class ScriptIndexable
An Indexable implementation that is implemented by running Endeca EAC scripts for baseline and partial updates.
Created: November 28 2011
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string from source code control system. |
| Fields inherited from class atg.endeca.eacclient.ScriptRunner |
|---|
DEFAULT_SLEEP_TIME, SERVICE_SUFFIX |
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
|---|
DEFAULT_LOG_TRACE_STATUS |
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
| Constructor Summary | |
|---|---|
ScriptIndexable()
|
|
| Method Summary | |
|---|---|
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 |
getApplicationNameFormatString()
Returns property applicationIdFormatString. |
protected java.lang.String |
getAppNameForLocale(java.util.Locale pLocal)
The the application name to use for the specified locale. |
java.lang.String |
getBaselineScriptName()
Returns property baselineScriptName. |
java.lang.String |
getDefaultLanguageForRecordStores()
Returns property mDefaultLanguageForRecordStores. |
protected java.util.Locale[] |
getEffeciveLocales()
Get the effective locales. |
java.lang.String |
getEndecaBaseApplicationName()
|
java.util.Set<java.lang.String> |
getIndexingOutputConfigPaths()
Return the set of IndexingOutputConfigs associated with this Indexable. |
java.util.Locale[] |
getLocales()
Returns property locales. |
java.lang.String |
getPartialScriptName()
Returns property partialScriptName. |
boolean |
isEnabled()
Returns property enabled. |
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. |
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. |
protected boolean |
runUpdateScript(java.lang.String pStrScriptName)
Runs the update script with the given name. |
void |
setApplicationNameFormatString(java.lang.String pApplicationNameFormatString)
Sets property applicationIdFormatString. |
void |
setBaselineScriptName(java.lang.String pBaselineScriptName)
Sets property baselineScriptName. |
void |
setDefaultLanguageForRecordStores(java.lang.String pDefaultLanguageForRecordStores)
Sets property mDefaultLanguageForRecordStores. |
void |
setEnabled(boolean pEnabled)
Sets property enabled. |
void |
setEndecaBaseApplicationName(java.lang.String pEndecaBaseApplicationName)
|
void |
setLocales(java.util.Locale[] pLocales)
Sets property locales. |
void |
setPartialScriptName(java.lang.String pPartialScriptName)
Sets property partialScriptName. |
| Methods inherited from class atg.endeca.eacclient.ScriptRunner |
|---|
calculateEndpointAddress, doStartService, exec, externalExec, getControlLocator, getControlPort, getEACHost, getEACPort, getEACScriptTimeout, getServiceProtocol, getSleepTime, setEACHost, setEACPort, setEACScriptTimeout, setServiceProtocol, setSleepTime, startScript, stopScript, testExec, testStartWait, waitForScript |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public ScriptIndexable()
| Method Detail |
|---|
public void setEnabled(boolean pEnabled)
public boolean isEnabled()
public void setEndecaBaseApplicationName(java.lang.String pEndecaBaseApplicationName)
public java.lang.String getEndecaBaseApplicationName()
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 void setLocales(java.util.Locale[] pLocales)
public java.util.Locale[] getLocales()
public void setDefaultLanguageForRecordStores(java.lang.String pDefaultLanguageForRecordStores)
public java.lang.String getDefaultLanguageForRecordStores()
protected java.lang.String getAppNameForLocale(java.util.Locale pLocal)
pLocale - the locale to generate the EAC application name (app ID)
public void setApplicationNameFormatString(java.lang.String pApplicationNameFormatString)
public java.lang.String getApplicationNameFormatString()
public atg.repository.search.indexing.BulkLoaderResults performBaselineUpdate(IndexingTask pTask)
throws atg.repository.search.indexing.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 not
atg.repository.search.indexing.IndexingException
public atg.repository.search.indexing.LoaderResults performPartialUpdate(IndexingTask pTask)
throws atg.repository.search.indexing.IndexingException
performPartialUpdate in interface IndexablepTask - the indexing task invoking the update. May be null
if called via another means.
atg.repository.search.indexing.IndexingException
protected boolean runUpdateScript(java.lang.String pStrScriptName)
throws atg.repository.search.indexing.IndexingException
true if script succeeded,
that is no essential errors occurred during script run.
pStrScriptName - script name to run
true if script succeeded.
atg.repository.search.indexing.IndexingException
protected boolean checkResult(StateType pResult,
java.lang.String pAppName,
java.lang.String pScriptName)
public boolean isNeededForIncremental()
isNeededForIncremental in interface Indexable
public void postIndexingCleanup(IndexingTask pTask,
boolean pSuccess,
atg.repository.search.indexing.LoaderResults pResults)
throws atg.repository.search.indexing.IndexingException
Indexable
postIndexingCleanup 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.
atg.repository.search.indexing.IndexingExceptionpublic boolean mayNeedCleanup()
mayNeedCleanup in interface Indexable
public boolean cancel(IndexingTask pTask,
boolean pBaseline)
throws atg.repository.search.indexing.IndexingException
Indexable
cancel in interface IndexablepBaseline - true if this is a baseline/full index, false if
this is an incremental/partial index.
atg.repository.search.indexing.IndexingExceptionpublic boolean isSupportsStatusCounts()
isSupportsStatusCounts in interface Indexablepublic java.util.Set<java.lang.String> getIndexingOutputConfigPaths()
getIndexingOutputConfigPaths in interface Indexableprotected java.util.Locale[] getEffeciveLocales()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||