Search in sources :

Example 1 with SimpleAliasEntry

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);
    }
}
Also used : SimpleResourceServiceHandler(org.jboss.as.clustering.controller.SimpleResourceServiceHandler) SimpleResourceRegistration(org.jboss.as.clustering.controller.SimpleResourceRegistration) SimpleAliasEntry(org.jboss.as.clustering.controller.SimpleAliasEntry) ManagementResourceRegistration(org.jboss.as.controller.registry.ManagementResourceRegistration) SimpleResourceServiceHandler(org.jboss.as.clustering.controller.SimpleResourceServiceHandler) ResourceServiceHandler(org.jboss.as.clustering.controller.ResourceServiceHandler) ResourceDescriptor(org.jboss.as.clustering.controller.ResourceDescriptor)

Example 2 with SimpleAliasEntry

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;
}
Also used : SimpleAliasEntry(org.jboss.as.clustering.controller.SimpleAliasEntry) ManagementResourceRegistration(org.jboss.as.controller.registry.ManagementResourceRegistration)

Example 3 with SimpleAliasEntry

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;
}
Also used : SimpleResourceServiceHandler(org.jboss.as.clustering.controller.SimpleResourceServiceHandler) SimpleResourceRegistration(org.jboss.as.clustering.controller.SimpleResourceRegistration) SimpleAliasEntry(org.jboss.as.clustering.controller.SimpleAliasEntry) ManagementResourceRegistration(org.jboss.as.clustering.controller.ManagementResourceRegistration) SimpleResourceServiceHandler(org.jboss.as.clustering.controller.SimpleResourceServiceHandler) ResourceServiceHandler(org.jboss.as.clustering.controller.ResourceServiceHandler) ResourceDescriptor(org.jboss.as.clustering.controller.ResourceDescriptor)

Example 4 with SimpleAliasEntry

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;
}
Also used : SimpleAliasEntry(org.jboss.as.clustering.controller.SimpleAliasEntry) ManagementResourceRegistration(org.jboss.as.clustering.controller.ManagementResourceRegistration)

Example 5 with SimpleAliasEntry

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;
}
Also used : SimpleResourceServiceHandler(org.jboss.as.clustering.controller.SimpleResourceServiceHandler) SimpleResourceRegistration(org.jboss.as.clustering.controller.SimpleResourceRegistration) SimpleAliasEntry(org.jboss.as.clustering.controller.SimpleAliasEntry) ManagementResourceRegistration(org.jboss.as.clustering.controller.ManagementResourceRegistration) SimpleResourceServiceHandler(org.jboss.as.clustering.controller.SimpleResourceServiceHandler) ResourceServiceHandler(org.jboss.as.clustering.controller.ResourceServiceHandler) ResourceDescriptor(org.jboss.as.clustering.controller.ResourceDescriptor)

Aggregations

SimpleAliasEntry (org.jboss.as.clustering.controller.SimpleAliasEntry)14 ManagementResourceRegistration (org.jboss.as.clustering.controller.ManagementResourceRegistration)10 ResourceDescriptor (org.jboss.as.clustering.controller.ResourceDescriptor)9 SimpleResourceRegistration (org.jboss.as.clustering.controller.SimpleResourceRegistration)8 ResourceServiceHandler (org.jboss.as.clustering.controller.ResourceServiceHandler)7 SimpleResourceServiceHandler (org.jboss.as.clustering.controller.SimpleResourceServiceHandler)7 ManagementResourceRegistration (org.jboss.as.controller.registry.ManagementResourceRegistration)4 BinaryRequirementCapability (org.jboss.as.clustering.controller.BinaryRequirementCapability)1 Capability (org.jboss.as.clustering.controller.Capability)1 ReloadRequiredResourceRegistration (org.jboss.as.clustering.controller.ReloadRequiredResourceRegistration)1 RuntimeCapability (org.jboss.as.controller.capability.RuntimeCapability)1