@Override public void registerOperations(ManagementResourceRegistration resourceRegistration) { super.registerOperations(resourceRegistration); if (resourceRegistration.getOperationEntry(PathAddress.EMPTY_ADDRESS, ModelDescriptionConstants.ADD) == null) { registerAddOperation(resourceRegistration, new AbstractAddStepHandler(getAttributes()), OperationEntry.Flag.RESTART_RESOURCE_SERVICES); } if (resourceRegistration.getOperationEntry(PathAddress.EMPTY_ADDRESS, ModelDescriptionConstants.REMOVE) == null) { registerRemoveOperation(resourceRegistration, new DefaultHandlerRemove(), OperationEntry.Flag.RESTART_RESOURCE_SERVICES); } }
@Override public OperationEntry getOperationEntry(PathAddress address, String operationName) { return delegate.getOperationEntry(address, operationName); }
@Override public OperationEntry getOperationEntry(PathAddress address, String operationName) { return deployments.getOperationEntry(address, operationName); }
@Override public OperationEntry getOperationEntry(PathAddress address, String operationName) { return deployments.getOperationEntry(address, operationName); }
@Override public OperationEntry getOperationEntry(PathAddress address, String operationName) { return deployments.getOperationEntry(address, operationName); }
@Override public OperationEntry getOperationEntry(PathAddress address, String operationName) { return deployments.getOperationEntry(address, operationName); }
@Override public OperationEntry getOperationEntry(PathAddress address, String operationName) { return getDelegate().getOperationEntry(address, operationName); }
@Override public OperationEntry getOperationEntry(PathAddress address, String operationName) { return getDelegate().getOperationEntry(address, operationName); }
@Override public void registerOperations(ManagementResourceRegistration resourceRegistration) { super.registerOperations(resourceRegistration); if (resourceRegistration.getOperationEntry(PathAddress.EMPTY_ADDRESS, ModelDescriptionConstants.ADD) == null) { registerAddOperation(resourceRegistration, new AbstractAddStepHandler(getAttributes()), OperationEntry.Flag.RESTART_RESOURCE_SERVICES); } if (resourceRegistration.getOperationEntry(PathAddress.EMPTY_ADDRESS, ModelDescriptionConstants.REMOVE) == null) { registerRemoveOperation(resourceRegistration, new DefaultHandlerRemove(), OperationEntry.Flag.RESTART_RESOURCE_SERVICES); } }
@Override public void registerOperations(ManagementResourceRegistration resourceRegistration) { super.registerOperations(resourceRegistration); if (resourceRegistration.getOperationEntry(PathAddress.EMPTY_ADDRESS, ModelDescriptionConstants.ADD) == null) { registerAddOperation(resourceRegistration, new AbstractAddStepHandler(getAttributes()), OperationEntry.Flag.RESTART_RESOURCE_SERVICES); } if (resourceRegistration.getOperationEntry(PathAddress.EMPTY_ADDRESS, ModelDescriptionConstants.REMOVE) == null) { registerRemoveOperation(resourceRegistration, new DefaultHandlerRemove(), OperationEntry.Flag.RESTART_RESOURCE_SERVICES); } }
private OperationEntry resolveOperationHandler(final PathAddress address, final String operationName) { ManagementResourceRegistration rootRegistration = managementModel.get().getRootResourceRegistration(); OperationEntry result = rootRegistration.getOperationEntry(address, operationName); if (result == null && address.size() > 0) { for (PathElement child : children) { if (type.equals(child.getKey())) { OperationEntry oe = rootRegistration.getOperationEntry(parent.append(child), operationName); OperationStepHandler osh = oe == null ? null : oe.getOperationHandler(); if (osh == null || (found != null && !osh.equals(found.getOperationHandler()))) {
private OperationEntry resolveOperationHandler(final PathAddress address, final String operationName) { ManagementResourceRegistration rootRegistration = managementModel.get().getRootResourceRegistration(); OperationEntry result = rootRegistration.getOperationEntry(address, operationName); if (result == null && address.size() > 0) { for (PathElement child : children) { if (type.equals(child.getKey())) { OperationEntry oe = rootRegistration.getOperationEntry(parent.append(child), operationName); OperationStepHandler osh = oe == null ? null : oe.getOperationHandler(); if (osh == null || (found != null && !osh.equals(found.getOperationHandler()))) {
public static void createRootRegistry(final ManagementResourceRegistration root, final HostControllerEnvironment environment, final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry, final HostModelRegistrar hostModelRegistrar, ProcessType processType) { // Add of the host itself final HostModelRegistrationHandler hostModelRegistratorHandler = new HostModelRegistrationHandler(environment, ignoredDomainResourceRegistry, hostModelRegistrar); root.registerOperationHandler(HostModelRegistrationHandler.DEFINITION, hostModelRegistratorHandler); // Global operations GlobalOperationHandlers.registerGlobalOperations(root, processType); if (root.getOperationEntry(PathAddress.EMPTY_ADDRESS, ValidateOperationHandler.DEFINITION.getName())==null){//this is hack root.registerOperationHandler(ValidateOperationHandler.DEFINITION, ValidateOperationHandler.INSTANCE); } root.registerOperationHandler(WhoAmIOperation.DEFINITION, WhoAmIOperation.INSTANCE, true); // Other root resource operations root.registerOperationHandler(CompositeOperationHandler.DEFINITION, CompositeOperationHandler.INSTANCE); }
for (PathElement child : children) { if (type.equals(child.getKey())) { OperationEntry oe = rootRegistration.getOperationEntry(parent.append(child), operationName); OperationStepHandler osh = oe == null ? null : oe.getOperationHandler(); if (osh == null || (found != null && !found.equals(osh))) {
public static void createRootRegistry(final ManagementResourceRegistration root, final HostControllerEnvironment environment, final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry, final HostModelRegistrar hostModelRegistrar, final ProcessType processType, final DelegatingConfigurableAuthorizer authorizer, final Resource modelControllerResource, final LocalHostControllerInfoImpl localHostControllerInfo, final ImmutableCapabilityRegistry capabilityRegistry) { // register HostDefinition for /host=*:add() root.registerSubModel(new HostDefinition(root, environment, ignoredDomainResourceRegistry, hostModelRegistrar, processType, authorizer, modelControllerResource, localHostControllerInfo)); // Global operations GlobalOperationHandlers.registerGlobalOperations(root, processType); root.registerOperationHandler(ReadFeatureDescriptionHandler.DEFINITION, ReadFeatureDescriptionHandler.getInstance(capabilityRegistry), true); // Global notifications GlobalNotifications.registerGlobalNotifications(root, processType); if (root.getOperationEntry(PathAddress.EMPTY_ADDRESS, ValidateOperationHandler.DEFINITION.getName())==null){//this is hack root.registerOperationHandler(ValidateOperationHandler.DEFINITION, ValidateOperationHandler.INSTANCE); } root.registerOperationHandler(WhoAmIOperation.DEFINITION, WhoAmIOperation.createOperation(authorizer), true); // Other root resource operations root.registerOperationHandler(CompositeOperationHandler.DEFINITION, CompositeOperationHandler.INSTANCE); }
public static void createRootRegistry(final ManagementResourceRegistration root, final HostControllerEnvironment environment, final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry, final HostModelRegistrar hostModelRegistrar, final ProcessType processType, final DelegatingConfigurableAuthorizer authorizer, final Resource modelControllerResource, final LocalHostControllerInfoImpl localHostControllerInfo, final ImmutableCapabilityRegistry capabilityRegistry) { // register HostDefinition for /host=*:add() root.registerSubModel(new HostDefinition(root, environment, ignoredDomainResourceRegistry, hostModelRegistrar, processType, authorizer, modelControllerResource, localHostControllerInfo)); // Global operations GlobalOperationHandlers.registerGlobalOperations(root, processType); root.registerOperationHandler(ReadFeatureDescriptionHandler.DEFINITION, ReadFeatureDescriptionHandler.getInstance(capabilityRegistry), true); // Global notifications GlobalNotifications.registerGlobalNotifications(root, processType); if (root.getOperationEntry(PathAddress.EMPTY_ADDRESS, ValidateOperationHandler.DEFINITION.getName())==null){//this is hack root.registerOperationHandler(ValidateOperationHandler.DEFINITION, ValidateOperationHandler.INSTANCE); } root.registerOperationHandler(WhoAmIOperation.DEFINITION, WhoAmIOperation.createOperation(authorizer), true); // Other root resource operations root.registerOperationHandler(CompositeOperationHandler.DEFINITION, CompositeOperationHandler.INSTANCE); }