@Inject
public Coordinator(NodeInfo nodeInfo,
HttpServerInfo httpServerInfo,
CoordinatorConfig config,
RemoteAgentFactory remoteAgentFactory,
Repository repository,
Provisioner provisioner,
StateManager stateManager, ServiceInventory serviceInventory)
{
this(
new CoordinatorStatus(nodeInfo.getInstanceId(),
CoordinatorLifecycleState.ONLINE,
extractMachineId(nodeInfo.getLocation(), UUID.randomUUID().toString()),
httpServerInfo.getHttpUri(),
httpServerInfo.getHttpExternalUri(),
nodeInfo.getLocation(),
null),
remoteAgentFactory,
repository,
provisioner,
stateManager,
serviceInventory,
checkNotNull(config, "config is null").getStatusExpiration(),
config.isAllowDuplicateInstallationsOnAnAgent());
}