24 lines
479 B
JavaScript
24 lines
479 B
JavaScript
import NullClusterClient from './io/cluster/nullclusterclient';
|
|
import Config from './config';
|
|
import IOConfiguration from './configuration/ioconfig';
|
|
|
|
class LegacyModule {
|
|
getIOConfig() {
|
|
if (!this.ioConfig) {
|
|
this.ioConfig = IOConfiguration.fromOldConfig(Config);
|
|
}
|
|
|
|
return this.ioConfig;
|
|
}
|
|
|
|
getClusterClient() {
|
|
return new NullClusterClient(this.getIOConfig());
|
|
}
|
|
|
|
onReady() {
|
|
|
|
}
|
|
}
|
|
|
|
export { LegacyModule };
|