public DispatchAgentHeartbeatHelper (InsightAgentConfig config,
DispatcherContext context,
CollectionSettingsRegistry registry) {
super(context.getServerName(),
context.getServerLabel(),
createInitialRuntimeState(config, context, registry),
context.getBuildInfo(),
context.getDispatcherResourceProperties(),
SensitiveResourcePropertiesFilter.getInstance());
if ((settingsRegistry=registry) == null) {
throw new IllegalStateException("No settings registry provided");
}
this.props = new LayoutPreservingProperties(ConfigUtils.getInstance().getLocalPropsFile());
}