|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.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 |
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 |
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. |
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. |
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 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. |
Methods inherited from class atg.endeca.eacclient.ScriptRunner |
---|
calculateEndpointAddress, doStartService, exec, externalExec, getControlLocator, getControlPort, 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 java.lang.String CLASS_VERSION
Constructor Detail |
---|
public ScriptIndexable()
Method Detail |
---|
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 getEACHost()
ScriptRunner
getEACHost
in class ScriptRunner
public int getEACPort()
ScriptRunner
getEACPort
in class ScriptRunner
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 Indexable
pTask
- 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 Indexable
pTask
- 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 pScriptName) throws atg.repository.search.indexing.IndexingException
true
if script succeeded,
that is no essential errors occurred during script run.
pScriptName
- 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 Indexable
pTask
- 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.IndexingException
public boolean mayNeedCleanup()
mayNeedCleanup
in interface Indexable
public boolean cancel(IndexingTask pTask, boolean pBaseline) throws atg.repository.search.indexing.IndexingException
Indexable
cancel
in interface Indexable
pBaseline
- true if this is a baseline/full index, false if
this is an incremental/partial index.
atg.repository.search.indexing.IndexingException
public boolean isSupportsStatusCounts()
isSupportsStatusCounts
in interface Indexable
public java.util.Set<java.lang.String> getIndexingOutputConfigPaths()
getIndexingOutputConfigPaths
in interface Indexable
public boolean isForceToBaseline()
isForceToBaseline
in interface Indexable
true
if the job should be forced to baseline.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |