public class ModularDistributionIndexer extends java.lang.Object implements NodeIndexer, SlcNames
SLC_, SLC_ADDRESS, SLC_AGENTS, SLC_AGGREGATED_STATUS, SLC_ARTIFACT_CLASSIFIER, SLC_ARTIFACT_EXTENSION, SLC_ARTIFACT_ID, SLC_ARTIFACT_VERSION, SLC_AS_STRING, SLC_BUNDLE_VERSION, SLC_CATEGORY, SLC_COMPLETED, SLC_ERROR_MESSAGE, SLC_EXECUTION_SPECS, SLC_FLOW, SLC_GROUP_BASE_ID, SLC_GROUP_ID, SLC_IS_CONSTANT, SLC_IS_HIDDEN, SLC_IS_IMMUTABLE, SLC_ISSUES, SLC_LOG, SLC_MAJOR, SLC_MANIFEST, SLC_MESSAGE, SLC_METADATA, SLC_MICRO, SLC_MINOR, SLC_MODULES, SLC_MY_RESULTS, SLC_NAME, SLC_OPTIONAL, SLC_ORIGIN, SLC_PROCESSES, SLC_PROXY, SLC_QUALIFIER, SLC_RESULT_PART, SLC_RESULTS, SLC_RPM_ARCH, SLC_RPM_ARCHIVE_SIZE, SLC_RPM_RELEASE, SLC_RPM_VERSION, SLC_SPEC, SLC_STARTED, SLC_STATUS, SLC_SUCCESS, SLC_SUMMARY, SLC_SYMBOLIC_NAME, SLC_SYSTEM, SLC_TAG, SLC_TEST_CASE, SLC_TEST_CASE_TYPE, SLC_TIMESTAMP, SLC_TYPE, SLC_URL, SLC_USES, SLC_UUID, SLC_VALUE, SLC_VERSION, SLC_VM| Constructor and Description |
|---|
ModularDistributionIndexer() |
| Modifier and Type | Method and Description |
|---|---|
void |
index(Node fileNode)
Adds the metadata.
|
void |
setSeparator(java.lang.String modulesUrlSeparator)
Separator used to parse the tabular file, default is ","
|
java.lang.Boolean |
support(java.lang.String path)
Whether the node at this path will be supported.
|
public java.lang.Boolean support(java.lang.String path)
NodeIndexerEventListener before the node is loaded, and would apply on
information contained in the path / file name: file extension, base path,
etc. If the node needs to be loaded, the recommended approach is to
return true here and wait for index to be called, possibly
returning without processing if the node should not be indexed. While
not strictly a requirement, this avoids to open sessions in the indexer,
centralizing such tasks in the caller.support in interface NodeIndexerpublic void index(Node fileNode)
NodeIndexerindex in interface NodeIndexerpublic void setSeparator(java.lang.String modulesUrlSeparator)
Copyright © 2007–2020. All rights reserved.