com.plumtree.portalpages.admin.ptutilities.migrationutility
Class PTMigrationTask

java.lang.Object
  extended by com.plumtree.portalpages.admin.ptutilities.migrationutility.PTMigrationTask
Direct Known Subclasses:
PTExportMigrationTask, PTImportMigrationTask

public class PTMigrationTask
extends java.lang.Object

This class is what calls the actual server migration code. It runs in a separate thread to prevent UI timeouts.

Author:
jennifersu

Field Summary
static int CANCEL
           
static int CREATED
           
static int DONE
           
static int FAILED
           
static int INPROGRESS
           
protected  int m_intStatus
           
protected  IPTMigrationManager m_MigrationManager
           
 
Constructor Summary
PTMigrationTask(IPTMigrationManager _MigrationManager)
          Sets status to CREATED.
 
Method Summary
 void Cancel()
          Sets the status for the migration task to CANCEL
 XPArrayList GetMWSMessages()
           
 int GetStatus()
          Gets the current status of the migration task
 void run()
          Performs the actual migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATED

public static final int CREATED
See Also:
Constant Field Values

INPROGRESS

public static final int INPROGRESS
See Also:
Constant Field Values

DONE

public static final int DONE
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values

CANCEL

public static final int CANCEL
See Also:
Constant Field Values

m_intStatus

protected int m_intStatus

m_MigrationManager

protected IPTMigrationManager m_MigrationManager
Constructor Detail

PTMigrationTask

public PTMigrationTask(IPTMigrationManager _MigrationManager)
Sets status to CREATED.

Method Detail

run

public void run()
Performs the actual migration.


GetStatus

public int GetStatus()
Gets the current status of the migration task

Returns:
int

Cancel

public void Cancel()
Sets the status for the migration task to CANCEL


GetMWSMessages

public XPArrayList GetMWSMessages()
Returns:
XPArrayList of String each of which represents the return value from an MWS ExportPackage call with info about the MWS. If no MWS's are present or none responded, returns an empty list.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.