public virtual void testUndeploymentOperation() { // lets first start some services: serviceContainer.startService(service1Name, service1); serviceContainer.startService(service2Name, service2); // run a composite undeployment operation serviceContainer.createUndeploymentOperation("test op").addStep(new StopServiceDeploymentOperationStep(service1Name)).addStep(new StopServiceDeploymentOperationStep(service2Name)).execute(); // both services were stopped. assertNull(serviceContainer.getService(service1ObjectName)); assertNull(serviceContainer.getService(service2ObjectName)); }
public virtual void undeployProcessApplication(AbstractProcessApplication processApplication) { ensureNotNull("Process application", processApplication); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final String processAppName = processApplication.getName(); string processAppName = processApplication.Name; // if the process application is not deployed, ignore the request. if (serviceContainer.getService(ServiceTypes.PROCESS_APPLICATION, processAppName) == null) { return; } //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final String operationName = "Undeployment of Process Application " + processAppName; string operationName = "Undeployment of Process Application " + processAppName; // perform the undeployment serviceContainer.createUndeploymentOperation(operationName).addAttachment(Attachments.PROCESS_APPLICATION, processApplication).addSteps(UndeploymentSteps).execute(); LOG.paUndeployed(processApplication.Name); }