Tabnine Logo
org.jboss.as.controller
Code IndexAdd Tabnine to your IDE (free)

How to use org.jboss.as.controller

Best Java code snippets using org.jboss.as.controller (Showing top 20 results out of 1,314)

origin: wildfly/wildfly

  @Override
  public String[] apply(PathAddress address) {
    return new String[] { address.getParent().getParent().getLastElement().getValue(), address.getLastElement().getValue() };
  }
},
origin: wildfly/wildfly

  private static Resource safeGetResource(OperationContext context, PathElement path) {
    try {
      return context.readResourceFromRoot(PathAddress.pathAddress(path), false);
    } catch (RuntimeException e) {
      // No such resource
      return null;
    }
  }
}
origin: wildfly/wildfly

  @Override
  public String[] apply(PathAddress address) {
    return new String[] { address.getLastElement().getValue() };
  }
},
origin: wildfly/wildfly

  @Override
  public PathAddress convertToTargetAddress(PathAddress aliasAddress, AliasContext aliasContext) {
    PathElement pe = aliasAddress.getLastElement();
    return aliasAddress.getParent().append(PathElement.pathElement(targetPe.getKey(), pe.getValue()));
  }
};
origin: wildfly/wildfly

  @Override
  public PathAddress convertToTargetAddress(PathAddress address, AliasContext aliasContext) {
    PathElement element = address.getLastElement();
    element = PathElement.pathElement(Constants.ACL_MODULE, element.getValue());
    return address.subAddress(0, address.size() -1).append(element);
  }
});
origin: wildfly/wildfly

  @Override
  protected void validateUpdatedModel(OperationContext context, Resource model) throws OperationFailedException {
    super.validateUpdatedModel(context, model);
    context.addStep(JdbcStoreValidationStep.INSTANCE, OperationContext.Stage.MODEL);
  }
}
origin: wildfly/wildfly

@Override
protected void populateModel(final OperationContext context, final ModelNode operation, final Resource resource) throws OperationFailedException {
  // Add a new step to validate the core-threads, max-threads and queue-length values
  context.addStep(ExecutorQueueValidationStepHandler.MODEL_VALIDATION_INSTANCE, OperationContext.Stage.MODEL);
  super.populateModel(context, operation, resource);
}
origin: wildfly/wildfly

  @Override
  protected boolean requiresRuntime(OperationContext context) {
    return context.getProcessType().isServer();
  }
}
origin: wildfly/wildfly

private IdentityResourceDefinition(Parameters parameters, AbstractAddStepHandler add) {
  super(parameters
      .setAddHandler(add)
      .setRemoveHandler(new ReloadRequiredRemoveStepHandler(IDENTITY_RUNTIME_CAPABILITY))
      .setRemoveRestartLevel(OperationEntry.Flag.RESTART_ALL_SERVICES));
}
origin: wildfly/wildfly

@Override
protected void removeServices(OperationContext context, ServiceName parentService, ModelNode parentModel) throws OperationFailedException {
  super.removeServices(context, parentService, parentModel);
  context.removeService(AbstractPersistentSessionManager.SERVICE_NAME);
}
origin: wildfly/wildfly

@Override
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException {
  CODE.validateAndSet(operation, model);
  OPTIONS.validateAndSet(operation, model);
}
origin: wildfly/wildfly

@Override
protected void recordCapabilitiesAndRequirements(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException {
  super.recordCapabilitiesAndRequirements(context, operation, resource);
  // TODO: delete these once optional requirements no longer require the existence of a capability
  context.registerCapability(CLUSTERED_SINGLETON_CAPABILITY);
  context.registerCapability(EJB_CLIENT_CONFIGURATOR);
  context.registerCapability(EJB_CAPABILITY);
}
origin: wildfly/wildfly

  @Override
  public String[] apply(PathAddress address) {
    PathAddress parent = address.getParent();
    return new String[] { parent.getParent().getLastElement().getValue(), parent.getLastElement().getValue() };
  }
},
origin: wildfly/wildfly

  private static Resource safeGetResource(OperationContext context, PathElement path) {
    try {
      return context.readResourceFromRoot(PathAddress.pathAddress(path), false);
    } catch (RuntimeException e) {
      // No such resource
      return null;
    }
  }
}
origin: wildfly/wildfly

  @Override
  protected void validateUpdatedModel(final OperationContext context, final Resource model) throws OperationFailedException {
    context.addStep(ExecutorQueueValidationStepHandler.MODEL_VALIDATION_INSTANCE, OperationContext.Stage.MODEL);
    super.validateUpdatedModel(context, model);
  }
}
origin: wildfly/wildfly

  @Override
  protected boolean requiresRuntime(OperationContext context) {
    return context.getProcessType().isServer();
  }
}
origin: wildfly/wildfly

  @Override
  public String[] apply(PathAddress address) {
    return new String[] { address.getParent().getLastElement().getValue(), address.getLastElement().getValue() };
  }
},
origin: wildfly/wildfly

  @Override
  protected void validateUpdatedModel(OperationContext context, Resource model) throws OperationFailedException {
    super.validateUpdatedModel(context, model);
    context.addStep(VALIDATE_RESOURCE_MODEL_OPERATION_STEP_HANDLER, OperationContext.Stage.MODEL);
  }
}
origin: wildfly/wildfly

  @Override
  public String[] apply(PathAddress address) {
    return new String[] { address.getParent().getLastElement().getValue() };
  }
},
origin: wildfly/wildfly

  @Override
  public String[] apply(PathAddress address) {
    return new String[] { address.getParent().getParent().getLastElement().getValue() };
  }
},
org.jboss.as.controller

Most used classes

  • PathAddress
    A path address for an operation.
  • OperationContext
    The context for an operation step execution.
  • ManagementResourceRegistration
    A registration for a management resource which consists of a resource description plus registered op
  • PathElement
    An element of a path specification for matching operations with addresses.
  • SubsystemRegistration
    A subsystem registration. If no XML mappings are defined, then a simple empty XML mapping is used.
  • ExtensionParsingContext,
  • ParseUtils,
  • StandardResourceDescriptionResolver,
  • Util,
  • SubsystemMarshallingContext,
  • AttributeDefinition,
  • SimpleAttributeDefinition,
  • Resource,
  • OperationFailedException,
  • SimpleResourceDefinition,
  • ReloadRequiredWriteAttributeHandler,
  • ModelControllerClient,
  • ModelVersion,
  • TransformationDescriptionBuilder$Factory
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now