Skip to content

Commit

Permalink
WFLY-436 Removed unused ThreadFactoryAdapter and other unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar committed Mar 6, 2015
1 parent 372849d commit 2d43903
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 173 deletions.

This file was deleted.

Expand Up @@ -50,7 +50,6 @@ class ModelKeys {
static final String RELAY = "relay";
static final String RELAY_NAME = "RELAY";
static final String REMOTE_SITE = "remote-site";
static final String REMOTE_SITES = "remote-sites";
@Deprecated static final String REMOVE_PROTOCOL = "remove-protocol";
static final String SHARED = "shared";
static final String SITE = "site";
Expand Down
Expand Up @@ -31,9 +31,6 @@
import org.jboss.as.clustering.controller.transform.SimpleUndefineAttributeOperationTransformer;
import org.jboss.as.clustering.controller.transform.SimpleWriteAttributeOperationTransformer;
import org.jboss.as.controller.ModelVersion;
import org.jboss.as.controller.OperationContext;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.controller.OperationStepHandler;
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.PathElement;
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler;
Expand All @@ -46,7 +43,6 @@
import org.jboss.as.controller.registry.ManagementResourceRegistration;
import org.jboss.as.controller.transform.description.RejectAttributeChecker;
import org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder;
import org.jboss.dmr.ModelNode;
import org.jboss.dmr.ModelType;

/**
Expand Down Expand Up @@ -106,25 +102,4 @@ public PathAddress transform(PathAddress address) {
public void registerAttributes(ManagementResourceRegistration registration) {
registration.registerReadWriteAttribute(VALUE, null, new ReloadRequiredWriteAttributeHandler(VALUE));
}

/**
* Add a step triggering the {@linkplain org.jboss.as.controller.OperationContext#reloadRequired()} in case the
* the cache service is installed, since the transport-config operations need a reload/restart and can't be
* applied to the runtime directly.
*
* @param context the operation context
*/
static void reloadRequiredStep(final OperationContext context) {
if (context.getProcessType().isServer() && !context.isBooting()) {
context.addStep(new OperationStepHandler() {
@Override
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
// add some condition here if reload needs to be conditional on context
// e.g. if a service is not installed, don't do a reload
context.reloadRequired();
context.completeStep(OperationContext.RollbackHandler.REVERT_RELOAD_REQUIRED_ROLLBACK_HANDLER);
}
}, OperationContext.Stage.RUNTIME);
}
}
}
Expand Up @@ -30,7 +30,6 @@
import org.jboss.as.controller.ReloadRequiredWriteAttributeHandler;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinitionBuilder;
import org.jboss.as.controller.SimpleListAttributeDefinition;
import org.jboss.as.controller.SimpleResourceDefinition;
import org.jboss.as.controller.registry.AttributeAccess;
import org.jboss.as.controller.registry.ManagementResourceRegistration;
Expand All @@ -52,18 +51,6 @@ public class RelayResourceDefinition extends SimpleResourceDefinition {
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.build();

static final SimpleAttributeDefinition REMOTE_SITE = new SimpleAttributeDefinition(ModelKeys.REMOTE_SITE, ModelType.PROPERTY, true);

static final SimpleListAttributeDefinition REMOTE_SITES = new SimpleListAttributeDefinition.Builder(ModelKeys.REMOTE_SITES, REMOTE_SITE)
.setAllowNull(true)
.build();

static final SimpleAttributeDefinition PROPERTY = new SimpleAttributeDefinition(ModelKeys.PROPERTY, ModelType.PROPERTY, true);

static final SimpleListAttributeDefinition PROPERTIES = new SimpleListAttributeDefinition.Builder(ModelKeys.PROPERTIES, PROPERTY)
.setAllowNull(true)
.build();

static final AttributeDefinition[] ATTRIBUTES = new AttributeDefinition[] { SITE };

static void buildTransformation(ModelVersion version, ResourceTransformationDescriptionBuilder parent) {
Expand Down

0 comments on commit 2d43903

Please sign in to comment.