com.trendmicro.grid.acl.ds.jpa
Interface StorageOptions


public interface StorageOptions

Contains options that influence the way the storage handlers behave.


Field Summary
static long KEEP_OVERSIZED_SOURCE_LINK_INFO_INTERVAL
          Is the amount of time to keep the information on a package that more than MAX_SOURCE_LINK_FETCH_SIZE source links were returned when creating the fast lookup buffer.
static int MAX_SOURCE_LINK_FETCH_SIZE
          Specifies the maximum amount of source links to fetch in a fast lookup buffer when checking the requirement of linking single package members against sources.
static String META_FILENAME_DEFAULT_KEYS
          Specifies the default list of meta data keys that are tried to extract the filename of a package inside the source metadata element.
static List<String> META_FILENAME_KEYS
          Is the value that holds the actual search list of meta-data keys.
static String PATH_DELIMITERS
          Defines the characters to consider as path delimiters when checking whether files were renamed, removed or added.
static int TIME_UPDATES_ACCURACY
          Defines a delta time window in MS that is used to update timestamps with a single update command instead of an expensive per-member basis.
static boolean USE_GENERIC_FALLBACK_WITH_FULLTEXT_INDEX
          Specifies whether the generic tag query provider is used when the fulltext index is queried for very small time ranges that are below the resolution of the FT index or when the FT index is currently build and more than one day of content is pending to get indexed.
static boolean USE_LOCAL_FULLTEXT_INDEX
          Controls whether hibernate search is enabled to index tag fields locally using an Apache Lucene backend for all tag matching queries.
 

Field Detail

META_FILENAME_DEFAULT_KEYS

static final String META_FILENAME_DEFAULT_KEYS
Specifies the default list of meta data keys that are tried to extract the filename of a package inside the source metadata element. The information is used to link packages against the package "root".

See Also:
Constant Field Values

META_FILENAME_KEYS

static final List<String> META_FILENAME_KEYS
Is the value that holds the actual search list of meta-data keys. (Can be customized via "-Dgacl.source.filename.metakeys=filenameKey1 filenameKey2 ...")


MAX_SOURCE_LINK_FETCH_SIZE

static final int MAX_SOURCE_LINK_FETCH_SIZE
Specifies the maximum amount of source links to fetch in a fast lookup buffer when checking the requirement of linking single package members against sources.

Packages with more members like this will use slower single-member checks.


KEEP_OVERSIZED_SOURCE_LINK_INFO_INTERVAL

static final long KEEP_OVERSIZED_SOURCE_LINK_INFO_INTERVAL
Is the amount of time to keep the information on a package that more than MAX_SOURCE_LINK_FETCH_SIZE source links were returned when creating the fast lookup buffer.


TIME_UPDATES_ACCURACY

static final int TIME_UPDATES_ACCURACY
Defines a delta time window in MS that is used to update timestamps with a single update command instead of an expensive per-member basis. (If timestamps of all members are within this window, the timestamps are set as if all members contained the timestamp of the first entry)


PATH_DELIMITERS

static final String PATH_DELIMITERS
Defines the characters to consider as path delimiters when checking whether files were renamed, removed or added. Setting this value to an empty string causes the system to disable handling paths. If the same file is then contained more than once in a single package it will be logged as invalid input data.


USE_LOCAL_FULLTEXT_INDEX

static final boolean USE_LOCAL_FULLTEXT_INDEX
Controls whether hibernate search is enabled to index tag fields locally using an Apache Lucene backend for all tag matching queries.

When enabled, all "getMatching**" methods do not produce a DB hit.


USE_GENERIC_FALLBACK_WITH_FULLTEXT_INDEX

static final boolean USE_GENERIC_FALLBACK_WITH_FULLTEXT_INDEX
Specifies whether the generic tag query provider is used when the fulltext index is queried for very small time ranges that are below the resolution of the FT index or when the FT index is currently build and more than one day of content is pending to get indexed.

Time range queries are below the resolution when they are smaller than a DAY for FIRST_SEEN, LAST_REQUESTED and are below an hour for LAST_PROCESSED.

When enabled, all "getMatching**" methods query tags using un-indexed filtering on a date range when the specified range was below the limit mentioned above.