예제 #1
0
        public virtual void testDeploymentOperation()
        {
            serviceContainer.createDeploymentOperation("test op").addStep(new StartServiceDeploymentOperationStep(service1Name, service1)).addStep(new StartServiceDeploymentOperationStep(service2Name, service2)).execute();

            // both services were registered.
            assertEquals(service1, serviceContainer.getService(service1ObjectName));
            assertEquals(service2, serviceContainer.getService(service2ObjectName));
        }
예제 #2
0
        public virtual void deployProcessApplication(AbstractProcessApplication processApplication)
        {
            ensureNotNull("Process application", processApplication);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final String operationName = "Deployment of Process Application " + processApplication.getName();
            string operationName = "Deployment of Process Application " + processApplication.Name;

            serviceContainer.createDeploymentOperation(operationName).addAttachment(Attachments.PROCESS_APPLICATION, processApplication).addSteps(DeploymentSteps).execute();

            LOG.paDeployed(processApplication.Name);
        }