public class RepositoryUpgradeReport extends java.lang.Object implements IRepositoryUpgradeCallback
IRepositoryUpgradeCallback that builds a report
from the events.IRepositoryUpgradeCallback.UpgradeStatus| Constructor and Description |
|---|
RepositoryUpgradeReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataMigrationErrorCount(int count) |
void |
completed(boolean complete)
After the task is complete, the task should make sure to call this so as
to mark the task as complete.
|
void |
foundWorkrepositoryToProcess(java.util.List pWorkRepositories)
Will be called to provide the list of work repositories found in the master that will be updated.
|
java.lang.Throwable |
getMasterUpgradeException() |
IRepositoryUpgradeCallback.UpgradeStatus |
getMasterUpgradeStatus() |
java.lang.String |
getMessage()
This method will return the last set Message for the given task.
|
int |
getPercentage()
This method will return the percentage of the task completed.
|
java.util.Set |
getWorkRepositoryNames()
Return the Set of repository names upgraded.
|
java.lang.Throwable |
getWorkUpgradeException(java.lang.String pName) |
IRepositoryUpgradeCallback.UpgradeStatus |
getWorkUpgradeStatus(java.lang.String pName) |
boolean |
isCanceled()
If the task is canceled then calling this method will return true.
|
boolean |
isComplete()
This will return is the task is marked as complete.
|
void |
masterRepositoryUpgradeFinished(IRepositoryUpgradeCallback.UpgradeStatus pUpgradeStatus,
java.lang.Throwable pDetailedErrorForFailures)
This method will be called when master repository is finished (successfully or with errors).
|
void |
masterRepositoryUpgradeStarted()
This method will be called when master repository upgrade starts.
|
void |
setCanceled(boolean canceled)
If the task is canceled for any reason either by user or by exception or
by any other reason, this method should be called to mark that this task
is canceled.
|
void |
setMessage(java.lang.String progressText)
This method will set the Message for the give task.
|
void |
setPercentage(int percentage)
This method will set the Percentage of the Task completed.
|
void |
topologyUpgradeFinished(IRepositoryUpgradeCallback.UpgradeStatus pUpgradeStatus,
java.lang.Throwable pDetailedErrorForFailures)
This method will be called when topology is finished (successfully or with errors).
|
void |
topologyUpgradeStarted()
This method will be called when topology upgrade starts.
|
java.lang.String |
toString() |
void |
workRepositoryInterfaceToMappingFinished(java.lang.String pWorkRepositoryName,
java.util.Map pAllInterfaceMap,
java.util.Map pSuccessMap,
java.util.Map pFailMap)
Will be called when the upgrade process finishes to upgrade all interfaces to mappings in work repository.
|
void |
workRepositoryInterfaceToMappingFinished(java.lang.String pWorkRepositoryName,
java.util.Map pAllInterfaceMap,
java.util.Map pSuccessMap,
java.util.Map pFailMap,
java.util.Map pErrorsMap)
Will be called when the upgrade process finishes to upgrade all interfaces to mappings in work repository.
|
void |
workRepositoryInterfaceToMappingStarted(java.lang.String pWorkRepositoryName)
Will be called when the upgrade process starts to upgrade all interfaces to mappings in a work repository.
|
void |
workRepositoryUpgradeFinished(java.lang.String pWorkRepositoryName,
IRepositoryUpgradeCallback.UpgradeStatus pUpgradeStatus,
java.lang.Throwable pDetailedErrorForFailures)
Will be called when the upgrade process finishes to upgrade a work repository (successfully or with errors).
|
void |
workRepositoryUpgradeStarted(java.lang.String pWorkRepositoryName)
Will be called when the upgrade process starts to upgrade a work repository.
|
public void foundWorkrepositoryToProcess(java.util.List pWorkRepositories)
IRepositoryUpgradeCallbackfoundWorkrepositoryToProcess in interface IRepositoryUpgradeCallbackpWorkRepositories - the list of work repository namespublic void masterRepositoryUpgradeFinished(IRepositoryUpgradeCallback.UpgradeStatus pUpgradeStatus, java.lang.Throwable pDetailedErrorForFailures)
IRepositoryUpgradeCallbackmasterRepositoryUpgradeFinished in interface IRepositoryUpgradeCallbackpUpgradeStatus - The upgrade status.pDetailedErrorForFailures - The exception that caused the failure if any. null otherwise.public void masterRepositoryUpgradeStarted()
IRepositoryUpgradeCallbackmasterRepositoryUpgradeStarted in interface IRepositoryUpgradeCallbackpublic void workRepositoryUpgradeFinished(java.lang.String pWorkRepositoryName,
IRepositoryUpgradeCallback.UpgradeStatus pUpgradeStatus,
java.lang.Throwable pDetailedErrorForFailures)
IRepositoryUpgradeCallbackworkRepositoryUpgradeFinished in interface IRepositoryUpgradeCallbackpWorkRepositoryName - the name of the work repository just being processed.pUpgradeStatus - The result of the upgrade.pDetailedErrorForFailures - The exception that caused the failure if any. null otherwise.public void workRepositoryUpgradeStarted(java.lang.String pWorkRepositoryName)
IRepositoryUpgradeCallbackworkRepositoryUpgradeStarted in interface IRepositoryUpgradeCallbackpWorkRepositoryName - the name of the work repository currently processedpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set getWorkRepositoryNames()
public IRepositoryUpgradeCallback.UpgradeStatus getMasterUpgradeStatus()
public java.lang.Throwable getMasterUpgradeException()
public IRepositoryUpgradeCallback.UpgradeStatus getWorkUpgradeStatus(java.lang.String pName)
public java.lang.Throwable getWorkUpgradeException(java.lang.String pName)
public void workRepositoryInterfaceToMappingFinished(java.lang.String pWorkRepositoryName,
java.util.Map pAllInterfaceMap,
java.util.Map pSuccessMap,
java.util.Map pFailMap)
IRepositoryUpgradeCallbackworkRepositoryInterfaceToMappingFinished in interface IRepositoryUpgradeCallbackpWorkRepositoryName - the name of the work repository just being processed.pAllInterfaceMap - All interfaces with id as key and (name, full path) as value.pSuccessMap - All successfully upgraded mappings, interface id as key, mapping id as value.pFailMap - Interfaces which fail to upgrade with interface id as key and Exception as value.public void topologyUpgradeStarted()
IRepositoryUpgradeCallbacktopologyUpgradeStarted in interface IRepositoryUpgradeCallbackpublic void topologyUpgradeFinished(IRepositoryUpgradeCallback.UpgradeStatus pUpgradeStatus, java.lang.Throwable pDetailedErrorForFailures)
IRepositoryUpgradeCallbacktopologyUpgradeFinished in interface IRepositoryUpgradeCallbackpUpgradeStatus - The upgrade status.pDetailedErrorForFailures - The exception that caused the failure if any. null otherwise.public int getPercentage()
IOdiProgressMonitorgetPercentage in interface IOdiProgressMonitorpublic void setPercentage(int percentage)
IOdiProgressMonitorsetPercentage in interface IOdiProgressMonitorpublic java.lang.String getMessage()
IOdiProgressMonitorgetMessage in interface IOdiProgressMonitorpublic void setMessage(java.lang.String progressText)
IOdiProgressMonitorsetMessage in interface IOdiProgressMonitorpublic boolean isCanceled()
IOdiProgressMonitorisCanceled in interface IOdiProgressMonitorpublic void setCanceled(boolean canceled)
IOdiProgressMonitorsetCanceled in interface IOdiProgressMonitorpublic void completed(boolean complete)
IOdiProgressMonitorcompleted in interface IOdiProgressMonitorpublic boolean isComplete()
IOdiProgressMonitorisComplete in interface IOdiProgressMonitorpublic void workRepositoryInterfaceToMappingFinished(java.lang.String pWorkRepositoryName,
java.util.Map pAllInterfaceMap,
java.util.Map pSuccessMap,
java.util.Map pFailMap,
java.util.Map pErrorsMap)
IRepositoryUpgradeCallbackworkRepositoryInterfaceToMappingFinished in interface IRepositoryUpgradeCallbackpWorkRepositoryName - the name of the work repository just being processed.pAllInterfaceMap - All interfaces with id as key and (name, full path) as value.pSuccessMap - All successfully upgraded mappings, interface id as key, mapping id as value.pFailMap - Interfaces which fail to upgrade with interface id as key and Exception as value.pErrorsMap - 11g interfaces converted with errors, interface id as key, mapping id as value if there is any.public void workRepositoryInterfaceToMappingStarted(java.lang.String pWorkRepositoryName)
IRepositoryUpgradeCallbackworkRepositoryInterfaceToMappingStarted in interface IRepositoryUpgradeCallbackpWorkRepositoryName - the name of the work repository currently processedpublic void addDataMigrationErrorCount(int count)
addDataMigrationErrorCount in interface IOdiProgressMonitor