use of org.jboss.as.clustering.controller.SimpleAliasEntry in project wildfly by wildfly.
the class StoreResourceDefinition method register.
@SuppressWarnings("deprecation")
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = parent.registerSubModel(this);
if (this.legacyPath != null) {
parent.registerAlias(this.legacyPath, new SimpleAliasEntry(registration));
}
ResourceDescriptor descriptor = this.configurator.apply(new ResourceDescriptor(this.getResourceDescriptionResolver())).addAttributes(Attribute.class).addIgnoredAttributes(DeprecatedAttribute.class).addCapabilities(Capability.class).addRequiredSingletonChildren(StoreWriteThroughResourceDefinition.PATH);
ResourceServiceHandler handler = new SimpleResourceServiceHandler(this);
new SimpleResourceRegistration(descriptor, handler).register(registration);
if (registration.isRuntimeOnlyRegistrationValid()) {
for (DeprecatedMetric metric : EnumSet.allOf(DeprecatedMetric.class)) {
metric.register(registration);
}
}
new StoreWriteBehindResourceDefinition().register(registration);
new StoreWriteThroughResourceDefinition().register(registration);
new StorePropertyResourceDefinition().register(registration);
return registration;
}
use of org.jboss.as.clustering.controller.SimpleAliasEntry in project wildfly by wildfly.
the class StoreWriteBehindResourceDefinition 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).addIgnoredAttributes(DeprecatedAttribute.class);
ResourceServiceHandler handler = new SimpleResourceServiceHandler(StoreWriteBehindServiceConfigurator::new);
new SimpleResourceRegistration(descriptor, handler).register(registration);
return registration;
}
use of org.jboss.as.clustering.controller.SimpleAliasEntry in project wildfly by wildfly.
the class JGroupsTransportResourceDefinition method register.
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = super.register(parent);
parent.registerAlias(LEGACY_PATH, new SimpleAliasEntry(registration));
return registration;
}
use of org.jboss.as.clustering.controller.SimpleAliasEntry in project wildfly by wildfly.
the class LockingResourceDefinition 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(LockingServiceConfigurator::new);
new SimpleResourceRegistration(descriptor, handler).register(registration);
if (registration.isRuntimeOnlyRegistrationValid()) {
for (DeprecatedMetric metric : EnumSet.allOf(DeprecatedMetric.class)) {
metric.register(registration);
}
}
return registration;
}
use of org.jboss.as.clustering.controller.SimpleAliasEntry in project wildfly by wildfly.
the class DynamicLoadProviderResourceDefinition 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);
new LoadMetricResourceDefinition().register(registration);
new CustomLoadMetricResourceDefinition().register(registration);
new ReloadRequiredResourceRegistration(descriptor).register(registration);
return registration;
}
Aggregations