Skip to content

Commit

Permalink
Add reload for registry and storage
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Jan 24, 2024
1 parent b762684 commit 1574cc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ public interface StorageRegistry extends Registry<Nameable, Storage> {
* @return Returns a future which completes once all underlying processes complete
*/
CompletableFuture<Void> migrate(Nameable source, Nameable target);

default void reload() {
registry().values().forEach(Storage::reload);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public void onPostStart() throws Throwable {

public void reload() {
schematics.reload();
storageRegistry.reload();
configuration.reload();
renderService.restart();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ public void shutdown() {
protected String name() {
return "Storage Registry";
}

}

0 comments on commit 1574cc4

Please sign in to comment.