Package com.framed.arn
Class ARN
java.lang.Object
com.framed.arn.ARN
- All Implemented Interfaces:
DeploymentValidator
Acyclic Deterministic Reactor Network validator. Registered as a
DeploymentValidator
so the orchestrator can run it after deployment without depending on this (domain) class.-
Constructor Summary
ConstructorsConstructorDescriptionARN()No-argument constructor used byServiceLoader.Creates a validator over the given reactors and immediately checks that they form an acyclic network. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(Collection<Service> services) Filters the deployed services down toReactors and validates that they form an acyclic network.
-
Constructor Details
-
ARN
public ARN()No-argument constructor used byServiceLoader. -
ARN
Creates a validator over the given reactors and immediately checks that they form an acyclic network.- Parameters:
actors- the reactors to validate- Throws:
IllegalArgumentException- if the reactors form a cyclic network
-
-
Method Details
-
validate
Filters the deployed services down toReactors and validates that they form an acyclic network. No-op when no reactors are present.- Specified by:
validatein interfaceDeploymentValidator- Parameters:
services- all services instantiated by the orchestrator
-
