public class LegacyStoreReplayer extends Object
Constructor and Description |
---|
LegacyStoreReplayer(File directory)
Creates a new Legacy Store Replayer with the given target store
|
Modifier and Type | Method and Description |
---|---|
void |
load()
Loads the legacy store and prepares it for replay into a newer Store instance.
|
void |
startReplay(JobSchedulerStoreImpl targetStore)
Performs a replay of scheduled jobs into the target JobSchedulerStore.
|
void |
unload()
Unloads a previously loaded legacy store to release any resources associated with it.
|
public LegacyStoreReplayer(File directory)
targetStore
- directory
- public void load() throws IOException
IOException
- if an error occurs while reading in the legacy store.public void unload() throws IOException
IOException
public void startReplay(JobSchedulerStoreImpl targetStore) throws IOException
targetStore
- The JobSchedulerStore that will receive the replay events from the legacy store.IOException
- if an error occurs during replay of the legacy store.Copyright © 2005–2017 FuseSource, Corp.. All rights reserved.