public final class ServiceDependencyBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
static ServiceGraph |
buildGraph(Set<ServiceDefinition> sds,
List<Situation> sits)
This method builds a service graph from a collection of service
definitions.
|
static ServiceGraph |
buildGraph(Set<ServiceDefinition> sds,
List<Situation> sits,
String focusServiceType)
This method builds a service graph from a collection of service
definitions.
|
protected static void |
filter(ServiceGraph sg,
String focusServiceType)
This method filters out any service node that is not a client, or
direct/indirect service provider, to the supplied service type.
|
static Set<ServiceDefinition> |
getInitialServices(Collection<ServiceDefinition> sds)
This method returns the set of service definitions that
initiate business activity (i.e.
|
static InvocationMetric |
getMergedMetrics(List<InvocationDefinition> invocations)
This method returns a merged invocation metric value associated with the supplied
invocation definitions.
|
static Set<ServiceDefinition> |
getServiceClients(ServiceDefinition mainsd,
Collection<ServiceDefinition> sds)
This method returns the set of services that are clients to the
supplied service interface.
|
protected static boolean |
isServiceProvider(ServiceGraph sg,
ServiceNode node,
ServiceNode focus,
Set<ServiceNode> visited)
This method determines whether the supplied
|
protected static void |
linkOperationNodes(ServiceGraph sg,
ServiceNode sn,
OperationNode opn,
List<InvocationDefinition> ids)
This method links the source operation node with the invoked
operation nodes.
|
public static Set<ServiceDefinition> getInitialServices(Collection<ServiceDefinition> sds)
sds - The service definitionspublic static Set<ServiceDefinition> getServiceClients(ServiceDefinition mainsd, Collection<ServiceDefinition> sds)
mainsd - The service definitionsds - The other service definitions to checkpublic static ServiceGraph buildGraph(Set<ServiceDefinition> sds, List<Situation> sits, String focusServiceType)
sds - The service definitionssits - The situationsfocusServiceType - The optional service type to focus onprotected static void filter(ServiceGraph sg, String focusServiceType)
sg - focusServiceType - protected static boolean isServiceProvider(ServiceGraph sg, ServiceNode node, ServiceNode focus, Set<ServiceNode> visited)
sg - The service graphnode - The node of interestfocus - The focus servicevisited - The list of nodes already visitedpublic static ServiceGraph buildGraph(Set<ServiceDefinition> sds, List<Situation> sits)
sds - The service definitionssits - The situationsprotected static void linkOperationNodes(ServiceGraph sg, ServiceNode sn, OperationNode opn, List<InvocationDefinition> ids)
sg - The service graphsn - The source service nodeopn - The source operation nodeids - The list of invocationspublic static InvocationMetric getMergedMetrics(List<InvocationDefinition> invocations)
invocations - The invocation detailsCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.