wt.inf.container
Class AllContainersMigrator
java.lang.Object
wt.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AllContainersMigrator
public AllContainersMigrator()
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