public static ResourceBuilder createSubsystemRoot(PathElement pathElement, StandardResourceDescriptionResolver resolver, OperationStepHandler addHandler, OperationStepHandler removeHandler, OperationStepHandler describeHandler) { ResourceBuilder builder = ResourceBuilderRoot.create(pathElement, resolver, addHandler, removeHandler); builder.addOperation(GenericSubsystemDescribeHandler.DEFINITION, describeHandler); //operation description is always the same return builder; } }
public static ResourceBuilder createSubsystemRoot(PathElement pathElement, StandardResourceDescriptionResolver resolver, OperationStepHandler addHandler, OperationStepHandler removeHandler, OperationStepHandler describeHandler) { ResourceBuilder builder = ResourceBuilderRoot.create(pathElement, resolver, addHandler, removeHandler); builder.addOperation(GenericSubsystemDescribeHandler.DEFINITION, describeHandler); //operation description is always the same return builder; } }
public static ResourceBuilder createSubsystemRoot(PathElement pathElement, StandardResourceDescriptionResolver resolver, OperationStepHandler addHandler, OperationStepHandler removeHandler, OperationStepHandler describeHandler) { ResourceBuilder builder = ResourceBuilderRoot.create(pathElement, resolver, addHandler, removeHandler); builder.addOperation(GenericSubsystemDescribeHandler.DEFINITION, describeHandler); //operation description is always the same return builder; } }
public static ResourceBuilder createSubsystemRoot(PathElement pathElement, StandardResourceDescriptionResolver resolver, OperationStepHandler addHandler, OperationStepHandler removeHandler, OperationStepHandler describeHandler) { ResourceBuilder builder = ResourceBuilderRoot.create(pathElement, resolver, addHandler, removeHandler); builder.addOperation(GenericSubsystemDescribeHandler.DEFINITION, describeHandler); //operation description is always the same return builder; } }
.addReadWriteAttribute(Attributes.SOCKET_BINDING, null, new ReloadRequiredWriteAttributeHandler(Attributes.SOCKET_BINDING)) .addReadWriteAttribute(Attributes.PROPERTIES, null, new ReloadRequiredWriteAttributeHandler(Attributes.PROPERTIES)) .addOperation(Operations.GET_VERSION, SwitchYardSubsystemGetVersion.INSTANCE) .addOperation(Operations.LIST_APPLICATIONS, SwitchYardSubsystemListApplications.INSTANCE) .addOperation(Operations.LIST_REFERENCES, SwitchYardSubsystemListReferences.INSTANCE) .addOperation(Operations.LIST_SERVICES, SwitchYardSubsystemListServices.INSTANCE) .addOperation(Operations.READ_APPLICATION, SwitchYardSubsystemReadApplication.INSTANCE) .addOperation(Operations.READ_REFERENCE, SwitchYardSubsystemReadReference.INSTANCE) .addOperation(Operations.READ_SERVICE, SwitchYardSubsystemReadService.INSTANCE) .addOperation(Operations.USES_ARTIFACT, SwitchYardSubsystemUsesArtifact.INSTANCE) .addOperation(Operations.SHOW_METRICS, SwitchYardSubsystemShowMetrics.INSTANCE) .addOperation(Operations.RESET_METRICS, SwitchYardSubsystemResetMetrics.INSTANCE) .addOperation(Operations.STOP_GATEWAY, SwitchYardSubsystemStopGateway.INSTANCE) .addOperation(Operations.START_GATEWAY, SwitchYardSubsystemStartGateway.INSTANCE) .addOperation(Operations.UPDATE_THROTTLING, SwitchYardSubsystemUpdateThrottling.INSTANCE) .pushChild(securityConfigsResource).pop() .pushChild(modulesResource).pop()
.addReadWriteAttribute(Attributes.SOCKET_BINDING, null, new ReloadRequiredWriteAttributeHandler(Attributes.SOCKET_BINDING)) .addReadWriteAttribute(Attributes.PROPERTIES, null, new ReloadRequiredWriteAttributeHandler(Attributes.PROPERTIES)) .addOperation(Operations.GET_VERSION, SwitchYardSubsystemGetVersion.INSTANCE) .addOperation(Operations.LIST_APPLICATIONS, SwitchYardSubsystemListApplications.INSTANCE) .addOperation(Operations.LIST_REFERENCES, SwitchYardSubsystemListReferences.INSTANCE) .addOperation(Operations.LIST_SERVICES, SwitchYardSubsystemListServices.INSTANCE) .addOperation(Operations.READ_APPLICATION, SwitchYardSubsystemReadApplication.INSTANCE) .addOperation(Operations.READ_REFERENCE, SwitchYardSubsystemReadReference.INSTANCE) .addOperation(Operations.READ_SERVICE, SwitchYardSubsystemReadService.INSTANCE) .addOperation(Operations.USES_ARTIFACT, SwitchYardSubsystemUsesArtifact.INSTANCE) .addOperation(Operations.SHOW_METRICS, SwitchYardSubsystemShowMetrics.INSTANCE) .addOperation(Operations.RESET_METRICS, SwitchYardSubsystemResetMetrics.INSTANCE) .addOperation(Operations.STOP_GATEWAY, SwitchYardSubsystemStopGateway.INSTANCE) .addOperation(Operations.START_GATEWAY, SwitchYardSubsystemStartGateway.INSTANCE) .addOperation(Operations.UPDATE_THROTTLING, SwitchYardSubsystemUpdateThrottling.INSTANCE) .pushChild(securityConfigsResource).pop() .pushChild(modulesResource).pop()