@SuppressWarnings("deprecation") @Override public void register(SubsystemRegistration parent) { ManagementResourceRegistration registration = parent.registerSubsystemModel(this); registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE); ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()); ResourceServiceHandler handler = new ModClusterSubsystemServiceHandler(); new SimpleResourceRegistration(descriptor, handler).register(registration); new ProxyConfigurationResourceDefinition().register(registration); // Deprecated legacy operations which are exposed at the wrong location if (parent.isRuntimeOnlyRegistrationValid()) { for (LegacyProxyOperation legacyProxyOperation : LegacyProxyOperation.values()) { registration.registerOperationHandler(legacyProxyOperation.getDefinition(), legacyProxyOperation); } } }
@Override public void register(SubsystemRegistration parentRegistration) { ManagementResourceRegistration registration = parentRegistration.registerSubsystemModel(this); registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE); ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()) .addCapabilities(LOCAL_CLUSTERING_CAPABILITIES.values()) .addCapabilities(CLUSTERING_CAPABILITIES.values()) ; ResourceServiceHandler handler = new InfinispanSubsystemServiceHandler(); new DeploymentChainContributingResourceRegistration(descriptor, handler, this).register(registration); new CacheContainerResourceDefinition().register(registration); new RemoteCacheContainerResourceDefinition().register(registration); }
@Override public ManagementResourceRegistration register(ManagementResourceRegistration parent) { ManagementResourceRegistration registration = super.register(parent); PathManager pathManager = registration.getPathManager().orElse(null); if (pathManager != null) { ResolvePathHandler pathHandler = ResolvePathHandler.Builder.of(pathManager) .setPathAttribute(Attribute.RELATIVE_PATH.getDefinition()) .setRelativeToAttribute(Attribute.RELATIVE_TO.getDefinition()) .build(); registration.registerOperationHandler(pathHandler.getOperationDefinition(), pathHandler); } return registration; } }
registration.registerOperationHandler(ALIAS_ADD, addAliasHandler); registration.registerOperationHandler(ALIAS_REMOVE, removeAliasHandler);
registration.registerOperationHandler(legacyAddProtocolOperation, legacyAddProtocolHandler); registration.registerOperationHandler(legacyRemoveProtocolOperation, legacyRemoveProtocolHandler);
@SuppressWarnings("deprecation") @Override public void register(SubsystemRegistration parent) { ManagementResourceRegistration registration = parent.registerSubsystemModel(this); registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE); ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()); ResourceServiceHandler handler = new ModClusterSubsystemServiceHandler(); new SimpleResourceRegistration(descriptor, handler).register(registration); new ProxyConfigurationResourceDefinition().register(registration); // Deprecated legacy operations which are exposed at the wrong location if (parent.isRuntimeOnlyRegistrationValid()) { for (LegacyProxyOperation legacyProxyOperation : LegacyProxyOperation.values()) { registration.registerOperationHandler(legacyProxyOperation.getDefinition(), legacyProxyOperation); } } }
@Override public void register(SubsystemRegistration parentRegistration) { ManagementResourceRegistration registration = parentRegistration.registerSubsystemModel(this); registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE); ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()) .addCapabilities(LOCAL_CLUSTERING_CAPABILITIES.values()) .addCapabilities(CLUSTERING_CAPABILITIES.values()) ; ResourceServiceHandler handler = new InfinispanSubsystemServiceHandler(); new DeploymentChainContributingResourceRegistration(descriptor, handler, this).register(registration); new CacheContainerResourceDefinition().register(registration); new RemoteCacheContainerResourceDefinition().register(registration); }
@Override public ManagementResourceRegistration register(ManagementResourceRegistration parent) { ManagementResourceRegistration registration = super.register(parent); PathManager pathManager = registration.getPathManager().orElse(null); if (pathManager != null) { ResolvePathHandler pathHandler = ResolvePathHandler.Builder.of(pathManager) .setPathAttribute(Attribute.RELATIVE_PATH.getDefinition()) .setRelativeToAttribute(Attribute.RELATIVE_TO.getDefinition()) .build(); registration.registerOperationHandler(pathHandler.getOperationDefinition(), pathHandler); } return registration; } }
registration.registerOperationHandler(ALIAS_ADD, addAliasHandler); registration.registerOperationHandler(ALIAS_REMOVE, removeAliasHandler);
registration.registerOperationHandler(legacyAddProtocolOperation, legacyAddProtocolHandler); registration.registerOperationHandler(legacyRemoveProtocolOperation, legacyRemoveProtocolHandler);