|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.index.BulkIndexHelper
This is a helper class for running the BulkIndexTool. It provides utility
methods to the BulkIndexTool that do the following operations.
1. Building the BulkIndex list of object
2. Starting and Stopping the bulk indexing queue
3. Scheduling the bulk indexing queue
4. Getting the status of the queue
5. Implementing the actual indexing process
Supported API: false
Extendable: false
Field Summary | |
private static String |
BULK_INDEX_QUEUE
|
private static boolean |
bulkIndexExit
|
private static PrintWriter |
bulkIndexLog
|
private static ProcessingQueue |
bulkIndexQueue
|
private static boolean |
bulkLog
|
private static String |
CLASSNAME
|
private static SimpleDateFormat |
DATE_FORMAT
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
FC_RESOURCE
|
private static String |
FILE_SEPARATOR
|
private static String |
INDEX_QUEUE_NAME
|
private static String |
LINE_SEPARATOR
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static WTPrincipal |
principal
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) static boolean |
SERVER
|
private static StandardIndexPolicyManager |
sipm
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
BulkIndexHelper()
|
Method Summary | |
protected static void |
_deleteBulkIndexingTable(boolean processed)
Deletes the bulk indexing entries. |
protected static String |
_getBulkStatus()
Gets the status of bulk indexing and will output to the log Supported API: false |
protected static int |
_getIteratedObjectsForIndexing(boolean filterIndexedObjects,
boolean filterPolicyRules)
Gets the list of iterated objects that are requested for bulk indexing Supported API: false |
protected static int |
_getNonIteratedObjectsForIndexing(boolean filterIndexedObjects,
boolean filterPolicyRules)
Gets the list of non-iterated objects that are requested for bulk indexing Supported API: false |
protected static void |
_reBulkIndexFailed()
This method will reset the failed entries and re-index them Supported API: false |
protected static void |
_scheduleBulkQueue(Timestamp startTime,
Timestamp stopTime,
long runs,
long periodicity)
This task will schedule the bulk indexing task to execute at a predetermined time Supported API: false |
protected static void |
_startBulkQueue()
Starts the Bulk Indexing Queue Supported API: false |
protected static void |
_stopBulkQueue()
Stops the bulk indexing queue and sets a flag to discontinuing index process Supported API: false |
static int |
buildBulkObjectList(boolean filterPolicyRules,
boolean filterIndexedObjects)
Supported API: false |
static void |
bulkIndexTask()
This is the task that controls the Bulk Indexing Process Supported API: false |
static void |
deleteBulkIndexingTable(boolean processed)
Deletes the bulk indexing entries. |
static String |
getBulkStatus()
Gets the status of bulk indexing and will output to the log Supported API: false |
static int |
getIteratedObjectsForIndexing(boolean filterIndexedObjects,
boolean filterPolicyRules)
Gets the list of iterated objects that are requested for bulk indexing Supported API: false |
static int |
getNonIteratedObjectsForIndexing(boolean filterIndexedObjects,
boolean filterPolicyRules)
Gets the list of non-iterated objects that are requested for bulk indexing Supported API: false |
private static String |
getObjectInfo(Persistable object)
|
private static WTPrincipal |
getPrincipal()
|
private static Object |
getPropValueObj(ClassInfo objInfo,
String propStr,
Persistable object)
|
static boolean |
hasBulkList()
Supported API: false |
private static void |
LogBulkIndex(String message,
boolean tee,
boolean override)
|
private static void |
LogBulkIndex(Throwable t)
|
protected void |
queueRequest(WTCollection targetCollection)
Add a set of objects onto the queue for background processing by rware Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(BulkIndexHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
static void |
reBulkIndexFailed()
This method will reset the failed entries and re-index them Supported API: false |
static void |
scheduleBulkQueue(Timestamp startTime,
Timestamp stopTime,
long runs,
long periodicity)
This task will schedule the bulk indexing task to execute at a predetermined time Supported API: false |
static void |
startBulkQueue()
Starts the Bulk Indexing Queue Supported API: false |
static void |
stopBulkQueue()
Stops the bulk indexing queue and sets a flag to discontinuing index process Supported API: false |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final boolean SERVER
private static final String FC_RESOURCE
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static String LINE_SEPARATOR
private static String FILE_SEPARATOR
private static SimpleDateFormat DATE_FORMAT
private static boolean bulkLog
private static StandardIndexPolicyManager sipm
private static PrintWriter bulkIndexLog
private static final String INDEX_QUEUE_NAME
private static final String BULK_INDEX_QUEUE
private static ProcessingQueue bulkIndexQueue
private static WTPrincipal principal
private static boolean bulkIndexExit
Constructor Detail |
public BulkIndexHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(BulkIndexHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static int getIteratedObjectsForIndexing(boolean filterIndexedObjects, boolean filterPolicyRules) throws WTException
filterIndexedObjects
- Indicates if the objects that have been indexed already should be filteredfilterPolicyRules
- Indicates if the objects should be filtered based on current indexing policy rules
WTException
protected static int _getIteratedObjectsForIndexing(boolean filterIndexedObjects, boolean filterPolicyRules) throws WTException
filterIndexedObjects
- Indicates if the objects that have been indexed already should be filteredfilterPolicyRules
- Indicates if the objects should be filtered based on current indexing policy rules
WTException
public static int getNonIteratedObjectsForIndexing(boolean filterIndexedObjects, boolean filterPolicyRules) throws WTException
filterIndexedObjects
- Indicates if the objects that have been indexed already should be filteredfilterPolicyRules
- Indicates if the objects should be filtered based on current indexing policy rules
WTException
protected static int _getNonIteratedObjectsForIndexing(boolean filterIndexedObjects, boolean filterPolicyRules) throws WTException
filterIndexedObjects
- Indicates if the objects that have been indexed already should be filteredfilterPolicyRules
- Indicates if the objects should be filtered based on current indexing policy rules
WTException
public static void startBulkQueue() throws WTException
WTException
protected static void _startBulkQueue() throws WTException
WTException
public static void stopBulkQueue() throws WTException
WTException
protected static void _stopBulkQueue() throws WTException
WTException
public static void bulkIndexTask() throws WTException
WTException
public static void reBulkIndexFailed() throws WTException
WTException
protected static void _reBulkIndexFailed() throws WTException
WTException
public static void scheduleBulkQueue(Timestamp startTime, Timestamp stopTime, long runs, long periodicity) throws WTException
startTime
- When bulk indexing should startstopTime
- runs
- periodicity
-
WTException
protected static void _scheduleBulkQueue(Timestamp startTime, Timestamp stopTime, long runs, long periodicity) throws WTException
startTime
- When bulk indexing should startstopTime
- runs
- periodicity
-
WTException
public static String getBulkStatus() throws WTException
WTException
protected static String _getBulkStatus() throws WTException
WTException
public static void deleteBulkIndexingTable(boolean processed) throws WTException
processed
- If true, this method will only delete the processed entries from the table
WTException
protected static void _deleteBulkIndexingTable(boolean processed) throws WTException
processed
- If true, this method will only delete the processed entries from the table
WTException
public static int buildBulkObjectList(boolean filterPolicyRules, boolean filterIndexedObjects) throws WTException
filterPolicyRules
- If this parameter is set to true, then the BulkIndexEntryList table will only include objects that have current Indexing Policy Rules set for them.filterIndexedObjects
- If this is set to true, then the BulkIndexEntryList table will only include those objects that have not yet been indexed.
WTException
public static boolean hasBulkList() throws WTException
WTException
private static void LogBulkIndex(String message, boolean tee, boolean override)
private static void LogBulkIndex(Throwable t)
private static WTPrincipal getPrincipal() throws IndexPolicyException, WTException
IndexPolicyException
WTException
private static String getObjectInfo(Persistable object) throws WTIntrospectionException, WTException
WTIntrospectionException
WTException
private static Object getPropValueObj(ClassInfo objInfo, String propStr, Persistable object) throws WTException
WTException
protected void queueRequest(WTCollection targetCollection) throws WTException, IOException, WTPropertyVetoException
targetCollection
-
WTException
IOException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |