protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { RemotingConnectorAdd.INSTANCE.performRuntime(context, operation, model); } }
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { boolean useManagementEndpoint = RemotingConnectorResource.USE_MANAGEMENT_ENDPOINT.resolveModelAttribute(context, model).asBoolean(); RemotingConnectorAdd.INSTANCE.launchServices(context, null, null, useManagementEndpoint); } }
@Override protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { boolean useManagementEndpoint = true; if(model.hasDefined(USE_MANAGEMENT_ENDPOINT)) { useManagementEndpoint = RemotingConnectorResource.USE_MANAGEMENT_ENDPOINT.resolveModelAttribute(context, model).asBoolean(); } launchServices(context, verificationHandler, newControllers, useManagementEndpoint); }
@Override protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { boolean useManagementEndpoint = true; if(model.hasDefined(USE_MANAGEMENT_ENDPOINT)) { useManagementEndpoint = RemotingConnectorResource.USE_MANAGEMENT_ENDPOINT.resolveModelAttribute(context, model).asBoolean(); } // Read the model for the JMW subsystem to find the domain name for the resolved/expressions models (if they are exposed). PathAddress address = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); PathAddress parentAddress = address.subAddress(0, address.size() - 1); ModelNode jmxSubsystemModel = Resource.Tools.readModel(context.readResourceFromRoot(parentAddress, true)); String resolvedDomain = getDomainName(context, jmxSubsystemModel, CommonAttributes.RESOLVED); String expressionsDomain = getDomainName(context, jmxSubsystemModel, CommonAttributes.EXPRESSION); launchServices(context, verificationHandler, newControllers, useManagementEndpoint, resolvedDomain, expressionsDomain); }
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { RemotingConnectorAdd.INSTANCE.performRuntime(context, operation, model, null, new ArrayList<ServiceController<?>>()); } }