use of org.jboss.as.clustering.controller.ManagementResourceRegistration in project wildfly by wildfly.
the class InfinispanSubsystemResourceDefinition method register.
@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);
}
use of org.jboss.as.clustering.controller.ManagementResourceRegistration in project wildfly by wildfly.
the class ExpirationResourceDefinition method register.
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = parent.registerSubModel(this);
parent.registerAlias(LEGACY_PATH, new SimpleAliasEntry(registration));
ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()).addAttributes(Attribute.class);
ResourceServiceHandler handler = new SimpleResourceServiceHandler(ExpirationServiceConfigurator::new);
new SimpleResourceRegistration(descriptor, handler).register(registration);
return registration;
}
use of org.jboss.as.clustering.controller.ManagementResourceRegistration in project wildfly by wildfly.
the class HeapMemoryResourceDefinition method register.
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = super.register(parent);
parent.registerAlias(OBJECT_PATH, new SimpleAliasEntry(registration));
parent.registerAlias(EVICTION_PATH, new SimpleAliasEntry(registration));
parent.registerAlias(LEGACY_PATH, new SimpleAliasEntry(registration));
return registration;
}
use of org.jboss.as.clustering.controller.ManagementResourceRegistration in project wildfly by wildfly.
the class BackupsResourceDefinition method register.
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = parent.registerSubModel(this);
ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver());
ResourceServiceConfiguratorFactory serviceConfiguratorFactory = BackupsServiceConfigurator::new;
ResourceServiceHandler handler = new ParentResourceServiceHandler(serviceConfiguratorFactory);
new SimpleResourceRegistration(descriptor, handler).register(registration);
new BackupResourceDefinition(serviceConfiguratorFactory, this.executors).register(registration);
return registration;
}
use of org.jboss.as.clustering.controller.ManagementResourceRegistration in project wildfly by wildfly.
the class SharedStateCacheResourceDefinition method register.
@SuppressWarnings("deprecation")
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = super.register(parent);
new PartitionHandlingResourceDefinition().register(registration);
new StateTransferResourceDefinition().register(registration);
new BackupsResourceDefinition(this.executors).register(registration);
new BackupForResourceDefinition().register(registration);
return registration;
}
Aggregations