Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
a370a7b
WIP reconfigure only changed namespaces
attilakreiner May 31, 2024
3757300
WIP watch resources
attilakreiner Jun 5, 2024
c02e5c4
WIP refactoring watch resources
attilakreiner Jun 5, 2024
8fcae70
WIP refactoring 2
attilakreiner Jun 5, 2024
96f070e
WIP fix
attilakreiner Jun 6, 2024
df0b998
WIP EngineConfigWatcher
attilakreiner Jun 6, 2024
c0a554f
WIP ResourceResolver
attilakreiner Jun 6, 2024
b726267
WIP fix ResourceResolver
attilakreiner Jun 6, 2024
9c2cbbe
fix indentation
attilakreiner Jun 10, 2024
abb923f
fix EngineManager method names
attilakreiner Jun 10, 2024
b9355c6
rm ResourceResolver
attilakreiner Jun 10, 2024
c58ebc9
WIP EngineManager addResources
attilakreiner Jun 10, 2024
2285123
Revert "WIP reconfigure only changed namespaces"
attilakreiner Jun 11, 2024
39f34d0
fix EngineConfigWatcher addResources
attilakreiner Jun 11, 2024
b482fac
Merge branch 'develop' into config-reload
attilakreiner Jun 11, 2024
fd17488
Merge branch 'develop' into config-reload
attilakreiner Jun 13, 2024
b6c2ff2
Merge branch 'develop' into config-reload
attilakreiner Jun 14, 2024
2da3603
WIP readPath resolvePath readLocation
attilakreiner Jun 11, 2024
c85bdc1
WIP filesystem-http
attilakreiner Jun 5, 2024
ab94dac
WIP
attilakreiner Jun 18, 2024
22a2d03
fix
attilakreiner Jun 18, 2024
dfe9610
Merge branch 'develop' into config-reload
attilakreiner Jun 18, 2024
e4cf407
fix
attilakreiner Jun 18, 2024
df172d8
fix EngineConfiguration configPath
attilakreiner Jun 19, 2024
bef04ad
WIP fix
attilakreiner Jun 19, 2024
3177c80
WIP hfs 1
attilakreiner Jun 20, 2024
2a217f8
WIP hfs uri
attilakreiner Jun 20, 2024
4f5737a
WIP hfs resolveSibling
attilakreiner Jun 20, 2024
6395780
WIP hfs rm timeout
attilakreiner Jun 20, 2024
54a2b87
WIP hfs revert send
attilakreiner Jun 20, 2024
a5d0a39
WIP hfs HP readBody resolveBody
attilakreiner Jun 20, 2024
f19e623
WIP hfs HP readBody etag
attilakreiner Jun 20, 2024
a8a4015
WIP hfs HP
attilakreiner Jun 20, 2024
c2efe21
WIP hfs ignore AppIT
attilakreiner Jun 20, 2024
873b5e1
WIP hfs fix AppIT
attilakreiner Jun 20, 2024
c166431
WIP hfs watchBody 1
attilakreiner Jun 20, 2024
0c0f7f4
WIP hfs watchBody 2
attilakreiner Jun 20, 2024
31b420c
WIP hfs watchBody 3
attilakreiner Jun 21, 2024
d3109f7
WIP hfs watchBody 4
attilakreiner Jun 21, 2024
3198b10
WIP hfs watchBody 5
attilakreiner Jun 21, 2024
ef2d377
WIP hfs watchBody 6
attilakreiner Jun 21, 2024
8f982fe
WIP hfs getPath
attilakreiner Jun 21, 2024
50c8792
WIP hfs watchBody 7
attilakreiner Jun 21, 2024
71231a9
WIP fix
attilakreiner Jun 21, 2024
7535666
Remove BindingConfig.readLocation
jfallows Jun 26, 2024
e7c6c56
No watch event needed for identical response body
jfallows Jun 26, 2024
5423718
Handle status 204 with null body and infer delay for optional prefer …
jfallows Jun 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP EngineManager addResources
  • Loading branch information
attilakreiner committed Jun 10, 2024
commit c58ebc9749dcc1a28780339dea316fc0b3f4749c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
import io.aklivity.zilla.runtime.engine.EngineConfiguration;
import io.aklivity.zilla.runtime.engine.internal.config.NamespaceAdapter;
import io.aklivity.zilla.runtime.engine.internal.config.schema.UniquePropertyKeysSchema;
import io.aklivity.zilla.runtime.engine.internal.watcher.EngineConfigWatcher;
import io.aklivity.zilla.runtime.engine.resolver.Resolver;

public final class EngineConfigReader
Expand All @@ -64,24 +63,24 @@ public final class EngineConfigReader
private final ConfigAdapterContext context;
private final Resolver expressions;
private final Collection<URL> schemaTypes;
private final EngineConfigWatcher watcher;
private final Consumer<String> logger;
private final Consumer<NamespaceConfig> addResources;
private final MessageDigest md5;

public EngineConfigReader(
EngineConfiguration config,
ConfigAdapterContext context,
Resolver expressions,
Collection<URL> schemaTypes,
EngineConfigWatcher watcher,
Consumer<String> logger)
Consumer<String> logger,
Consumer<NamespaceConfig> addResources)
{
this.config = config;
this.context = context;
this.expressions = expressions;
this.schemaTypes = schemaTypes;
this.watcher = watcher;
this.logger = logger;
this.addResources = addResources;
this.md5 = initMessageDigest("MD5");
}

Expand Down Expand Up @@ -183,7 +182,7 @@ public EngineConfig read(
reader.skip(configsAt.get(i));
NamespaceConfig namespace = jsonb.fromJson(reader, NamespaceConfig.class);
namespace.hash = hashes.get(i);
watcher.addResources(namespace.resources, namespace.name);
addResources.accept(namespace);
builder.namespace(namespace);

if (!errors.isEmpty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ private EngineConfig parse(
new NamespaceConfigAdapterContext(readURL),
expressions,
schemaTypes,
watcher,
logger);
logger,
this::addResources);

engine = reader.read(configText);

Expand All @@ -249,6 +249,12 @@ private EngineConfig parse(
return engine;
}

private void addResources(
NamespaceConfig namespace)
{
watcher.addResources(namespace.resources, namespace.name);
}

private void process(
List<GuardConfig> guards,
NamespaceConfig namespace)
Expand Down