org.jboss.as.clustering.controller.Operations.getAllWriteAttributeOperationNames()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中org.jboss.as.clustering.controller.Operations.getAllWriteAttributeOperationNames()方法的一些代码示例,展示了Operations.getAllWriteAttributeOperationNames()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operations.getAllWriteAttributeOperationNames()方法的具体详情如下:
包路径:org.jboss.as.clustering.controller.Operations
类名称:Operations
方法名:getAllWriteAttributeOperationNames

Operations.getAllWriteAttributeOperationNames介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

writeOpTransformerChain.add(new LegacyPropertyWriteOperationTransformer());
ChainedOperationTransformer writeOpChainedTransformer = new ChainedOperationTransformer(writeOpTransformerChain, false);
for (String opName : Operations.getAllWriteAttributeOperationNames()) {
  builder.addOperationTransformationOverride(opName)
      .inheritResourceAttributeDefinitions()

代码示例来源:origin: wildfly/wildfly

public static void buildTransformation(ModelVersion version, ResourceTransformationDescriptionBuilder builder, PathElement path) {
  if (InfinispanModel.VERSION_6_0_0.requiresTransformation(version)) {
    builder.getAttributeBuilder().setDiscard(DiscardAttributeChecker.ALWAYS, Attribute.MAX_BATCH_SIZE.getDefinition());
  }
  if (InfinispanModel.VERSION_3_0_0.requiresTransformation(version)) {
    builder.addOperationTransformationOverride(ModelDescriptionConstants.ADD)
        .setCustomOperationTransformer(new SimpleOperationTransformer(new LegacyPropertyAddOperationTransformer()))
        .inheritResourceAttributeDefinitions()
        .end();
    builder.setCustomResourceTransformer(new LegacyPropertyResourceTransformer());
    builder.addRawOperationTransformationOverride(MapOperations.MAP_GET_DEFINITION.getName(), new SimpleOperationTransformer(new LegacyPropertyMapGetOperationTransformer()));
    for (String name : Operations.getAllWriteAttributeOperationNames()) {
      builder.addOperationTransformationOverride(name)
          .inheritResourceAttributeDefinitions()
          .setCustomOperationTransformer(new LegacyPropertyWriteOperationTransformer(address -> address.getParent().append(path)))
          .end();
    }
  }
  StoreWriteThroughResourceDefinition.buildTransformation(version, builder);
  StoreWriteBehindResourceDefinition.buildTransformation(version, builder);
}

代码示例来源:origin: wildfly/wildfly

for (String opName : Operations.getAllWriteAttributeOperationNames()) {
  builder.addOperationTransformationOverride(opName)
      .inheritResourceAttributeDefinitions()

代码示例来源:origin: org.jboss.eap/wildfly-clustering-jgroups-extension

writeOpTransformerChain.add(new LegacyPropertyWriteOperationTransformer());
ChainedOperationTransformer writeOpChainedTransformer = new ChainedOperationTransformer(writeOpTransformerChain, false);
for (String opName : Operations.getAllWriteAttributeOperationNames()) {
  builder.addOperationTransformationOverride(opName)
      .inheritResourceAttributeDefinitions()

代码示例来源:origin: org.wildfly/wildfly-clustering-infinispan-extension

public static void buildTransformation(ModelVersion version, ResourceTransformationDescriptionBuilder builder, PathElement path) {
  if (InfinispanModel.VERSION_6_0_0.requiresTransformation(version)) {
    builder.getAttributeBuilder().setDiscard(DiscardAttributeChecker.ALWAYS, Attribute.MAX_BATCH_SIZE.getDefinition());
  }
  if (InfinispanModel.VERSION_3_0_0.requiresTransformation(version)) {
    builder.addOperationTransformationOverride(ModelDescriptionConstants.ADD)
        .setCustomOperationTransformer(new SimpleOperationTransformer(new LegacyPropertyAddOperationTransformer()))
        .inheritResourceAttributeDefinitions()
        .end();
    builder.setCustomResourceTransformer(new LegacyPropertyResourceTransformer());
    builder.addRawOperationTransformationOverride(MapOperations.MAP_GET_DEFINITION.getName(), new SimpleOperationTransformer(new LegacyPropertyMapGetOperationTransformer()));
    for (String name : Operations.getAllWriteAttributeOperationNames()) {
      builder.addOperationTransformationOverride(name)
          .inheritResourceAttributeDefinitions()
          .setCustomOperationTransformer(new LegacyPropertyWriteOperationTransformer(address -> address.getParent().append(path)))
          .end();
    }
  }
  StoreWriteThroughResourceDefinition.buildTransformation(version, builder);
  StoreWriteBehindResourceDefinition.buildTransformation(version, builder);
}

代码示例来源:origin: org.jboss.eap/wildfly-clustering-jgroups-extension

for (String opName : Operations.getAllWriteAttributeOperationNames()) {
  builder.addOperationTransformationOverride(opName)
      .inheritResourceAttributeDefinitions()

相关文章