public class ServiceDependencyResolver extends Object
ClusterAction
that needs to be performed,
and determines for a given ProvisionerAction
to be performed on a Service
, what other actions need
to be performed on what services before the given action can be performed.Constructor and Description |
---|
ServiceDependencyResolver(Actions actions,
Map<String,Service> clusterServices) |
Modifier and Type | Method and Description |
---|---|
Set<ActionOnService> |
getDirectDependentActions(String service,
ProvisionerAction action)
Given a service and action, return a set of
ActionOnService describing what other actions on services must
be performed before the given service and action can be performed. |
boolean |
runtimeDependsOn(String service1,
String service2)
Returns whether or not service1 depends on service2 in some way for runtime actions, either directly or indirectly.
|
public Set<ActionOnService> getDirectDependentActions(String service, ProvisionerAction action)
ActionOnService
describing what other actions on services must
be performed before the given service and action can be performed.service
- Service to check.action
- Action to check.public boolean runtimeDependsOn(String service1, String service2)
service1
- Service to check dependency for.service2
- Service to check dependency on.Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.