//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override protected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, ServiceVerificationHandler verificationHandler, java.util.List<org.jboss.msc.service.ServiceController<?>> newControllers) throws OperationFailedException protected internal override void performRuntime <T1>(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, IList <T1> newControllers) { string acquisitionName = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.ADDRESS)).LastElement.Value; MscRuntimeContainerJobExecutor mscRuntimeContainerJobExecutor = new MscRuntimeContainerJobExecutor(); if (model.hasDefined(SubsystemAttributeDefinitons.PROPERTIES.Name)) { IList <Property> properties = SubsystemAttributeDefinitons.PROPERTIES.resolveModelAttribute(context, model).asPropertyList(); foreach (Property property in properties) { PropertyHelper.applyProperty(mscRuntimeContainerJobExecutor, property.Name, property.Value.asString()); } } // start new service for job executor ServiceController <RuntimeContainerJobExecutor> serviceController = context.ServiceTarget.addService(ServiceNames.forMscRuntimeContainerJobExecutorService(acquisitionName), mscRuntimeContainerJobExecutor).addDependency(ServiceNames.forMscRuntimeContainerDelegate()).addDependency(ServiceNames.forMscExecutorService()).addListener(verificationHandler).setInitialMode(ServiceController.Mode.ACTIVE).install(); newControllers.Add(serviceController); }
/// <summary> /// {@inheritDoc} </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override protected void performBoottime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, org.jboss.as.controller.ServiceVerificationHandler verificationHandler, java.util.List<org.jboss.msc.service.ServiceController< ? >> newControllers) throws org.jboss.as.controller.OperationFailedException protected internal override void performBoottime <T1>(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, IList <T1> newControllers) { // add deployment processors context.addStep(new AbstractDeploymentChainStepAnonymousInnerClass(this) , OperationContext.Stage.RUNTIME); // create and register the MSC container delegate. //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate processEngineService = new org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate(); MscRuntimeContainerDelegate processEngineService = new MscRuntimeContainerDelegate(); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.jboss.msc.service.ServiceController<org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate> controller = context.getServiceTarget().addService(org.camunda.bpm.container.impl.jboss.service.ServiceNames.forMscRuntimeContainerDelegate(), processEngineService).addListener(verificationHandler).setInitialMode(org.jboss.msc.service.ServiceController.Mode.ACTIVE).install(); ServiceController <MscRuntimeContainerDelegate> controller = context.ServiceTarget.addService(ServiceNames.forMscRuntimeContainerDelegate(), processEngineService).addListener(verificationHandler).setInitialMode(ServiceController.Mode.ACTIVE).install(); newControllers.Add(controller); // discover and register bpm platform plugins BpmPlatformPlugins plugins = BpmPlatformPlugins.load(this.GetType().ClassLoader); MscBpmPlatformPlugins managedPlugins = new MscBpmPlatformPlugins(plugins); ServiceController <BpmPlatformPlugins> serviceController = context.ServiceTarget.addService(ServiceNames.forBpmPlatformPlugins(), managedPlugins).addListener(verificationHandler).setInitialMode(ServiceController.Mode.ACTIVE).install(); newControllers.Add(serviceController); }