use of org.jboss.as.clustering.controller.ResourceServiceConfiguratorFactory 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.ResourceServiceConfiguratorFactory in project wildfly by wildfly.
the class ForkResourceDefinition method register.
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = parent.registerSubModel(this);
ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()).addCapabilities(Capability.class).addCapabilities(CLUSTERING_CAPABILITIES.values());
ResourceServiceConfiguratorFactory serviceConfiguratorFactory = new ForkChannelFactoryServiceConfiguratorFactory();
ResourceServiceHandler handler = new ForkServiceHandler(serviceConfiguratorFactory);
new SimpleResourceRegistration(descriptor, handler).register(registration);
new ProtocolRegistration(serviceConfiguratorFactory, new ForkProtocolRuntimeResourceRegistration(this.executors)).register(registration);
return registration;
}
Aggregations