use of org.jboss.as.clustering.controller.SimpleAliasEntry in project wildfly by wildfly.
the class EvictionResourceDefinition method register.
@Override
public void register(ManagementResourceRegistration parentRegistration) {
ManagementResourceRegistration registration = parentRegistration.registerSubModel(this);
parentRegistration.registerAlias(LEGACY_PATH, new SimpleAliasEntry(registration));
ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()).addAttributes(Attribute.class);
ResourceServiceHandler handler = new SimpleResourceServiceHandler<>(address -> new EvictionBuilder(address.getParent()));
new SimpleResourceRegistration(descriptor, handler).register(registration);
if (this.allowRuntimeOnlyRegistration) {
new MetricHandler<>(new EvictionMetricExecutor(), EvictionMetric.class).register(registration);
}
}
use of org.jboss.as.clustering.controller.SimpleAliasEntry in project wildfly by wildfly.
the class RelayResourceDefinition method register.
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = super.register(parent);
parent.registerAlias(LEGACY_PATH, new SimpleAliasEntry(registration));
new RemoteSiteResourceDefinition(this.serviceConfiguratorFactory).register(registration);
return registration;
}
use of org.jboss.as.clustering.controller.SimpleAliasEntry 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.SimpleAliasEntry 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.SimpleAliasEntry in project wildfly by wildfly.
the class StateTransferResourceDefinition 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(StateTransferServiceConfigurator::new);
new SimpleResourceRegistration(descriptor, handler).register(registration);
return registration;
}
Aggregations