wt.inf.container
Class AllContainersMigrator

java.lang.Object
  extended bywt.inf.container.AllContainersMigrator
All Implemented Interfaces:
RemoteAccess

public final class AllContainersMigrator
extends Object
implements RemoteAccess

Completes the migration of all containers using the WTContainerCreator.migrate API. The container migrators are coded to work safely with a container that is already partially created. What this means is that they will only create something for a container if it doesn't already have one.

The AllContainersMigrator will only migrate a container if its publicParentDomainReference is currently null. The expectation is that the migrate method on the container creator will be the only way this attribute will be set. There is nothing to guarantee another migrator isn't setting this other than communication and coordination.


Field Summary
private static String CLASSIC_SELECTOR
           
private static ExchangeContainer exchange
           
private static int PAGE_SIZE
           
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
AllContainersMigrator()
           
 
Method Summary
private static WTContainer migrate(WTContainer container, String selector)
           
private static void migrateApplicationContainers()
           
private static void migrateApplicationContainers(QueryResult qr)
           
private static void migrateExchangeContainer()
           
private static void migrateOrgContainers()
           
static boolean runMigration()
          Run the migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static final boolean VERBOSE

RESOURCE

private static final String RESOURCE

PAGE_SIZE

private static final int PAGE_SIZE
See Also:
Constant Field Values

CLASSIC_SELECTOR

private static final String CLASSIC_SELECTOR
See Also:
Constant Field Values

exchange

private static ExchangeContainer exchange
Constructor Detail

AllContainersMigrator

public AllContainersMigrator()
Method Detail

runMigration

public static boolean runMigration()
                            throws WTException
Run the migration.

Returns:
true if the migration completed successfully
Throws:
WTException

migrateExchangeContainer

private static void migrateExchangeContainer()
                                      throws WTException
Throws:
WTException

migrateOrgContainers

private static void migrateOrgContainers()
                                  throws WTException
Throws:
WTException

migrateApplicationContainers

private static void migrateApplicationContainers()
                                          throws WTException
Throws:
WTException

migrateApplicationContainers

private static void migrateApplicationContainers(QueryResult qr)
                                          throws WTException
Throws:
WTException

migrate

private static WTContainer migrate(WTContainer container,
                                   String selector)
                            throws WTException
Throws:
WTException