com.ptc.windchill.upgrade.blobrewrite
Class BackgroundBlobRewriter

java.lang.Object
  extended bycom.ptc.windchill.upgrade.blobrewrite.BackgroundBlobRewriter
All Implemented Interfaces:
ExecutableApp

public class BackgroundBlobRewriter
extends Object
implements ExecutableApp

Reads all instances of all concrete persistables in the model registry, rewriting any blobs or smallblobs whose contains externalizable Java object changed class schema layout when read. This occurs in a schedule queue and runs during early morning hours(in the default WTContext Locale), to reduce conflict with daytime use.

See Also:
queueRewrites()

Nested Class Summary
static class BackgroundBlobRewriter.Server
          Accepts lightweight service requests in the MethodServer and delegates the work to static methods on the containing class.
 
Field Summary
private static String CLASS_NAME
           
private static String CLASSNAME
           
private static boolean DEVELOPER_MODE
           
private static String QUEUE_REWRITE_BLOBS_SERVER_METHOD_NAME
           
private static String RESOURCE
           
private static String REWRITE_BLOBS_SERVER_METHOD_NAME
           
private static String SERVER_CLASS_NAME
           
 
Constructor Summary
BackgroundBlobRewriter()
           
 
Method Summary
 void execute(String[] args)
          

Supported API: false
static void main(String[] args)
           
static void queueRewrites()
          Call this method to queue the task of rewriting all blobs that contain evolvables that change class schema layout when read from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

private static final String CLASSNAME

DEVELOPER_MODE

private static final boolean DEVELOPER_MODE

RESOURCE

private static final String RESOURCE

CLASS_NAME

private static final String CLASS_NAME

SERVER_CLASS_NAME

private static final String SERVER_CLASS_NAME

QUEUE_REWRITE_BLOBS_SERVER_METHOD_NAME

private static final String QUEUE_REWRITE_BLOBS_SERVER_METHOD_NAME
See Also:
Constant Field Values

REWRITE_BLOBS_SERVER_METHOD_NAME

private static final String REWRITE_BLOBS_SERVER_METHOD_NAME
See Also:
Constant Field Values
Constructor Detail

BackgroundBlobRewriter

public BackgroundBlobRewriter()
Method Detail

execute

public void execute(String[] args)
Description copied from interface: ExecutableApp


Supported API: false

Specified by:
execute in interface ExecutableApp
Parameters:
args -

main

public static void main(String[] args)

queueRewrites

public static void queueRewrites()
                          throws WTException
Call this method to queue the task of rewriting all blobs that contain evolvables that change class schema layout when read from the database. This will create a schedule queue. Rewrites will occur during early morning hours. The default system Administrator will be notified via email upon task completion. Assumptions are:

Throws:
WTException - if one of the assumptions is violated