public class InMemoryMigrationService extends Object implements MigrationService
| Constructor and Description |
|---|
InMemoryMigrationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ExportInfo info)
Adds the specified ExportInfo to the set of ExportInfos managed by this MigrationService.
|
List<ExportInfo> |
getAvailableExportInfos()
Retrieves a list of available ExportInfo, i.e.
|
ExportInfo |
getExportInfo(long exportTime)
Retrieves the ExportInfo associated with the specified export time.
|
ConsumerStructureProvider |
getStructureProvider()
Accesses the ConsumerStructureProvider this MigrationService uses.
|
boolean |
isAvailableExportInfosEmpty()
Whether there are any available ExportInfos.
|
ExportInfo |
remove(ExportInfo info)
Removes the specified ExportInfo from the ones managed by this MigrationService.
|
void |
setStructureProvider(ConsumerStructureProvider structureProvider)
Provides a way to wire in a ConsumerStructureProvider.
|
public ConsumerStructureProvider getStructureProvider()
MigrationServicegetStructureProvider in interface MigrationServicepublic void setStructureProvider(ConsumerStructureProvider structureProvider)
MigrationServicesetStructureProvider in interface MigrationServicestructureProvider - the ConsumerStructureProvider this MigrationService should be usingpublic List<ExportInfo> getAvailableExportInfos()
MigrationServicegetAvailableExportInfos in interface MigrationServicepublic ExportInfo getExportInfo(long exportTime)
MigrationServicegetExportInfo in interface MigrationServiceexportTime - the export time of the ExportInfo we want to retrievenull if no such ExportInfo existspublic void add(ExportInfo info)
MigrationServiceadd in interface MigrationServiceinfo - the ExportInfo to addpublic ExportInfo remove(ExportInfo info)
MigrationServiceremove in interface MigrationServiceinfo - the ExportInfo to removenull if the given ExportInfo wasn't managed by this MigrationServicepublic boolean isAvailableExportInfosEmpty()
MigrationServiceisAvailableExportInfosEmpty in interface MigrationServicetrue if this MigrationService manages some ExportInfo, false otherwiseCopyright © 2006-2014 GateIn. All Rights Reserved.