public final class ServiceDefinitionUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkForExternalInvocations(Map<String,ServiceDefinition> sdefs,
ActivityUnit actUnit,
MEPDefinition mep,
int from,
int to)
Check if there are any external service invocations during the scope of
the suppled MEP definition.
|
protected static void |
checkForServiceInvoked(Map<String,ServiceDefinition> sdefs,
ActivityUnit actUnit,
int from,
int to,
InvocationDefinition idef)
This method checks for the events associated with the service
being invoked.
|
static Collection<ServiceDefinition> |
derive(ActivityUnit actUnit)
This method processes the supplied activity unit to derive
service definition information.
|
static ServiceDefinition |
deserializeServiceDefinition(byte[] sdef)
This method deserializes a Service Definition from a JSON representation.
|
static Map<String,ServiceDefinition> |
mergeSnapshots(List<Map<String,ServiceDefinition>> snapshots)
This method merges the supplied service definition snapshots.
|
static Map<String,ServiceDefinition> |
mergeSnapshots(List<Map<String,ServiceDefinition>> snapshots,
boolean retainContexts)
This method merges the supplied service definition snapshots.
|
protected static InvocationDefinition |
processExternalInvocation(Map<String,ServiceDefinition> sdefs,
MEPDefinition call,
RequestSent rqs,
ResponseReceived rpr)
This method processes the external invocation and associates the
details with the supplied MEP definition.
|
protected static MEPDefinition |
processServiceInvoked(Map<String,ServiceDefinition> sdefs,
ActivityUnit actUnit,
RequestReceived rqr,
ResponseSent rps)
This method processes the service invocation.
|
static byte[] |
serializeServiceDefinition(ServiceDefinition sdef)
This method serializes a Service Definition into a JSON representation.
|
public static byte[] serializeServiceDefinition(ServiceDefinition sdef) throws Exception
sdef - The service definitionException - Failed to serializepublic static ServiceDefinition deserializeServiceDefinition(byte[] sdef) throws Exception
sdef - The JSON representation of the service definitionException - Failed to deserializepublic static Collection<ServiceDefinition> derive(ActivityUnit actUnit)
actUnit - The activity unitprotected static void checkForServiceInvoked(Map<String,ServiceDefinition> sdefs, ActivityUnit actUnit, int from, int to, InvocationDefinition idef)
sdefs - The service definitionsactUnit - The activity unitfrom - The 'from' indexto - The 'to' indexidef - The invocation definitionprotected static void checkForExternalInvocations(Map<String,ServiceDefinition> sdefs, ActivityUnit actUnit, MEPDefinition mep, int from, int to)
sdefs - The service definitionsactUnit - The activity unitmep - The MEP definitionfrom - The 'from' indexto - The 'to' indexprotected static MEPDefinition processServiceInvoked(Map<String,ServiceDefinition> sdefs, ActivityUnit actUnit, RequestReceived rqr, ResponseSent rps)
sdefs - The service definitionsactUnit - The activity unitrqr - The request received eventrps - The response sent eventprotected static InvocationDefinition processExternalInvocation(Map<String,ServiceDefinition> sdefs, MEPDefinition call, RequestSent rqs, ResponseReceived rpr)
sdefs - The service definitionscall - The MEP definitionrqs - The requestrpr - The responsepublic static Map<String,ServiceDefinition> mergeSnapshots(List<Map<String,ServiceDefinition>> snapshots)
snapshots - The snapshots to mergepublic static Map<String,ServiceDefinition> mergeSnapshots(List<Map<String,ServiceDefinition>> snapshots, boolean retainContexts)
snapshots - The snapshots to mergeretainContexts - Whether to retain and merge context informationCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.