THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
public void contributeService( DeploymentContext context, Service service ) throws Exception { String chain = null; // Default if null, otherwise specific chain name defined in topoloy.xml Map<String,Map<String,String>>List<ServiceParamDescriptor> params = null; // Default if null, otherwise map of per provider role map of name/value pairs. ResourceDescriptor resource = context.addResource() resource.role( "WEBHDFS" ); resource.pattern( "webhdfs/v1/**?**" ); context.contributeChain( service, resource, chain, params ); } |
PlantUML |
---|
@startuml title Contribute Chain hide footbox autonumber participant "Deployment\nFactory\n(df)" as df participant "Deployment\nContext\n(dc)" as dc participant "Service\nDeployment\nContributor\n(sdc)" as sdc participant "Provider\nDeployment\nContributor\n(pdc)" as pdc activate df create dc df -> dc: new df -> sdc: contributeService(dc) activate sdc sdc -> dc: contributeChain() activate dc dc -> pdc: contributeFilter() deactivate dc sdc --> df deactivate sdc deactivate df @endup |
...