Class FlexibleAggrTable
java.lang.Object
com.nt.udc.flexibleAggregator.table.FlexibleAggrTable
Currently, this class handles the table functionality of an
aggregator. For the most part, this is just table-related
procedures, including access, initialization and shutdown.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFlexibleAggrTable
(LoggerIfc loggerObj, Factory factory, File scratchDir, int compressionThresholdSetting, String fileNameExtender) Creates the base object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the tableboolean
Returns whether a given key exists in the tableget
(FlexibleNARKey key) Don't use this.boolean
keys()
Keys of all the records in the tablevoid
open()
Opens the table.void
put
(FlexibleNARKey key, NAR record) Puts a NAR into the table, according to the given key.remove
(FlexibleNARKey key) Removes a NAR from the table, and returns the element at the key.Clone of remove(), but with delayed NAR Parsing.void
shutdown()
Shuts down this object.
-
Field Details
-
tableName
-
-
Constructor Details
-
Method Details
-
open
public void open()Opens the table. -
close
public void close()Closes the table -
shutdown
public void shutdown()Shuts down this object. -
put
Puts a NAR into the table, according to the given key.- Parameters:
key
- Index of the NARrecord
- NAR to put
-
remove
Removes a NAR from the table, and returns the element at the key. Only ever allow returning the NAR when removing, otherwise there would be synchronization issues.- Parameters:
key
- Key of the record to remove- Returns:
- record at the key, or NULL if no record was found
-
removeDelayedNARParsing
Clone of remove(), but with delayed NAR Parsing. For use by MTAggrDispatcher ONLY.- Parameters:
key
-- Returns:
- whatever FileHashTable.removeDelayedNARParsing returns, either NAR or ByteArray object.
-
keys
Keys of all the records in the table- Returns:
- Enumeration of all the keys
-
containsKey
Returns whether a given key exists in the table- Parameters:
key
- Key to look for- Returns:
- true, if the key exists
-
isHealthy
public boolean isHealthy() -
get
Don't use this. Use remove*() for normal operations. (MXAggrDispatcher is using this for specific data recovery scenerios...)- Parameters:
key
-- Returns:
-